You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#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;
|
|
}
|