提交时间:2024-12-29 17:12:32
运行 ID: 3786
#include<bits/stdc++.h> using namespace std; int main() { int n = 7,a,b,c = 0,d = 2100000000,e = 1,f; while (n) { cin>>a>>b; if (b + a > 8) { cout<<endl<<endl<<endl; if (b + a < d + c) { c = a; d = b; f = e; } } n--; e++; } cout<<f; return 0; }