#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n,v1,v2,o1=0,o2=0,m1=100001,m2=1000001;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>v1;
o1=o1+v1;
m1=min(m1,v1);
}
for(int i=0;i<n;i++)
cin>>v2;
{
o2=o2+v2;
m2=min(m2,v2);
}
if(o1<o2)
cout<<"Hamilton"<<endl;
else
cout<<"Verstappen"<<endl;
if(m1<m2)
cout<<"Hamilton"<<endl;
else
cout<<"Verstappen"<<endl;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1744 KiB | ||||
2 | Wrong answer | 3ms | 1992 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2120 KiB | ||||
4 | Accepted | 3ms | 2332 KiB | ||||
5 | Accepted | 3ms | 2732 KiB | ||||
6 | Accepted | 3ms | 2804 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Accepted | 3ms | 2888 KiB | ||||
8 | Accepted | 3ms | 3120 KiB | ||||
9 | Wrong answer | 3ms | 3260 KiB | ||||
10 | Wrong answer | 3ms | 3412 KiB | ||||
11 | Wrong answer | 3ms | 3464 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Accepted | 3ms | 3544 KiB | ||||
13 | Accepted | 3ms | 3656 KiB | ||||
14 | Wrong answer | 3ms | 3668 KiB | ||||
15 | Wrong answer | 3ms | 3572 KiB | ||||
16 | Wrong answer | 3ms | 3556 KiB | ||||
17 | Wrong answer | 3ms | 3788 KiB | ||||
18 | Wrong answer | 3ms | 3708 KiB | ||||
19 | Wrong answer | 3ms | 3680 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 3800 KiB | ||||
21 | Wrong answer | 3ms | 3792 KiB | ||||
22 | Wrong answer | 3ms | 3816 KiB | ||||
23 | Wrong answer | 3ms | 3684 KiB | ||||
24 | Wrong answer | 3ms | 3680 KiB | ||||
25 | Wrong answer | 3ms | 3684 KiB | ||||
26 | Accepted | 3ms | 3684 KiB | ||||
27 | Accepted | 3ms | 3680 KiB | ||||
28 | Wrong answer | 3ms | 3680 KiB |