16 lines
243 B
C++
16 lines
243 B
C++
#include<bits/stdc++.h>
|
|
using namespace std;
|
|
int main () {
|
|
int s1,s2,max=8,i,day=0;
|
|
for (int i=1; i<8; i++) {
|
|
cin>>s1>>s2;
|
|
if (s1+s2>max) {
|
|
max=s1+s2;
|
|
day=i;
|
|
}
|
|
}
|
|
if(max>8)cout<<day;
|
|
else cout<<"0";
|
|
return 0;
|
|
}
|