63092023-11-15 16:33:14almaaaFormula-1python3Accepted 100/10017ms14216 KiB
n = int(input())
v = []
h = []

hh = input().split()
vv = 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 min(vv)<min(hh):
    print("Verstappen")
else:
    print("Hamilton")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11020 KiB
2Accepted17ms11084 KiB
subtask210/10
3Accepted17ms11236 KiB
4Accepted17ms11692 KiB
5Accepted17ms12096 KiB
6Accepted17ms12236 KiB
subtask315/15
7Accepted17ms12356 KiB
8Accepted17ms12728 KiB
9Accepted17ms12892 KiB
10Accepted17ms12960 KiB
11Accepted17ms12916 KiB
subtask420/20
12Accepted17ms12828 KiB
13Accepted17ms13232 KiB
14Accepted17ms13200 KiB
15Accepted17ms13432 KiB
16Accepted17ms13388 KiB
17Accepted17ms13780 KiB
18Accepted17ms13616 KiB
19Accepted17ms13824 KiB
subtask555/55
20Accepted17ms13496 KiB
21Accepted17ms13796 KiB
22Accepted17ms14108 KiB
23Accepted17ms14208 KiB
24Accepted17ms14072 KiB
25Accepted17ms14216 KiB
26Accepted17ms13976 KiB
27Accepted17ms14124 KiB
28Accepted17ms14164 KiB