6349 | 2023-11-23 15:30:57 | SzitaPeter | Formula-1 | python3 | Accepted 100/100 | 17ms | 14208 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")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 10960 KiB | ||||
2 | Accepted | 17ms | 11032 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 11440 KiB | ||||
4 | Accepted | 17ms | 11680 KiB | ||||
5 | Accepted | 17ms | 12032 KiB | ||||
6 | Accepted | 17ms | 12140 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 17ms | 12380 KiB | ||||
8 | Accepted | 17ms | 12556 KiB | ||||
9 | Accepted | 17ms | 12768 KiB | ||||
10 | Accepted | 17ms | 13004 KiB | ||||
11 | Accepted | 17ms | 13152 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 17ms | 13260 KiB | ||||
13 | Accepted | 17ms | 13572 KiB | ||||
14 | Accepted | 17ms | 13672 KiB | ||||
15 | Accepted | 17ms | 13968 KiB | ||||
16 | Accepted | 17ms | 13772 KiB | ||||
17 | Accepted | 17ms | 13772 KiB | ||||
18 | Accepted | 17ms | 13564 KiB | ||||
19 | Accepted | 17ms | 13696 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 17ms | 13612 KiB | ||||
21 | Accepted | 17ms | 13732 KiB | ||||
22 | Accepted | 17ms | 14128 KiB | ||||
23 | Accepted | 17ms | 13836 KiB | ||||
24 | Accepted | 17ms | 13952 KiB | ||||
25 | Accepted | 17ms | 13948 KiB | ||||
26 | Accepted | 17ms | 13724 KiB | ||||
27 | Accepted | 17ms | 13872 KiB | ||||
28 | Accepted | 17ms | 14208 KiB |