12没过,求!

P1085 [NOIP2004 普及组] 不高兴的津津

``` #include<iostream> using namespace std; int main() { int a[1000001]; int b[10000001]; int n, s = 0; int x, y; for (int i = 0; i < 7; i++) { cin >> x >> y; a[i] = x + y; } s = 0; for (int i = 0; i < 7; i++) { if (a[i]>8&&a[s] < a[i]) { s = i; } } if(s==0) cout<<0; else cout << s+1; return 0; } ``` @[liiiiiih](/user/1290417)
by Aybbl_xc @ 2024-03-13 17:42:33


|