Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
6103 JiangGuangrui 不高兴的津津 C++ 解答错误 0 0 MS 692 KB 355 2020-08-22 15:27:10

Tests(0/30):


#include <iostream> #include <cstdio> using namespace std; int main() { int x,s,a,max=0,max_day=0; for(int i=1; i<=7; i++) { cin >> x >> s; a = x + s; if(a - max < 8) { if(max < a - 8) { max = a - 8; max_day = i; } } } if(max_day == 0)cout << "00"; else cout<< max_day; return 0; }


测评信息: