在线等!急!

null him 2020-11-14 22:04:15 3
#include<iostream>
#include<cmath>
using namespace std;
int main(){
    long long int a1=0,b1=0,c1=0;
    long long int n,q1,q2,w1,w2,e1,e2;
    cin>>n>>q1>>q2>>w1>>w2>>e1>>e2;
    a1=(ceil(n*1.0/q1))*q2;
    b1=(ceil(n*1.0/w1))*w2;
    c1=(ceil(n*1.0/e1))*e2;
    if(a1<b1 && a1<c1){
        cout<<a1;
    }
    else if(b1<a1 && b1<c1){
        cout<<b1;
    }
    else if(c1<a1 && c1<b1){
        cout<<c1;
    }
    return 0;
}
{{ vote && vote.total.up }}

共 9 条回复

root 站长

哇哦,我觉得我们oj的数据也需要加强一下!

null him

我觉得这个说起来比较复杂......

null him

其实这不是八中oj,是八中早培的oj

null him

现在我终于做对了

chen_zhe 沙雕

您把所有小于改成小于等于,不然肯定会被卡WA

chen_zhe 沙雕

您萌八中的OJ是真毒瘤(

null him

不是,我在另一个OJ上交就出问题了

chen_zhe 沙雕

所以您十秒后就AC了(

null him

代码有什么问题吗?