1 条题解
-
1
尝试C
#include<stdio.h> #define writen by Neo int main(){ int a[7], b[7], c[7]; int max, t=0, temp,i; for (i = 0; i<7; i++) { scanf("%d%d", &a[i], &b[i]); c[i] = a[i] + b[i]; } max = c[0]; for (i = 0; i<7; i++) { if (c[i]>max) { max = c[i]; t = i; } } if (max <= 8) printf("0\n"); else printf("%d\n", t + 1); return 0; }
信息
- ID
- 85
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- 递交数
- 1
- 已通过
- 1
- 上传者