#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int N,kh=555555,kv=555555,oh,ov;
cin>>N;
int H[N];
int V[N];
for(int i=0;i<N;i++)
{
cin>>H[i];
oh+=H[i];
if(kh>H[i])
{
kh=H[i];
}
}
for(int i=0;i<N;i++)
{
cin>>V[i];
ov+=V[i];
if(kv>V[i])
{
kv=V[i];
}
}
if(oh>ov)
{
cout<<"Verstappen"<<endl;
}
else if(ov>oh)
{
cout<<"Hamilton"<<endl;
}
if(kh>kv)
{
cout<<"Verstappen"<<endl;
}
else if(kv>kh)
{
cout<<"Hamilton"<<endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1748 KiB | ||||
2 | Accepted | 3ms | 1916 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2160 KiB | ||||
4 | Accepted | 3ms | 2372 KiB | ||||
5 | Accepted | 3ms | 2584 KiB | ||||
6 | Accepted | 3ms | 2796 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 2824 KiB | ||||
8 | Accepted | 3ms | 2948 KiB | ||||
9 | Accepted | 3ms | 3200 KiB | ||||
10 | Accepted | 3ms | 3312 KiB | ||||
11 | Accepted | 3ms | 3368 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 3372 KiB | ||||
13 | Accepted | 3ms | 3736 KiB | ||||
14 | Accepted | 3ms | 3808 KiB | ||||
15 | Accepted | 3ms | 4020 KiB | ||||
16 | Accepted | 3ms | 4308 KiB | ||||
17 | Accepted | 3ms | 4288 KiB | ||||
18 | Accepted | 3ms | 4288 KiB | ||||
19 | Accepted | 3ms | 4524 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 4456 KiB | ||||
21 | Accepted | 3ms | 4524 KiB | ||||
22 | Accepted | 3ms | 4768 KiB | ||||
23 | Accepted | 3ms | 4852 KiB | ||||
24 | Accepted | 3ms | 4732 KiB | ||||
25 | Accepted | 3ms | 4860 KiB | ||||
26 | Accepted | 3ms | 4792 KiB | ||||
27 | Accepted | 3ms | 4912 KiB | ||||
28 | Accepted | 3ms | 4800 KiB |