1 条题解
-
0Prettygirl (12312王诺怡) LV 8 @ 2022-08-21 18:40:38
#include<iostream> using namespace std; int a[8]; int main() { int ma=0; for(int i=1;i<=7;i++) { int c,b; cin>>c>>b; if(c+b>8) { a[i]=c+b-8; if(a[ma]<a[i]) ma=i; } } cout<<ma; return 0; }
- 1