Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5511 D班-汤依宁 十点半 C++ 编译错误 0 0 MS 0 KB 339 2025-02-09 17:39:06

Tests(0/0):


#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"; } else if(a+b<c+d) { cout<<"-1"; } else { cout<<"0"; } } }


测评信息: