delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#include<cstdio>
using namespace std;
bool check(int lesson[7])
{
for(int i=0;i<7;i++) if(lesson[i]>8) return 0;
return 1;
}
int main()
{
int lesson[7],a,b;
for(int i=0;i<7;i++)
{
scanf("%d%d",&a,&b);
lesson[i]=a+b;
}
if(check(lesson)) printf("0\n");
else
{
int max=0;
for(int i=1;i<7;i++) if(lesson[i]>lesson[max]) max=i;
printf("%d\n",max+1);
}
return 0;
}