#include <iostream>
using namespace std;
int main()
{
int N,o1,o2,k=10000000000,u=100000000000;
cin>>N;
int a[N],b[N];
for(int i=0; i<N; i++)
cin>>a[i];
for(int i=0; i<N; i++)
cin>>b[i];
for(int i=0; i<N; i++)
o1=o1+a[i];
for(int i=0; i<N; i++)
o2=o2+b[i];
if(o2<o1)
cout<<"Verstappen\n";
else
cout<<"Hamilton\n";
for(int i=0; i<N; i++)
{
if(a[i]<k)
k=a[i];
}
for(int i=0; i<N; i++)
{
if(b[i]<u)
u=b[i];
}
if(k>u)
cout<<"Verstappen";
else
cout<<"Hamilton";
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2064 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Accepted | 3ms | 2280 KiB | ||||
4 | Wrong answer | 3ms | 2496 KiB | ||||
5 | Accepted | 3ms | 2632 KiB | ||||
6 | Wrong answer | 3ms | 2832 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 2884 KiB | ||||
8 | Wrong answer | 3ms | 3036 KiB | ||||
9 | Accepted | 3ms | 3412 KiB | ||||
10 | Accepted | 3ms | 3260 KiB | ||||
11 | Wrong answer | 3ms | 3380 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3464 KiB | ||||
13 | Wrong answer | 3ms | 3468 KiB | ||||
14 | Accepted | 3ms | 3708 KiB | ||||
15 | Accepted | 3ms | 3680 KiB | ||||
16 | Wrong answer | 3ms | 3928 KiB | ||||
17 | Accepted | 3ms | 3996 KiB | ||||
18 | Accepted | 3ms | 4108 KiB | ||||
19 | Wrong answer | 3ms | 4304 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Accepted | 3ms | 4168 KiB | ||||
21 | Accepted | 3ms | 4412 KiB | ||||
22 | Accepted | 3ms | 4532 KiB | ||||
23 | Wrong answer | 3ms | 4528 KiB | ||||
24 | Accepted | 3ms | 4532 KiB | ||||
25 | Accepted | 3ms | 4524 KiB | ||||
26 | Wrong answer | 3ms | 4660 KiB | ||||
27 | Wrong answer | 3ms | 4740 KiB | ||||
28 | Wrong answer | 3ms | 4748 KiB |