Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5515 D班-汤依宁 十点半 C++ Wrong Answer 0 33 MS 252 KB 356 2025-02-09 17:41:29

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; while( cin>>a>>b>>c>>d) { if(a>10) { a=0.5; } if(b>10) { b=0.5; } if(c>10) { c=0.5; } if(d>10) { d=0.5; } if(a+b>c+d) { cout<<"1"<<endl; } else if(a+b<c+d) { cout<<"-1"<<endl; } else { cout<<"0"<<endl; } } }


Judgement Protocol: