AC答案
查看原帖
AC答案
1445960
wangtianle123楼主2025/6/18 13:03
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e;//a是🖊数,b是📓数,c是📏数,d是💸数
int main(){
    cin>>a>>b>>c>>d;
    if(2*a+5*b+3*c<=d){
        e=d-(2*a+5*b+3*c);
        cout<<"Yes"<<endl;
        cout<<e;
    }else{
        e=2*a+5*b+3*c-d;
        cout<<"No"<<endl;
        cout<<e;
    }
}
2025/6/18 13:03
加载中...