#include <iostream>
using namespace std;
int main()
{
int h, v, n, ho=0, vo=0, fast=100001, cv=0, ch=0;
cin>>n;
for(int i=0; i<n; i++)
{
cin>>h;
ho+=h;
if(h<fast)
{
fast=h;
ch=1;
}
}
for(int i=0; i<n; i++)
{
cin>>v;
vo+=v;
if(v<fast)
{
fast=v;
cv=1;
ch=0;
}
}
if(ho<vo)
{
cout<<"Hamilton";
}
else if(vo<ho)
{
cout<<"Verstappen";
}
if(cv==1)
{
cout<<endl;
cout<<"Verstappen";
}
else if(ch==1)
{
cout<<endl;
cout<<"Hamilton";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2120 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2200 KiB | ||||
4 | Accepted | 3ms | 2328 KiB | ||||
5 | Accepted | 3ms | 2544 KiB | ||||
6 | Accepted | 3ms | 2624 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 3ms | 2756 KiB | ||||
8 | Accepted | 3ms | 2840 KiB | ||||
9 | Accepted | 3ms | 2816 KiB | ||||
10 | Accepted | 3ms | 2800 KiB | ||||
11 | Accepted | 3ms | 2788 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 2908 KiB | ||||
13 | Accepted | 3ms | 3032 KiB | ||||
14 | Accepted | 3ms | 3156 KiB | ||||
15 | Accepted | 3ms | 3152 KiB | ||||
16 | Accepted | 3ms | 3388 KiB | ||||
17 | Accepted | 3ms | 3392 KiB | ||||
18 | Accepted | 3ms | 3488 KiB | ||||
19 | Accepted | 3ms | 3572 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 3820 KiB | ||||
21 | Accepted | 3ms | 4032 KiB | ||||
22 | Accepted | 3ms | 4116 KiB | ||||
23 | Accepted | 3ms | 4108 KiB | ||||
24 | Accepted | 3ms | 4364 KiB | ||||
25 | Accepted | 3ms | 4568 KiB | ||||
26 | Accepted | 3ms | 4656 KiB | ||||
27 | Accepted | 3ms | 4576 KiB | ||||
28 | Accepted | 3ms | 4652 KiB |