题解
2025-08-04 23:35:35
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int x,y,n,q;
cin>>x>>y>>n>>q;
int all=x*2+y*5+n*3;
if(all<=q){
cout<<"Yes\n"<<q-all;
}else{
cout<<"No\n"<<all-q;
}
}
这里空空如也
有帮助,赞一个