n=int(input())
L=[]
B=[]
maks=0
maksi=""
for i in range(n):
b=0
L+=[input()]
x,y=map(int,input().split())
while y>=x:
b+=1
y-=x
y+=2
if maks<b:
maks=b
maksi=L[i]
B+=[b]
print(B)
print(sum(B))
print(maksi)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
26 ms |
3508 KB |
Extra information in the output file |
2 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
3 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
4 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
5 |
Incorrect |
42 ms |
3292 KB |
Extra information in the output file |
6 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
7 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
8 |
Incorrect |
24 ms |
3296 KB |
Extra information in the output file |
9 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
10 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
11 |
Incorrect |
26 ms |
3276 KB |
Extra information in the output file |
12 |
Incorrect |
25 ms |
3300 KB |
Extra information in the output file |
13 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
14 |
Incorrect |
42 ms |
3300 KB |
Extra information in the output file |
15 |
Incorrect |
25 ms |
3300 KB |
Extra information in the output file |
16 |
Incorrect |
28 ms |
3300 KB |
Extra information in the output file |
17 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |
18 |
Incorrect |
26 ms |
3304 KB |
Extra information in the output file |
19 |
Incorrect |
27 ms |
3364 KB |
Extra information in the output file |
20 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |
21 |
Incorrect |
26 ms |
3300 KB |
Extra information in the output file |
22 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |
23 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |
24 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |
25 |
Incorrect |
27 ms |
3300 KB |
Extra information in the output file |