63492023-11-23 15:30:57SzitaPeterFormula-1python3Accepted 100/10017ms14208 KiB
# Source: https://usaco.guide/general/io
n = int(input())
listhamilton = list(map(int, input().strip().split()))
listverstappen = list(map(int, input().strip().split()))
totalh = 0
totalv = 0
for i in range(0, n):
    totalh += listhamilton[i]
for i in range(0, n): 
    totalv += listverstappen[i]
if totalh < totalv:
    print("Hamilton")
else:
    print("Verstappen")
if min(listhamilton) < min(listverstappen):
    print("Hamilton")
else:
    print("Verstappen")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms10960 KiB
2Accepted17ms11032 KiB
subtask210/10
3Accepted17ms11440 KiB
4Accepted17ms11680 KiB
5Accepted17ms12032 KiB
6Accepted17ms12140 KiB
subtask315/15
7Accepted17ms12380 KiB
8Accepted17ms12556 KiB
9Accepted17ms12768 KiB
10Accepted17ms13004 KiB
11Accepted17ms13152 KiB
subtask420/20
12Accepted17ms13260 KiB
13Accepted17ms13572 KiB
14Accepted17ms13672 KiB
15Accepted17ms13968 KiB
16Accepted17ms13772 KiB
17Accepted17ms13772 KiB
18Accepted17ms13564 KiB
19Accepted17ms13696 KiB
subtask555/55
20Accepted17ms13612 KiB
21Accepted17ms13732 KiB
22Accepted17ms14128 KiB
23Accepted17ms13836 KiB
24Accepted17ms13952 KiB
25Accepted17ms13948 KiB
26Accepted17ms13724 KiB
27Accepted17ms13872 KiB
28Accepted17ms14208 KiB