63032023-11-15 16:11:49Zsombor0707Formula-1python3Wrong answer 0/10018ms13400 KiB
# Source: https://usaco.guide/general/io

N = int(input())

H = input()

V = input()

Vt = V.split()
Ht = H.split()


#ide jön a győztes ami úgy lesz hogy a lista elemeit összeadjuk és megnezzuk melyik a nagyobb

Vi = 0
for i in Vt:
	Vi += int(i)

Hi = 0
for i in Ht:
	Hi += int(i)

if (Vi > Hi):
	print("Hamilton")

else:
	print("Verstappen")

#itt kell kiírni a leggyorsabb kört

Vmax = max(Vt)
Hmax = max(Ht)

if (Vmax > Hmax):
	print("Verstappen")

else: 
	print("Hamilton")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms10956 KiB
2Accepted17ms11360 KiB
subtask20/10
3Wrong answer17ms11760 KiB
4Wrong answer17ms12000 KiB
5Wrong answer17ms12192 KiB
6Wrong answer17ms12308 KiB
subtask30/15
7Wrong answer17ms12472 KiB
8Accepted17ms12612 KiB
9Accepted17ms12724 KiB
10Wrong answer17ms12604 KiB
11Accepted17ms13060 KiB
subtask40/20
12Wrong answer17ms12616 KiB
13Accepted17ms12788 KiB
14Wrong answer17ms12856 KiB
15Wrong answer17ms12988 KiB
16Accepted17ms12784 KiB
17Accepted17ms12996 KiB
18Accepted17ms12984 KiB
19Wrong answer17ms13400 KiB
subtask50/55
20Accepted17ms13224 KiB
21Accepted17ms13400 KiB
22Wrong answer17ms13372 KiB
23Accepted17ms13304 KiB
24Accepted17ms13248 KiB
25Wrong answer17ms13376 KiB
26Accepted17ms13372 KiB
27Accepted18ms13220 KiB
28Accepted17ms13392 KiB