1 solutions
-
0
Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自动生成的方法存根 Scanner input=new Scanner(System.in); int n=input.nextInt(); int i=1; String A=input.next(); double scoreA=input.nextDouble(); while(i<n){ String B=input.next(); double scoreB=input.nextDouble(); if(scoreB>scoreA){ scoreA=scoreB; A=B; } i=i+1; } System.out.print(A); } }
- 1
Information
- ID
- 18580
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By