Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5490 | D班-罗炜翰 | 十点半 | C++ | Wrong Answer | 0 | 29 MS | 256 KB | 425 | 2025-02-09 16:29:19 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,d,e,f; while(cin>>a>>b>>e>>f) { a = a + b; e = e + f; if (a > 0) { a = 0; } else if (a > 0 && b > 0) { a = 0; e = 0; } else if (e > 0) { e = 0; } if (a > e) { cout<<"1"<<endl; } else if (a == e) { cout<<"0"<<endl; } else if (a < e) { cout<<"-1"<<endl; } } }