Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
3825 D班-罗炜翰 不高兴的津津 C++ 解答错误 0 0 MS 260 KB 275 2024-12-29 17:27:28

Tests(0/10):


#include<bits/stdc++.h> using namespace std; int main() { int n = 7,a,b,c = 10,d = 10,e = 0,f = 0; for (int zz = 1;zz <= n;zz++) { cin>>a>>b; if (b + a > 8 && b + a > d + c) { c = a; d = b; f = e; } e++; } cout<<f + 1; return 0; }


测评信息:

输入

6 3
2 4
2 6
1 4
9 0
9 1
3 6

输出

1

答案

6

系统信息

exit code: 0, checker exit code: 0