package cn.itcast.girl.TheBlueCup_02;
import java.util.Scanner;
public class Unhappy {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int q[] = new int[7];
int a,b;
int max = Integer.MIN_VALUE,flag=0;
for(int i=0;i<7;i++) {
a = sc.nextInt();
b = sc.nextInt();
q[i] = a+b;
if(q[i]>8 && q[i]>max) {
max=q[i];
flag = i+1;
}
}
System.out.println(flag);
sc.close();
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)