Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71753 sh25_ganzy 不高兴的津津 C++ 通过 0 MS 240 KB 301 2025-10-28 10:57:34

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n=0,a[7],b[7],max=8; for(int i=0;i<7;i++){ cin>>a[i]>>b[i]; } for(int i=0;i<7;i++){ if(a[i]+b[i]>max){ n=i+1; max=a[i]+b[i]; } } cout<<n; return 0; }


测评信息: