提交时间:2025-02-09 17:47:40

运行 ID: 5523

#include <bits/stdc++.h> using namespace std; int main() { double a,b,c,d,e,f; 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; } } }