delete pics to save space
This commit is contained in:
11
1.1085.cpp
Normal file
11
1.1085.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include<cstdio>
|
||||
int a[8],b[8];
|
||||
int main()
|
||||
{
|
||||
for(int i=1;i<=7;i++) scanf("%d%d",a+i,b+i);
|
||||
int res=0;
|
||||
for(int i=1;i<=7;i++)
|
||||
if(a[i]+b[i]>8&&a[i]+b[i]>a[res]+b[res]) res=i;
|
||||
printf("%d\n",res);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user