#include <iostream>
using namespace std;
int main()
{
int n, h, v, osszegh=0, osszegv=0, minv=999999, minh=999999;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>h;
osszegh+=h;
if(h<minh)
minh=h;
}
for(int i=1;i<=n;i++)
{
cin>>v;
osszegv+=v;
if(v<minv)
minv=v;
}
if(osszegh>osszegv)
cout<<"Verstappen"<<endl;
else
cout<<"Hamilton"<<endl;
if(minh>minv)
cout<<"Verstappen"<<endl;
else
cout<<"Hamilton"<<endl;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Accepted | 3ms | 1948 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2032 KiB | ||||
4 | Accepted | 3ms | 2448 KiB | ||||
5 | Accepted | 3ms | 2500 KiB | ||||
6 | Accepted | 3ms | 2584 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 3ms | 2828 KiB | ||||
8 | Accepted | 3ms | 2932 KiB | ||||
9 | Accepted | 3ms | 2868 KiB | ||||
10 | Accepted | 3ms | 2872 KiB | ||||
11 | Accepted | 3ms | 2988 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 2992 KiB | ||||
13 | Accepted | 3ms | 2944 KiB | ||||
14 | Accepted | 3ms | 2936 KiB | ||||
15 | Accepted | 3ms | 3188 KiB | ||||
16 | Accepted | 3ms | 3308 KiB | ||||
17 | Accepted | 3ms | 3292 KiB | ||||
18 | Accepted | 3ms | 3284 KiB | ||||
19 | Accepted | 3ms | 3284 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 3296 KiB | ||||
21 | Accepted | 3ms | 3404 KiB | ||||
22 | Accepted | 3ms | 3296 KiB | ||||
23 | Accepted | 3ms | 3304 KiB | ||||
24 | Accepted | 3ms | 3304 KiB | ||||
25 | Accepted | 3ms | 3420 KiB | ||||
26 | Accepted | 3ms | 3428 KiB | ||||
27 | Accepted | 3ms | 3332 KiB | ||||
28 | Accepted | 3ms | 3412 KiB |