Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
9316 D班-汤依宁 预算够吗 C++ 通过 100 1 MS 264 KB 237 2025-04-12 08:14:58

Tests(2/2):


#include <bits/stdc++.h> using namespace std; int main() { int n,b,c,a; cin>>n>>b>>c>>a; if(n >= b+c+a) { cout<<n-(b+c+a)<<endl; cout<<"YES"<<endl; } if(n < b+c+a) { cout<<(b+c+a)-n<<endl; cout<<"NO"<<endl; } }


测评信息: