| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 9316 | ElaineTang | 预算够吗 | C++ | Accepted | 100 | 1 MS | 264 KB | 237 | 2025-04-12 08:14:58 |
#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; } }