#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n,v1,v2,o1=0,o2=0,m1=300000,m2=3000000;
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,v1);
}
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 | 1880 KiB | ||||
2 | Accepted | 3ms | 2064 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 3ms | 2284 KiB | ||||
4 | Accepted | 3ms | 2524 KiB | ||||
5 | Wrong answer | 3ms | 2632 KiB | ||||
6 | Accepted | 3ms | 2824 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Accepted | 3ms | 3016 KiB | ||||
8 | Accepted | 3ms | 3100 KiB | ||||
9 | Wrong answer | 3ms | 3100 KiB | ||||
10 | Wrong answer | 3ms | 3216 KiB | ||||
11 | Accepted | 3ms | 3336 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3220 KiB | ||||
13 | Accepted | 3ms | 3228 KiB | ||||
14 | Accepted | 3ms | 3224 KiB | ||||
15 | Accepted | 3ms | 3348 KiB | ||||
16 | Wrong answer | 3ms | 3348 KiB | ||||
17 | Wrong answer | 3ms | 3464 KiB | ||||
18 | Accepted | 3ms | 3460 KiB | ||||
19 | Wrong answer | 3ms | 3576 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Accepted | 3ms | 3636 KiB | ||||
21 | Wrong answer | 3ms | 3672 KiB | ||||
22 | Accepted | 3ms | 3528 KiB | ||||
23 | Wrong answer | 3ms | 3668 KiB | ||||
24 | Accepted | 3ms | 3744 KiB | ||||
25 | Wrong answer | 3ms | 3856 KiB | ||||
26 | Accepted | 3ms | 3740 KiB | ||||
27 | Accepted | 3ms | 3740 KiB | ||||
28 | Wrong answer | 3ms | 3748 KiB |