63072023-11-15 16:25:57almaaaFormula-1python3Wrong answer 0/10018ms13968 KiB
n = int(input())
v = []
h = []

vv = input().split()
hh = input().split()


for i in range(n):
    vv[i] = int(vv[i])

for i in range(n):
    hh[i] = int(hh[i])


if sum(vv)>sum(hh):
    print("Verstappen")
else:
    print("Hamilton")

if max(vv)<max(hh):
    print("Verstappen")
else:
    print("Hamilton")

            


SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11020 KiB
2Accepted17ms11432 KiB
subtask20/10
3Wrong answer17ms11576 KiB
4Wrong answer18ms11948 KiB
5Wrong answer17ms12064 KiB
6Wrong answer17ms12300 KiB
subtask30/15
7Wrong answer17ms12592 KiB
8Accepted17ms12692 KiB
9Accepted17ms12620 KiB
10Wrong answer17ms12780 KiB
11Wrong answer17ms12780 KiB
subtask40/20
12Wrong answer17ms12944 KiB
13Accepted17ms12848 KiB
14Wrong answer17ms13228 KiB
15Wrong answer17ms12940 KiB
16Accepted17ms13304 KiB
17Accepted17ms13172 KiB
18Accepted17ms13568 KiB
19Wrong answer17ms13532 KiB
subtask50/55
20Accepted17ms13416 KiB
21Accepted17ms13344 KiB
22Wrong answer17ms13704 KiB
23Accepted17ms13848 KiB
24Accepted17ms13732 KiB
25Wrong answer17ms13804 KiB
26Accepted17ms13744 KiB
27Accepted17ms13968 KiB
28Accepted17ms13780 KiB