#include <iostream>
using namespace std;
int main()
{
int N;
int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
cin>>N;
for(int i=0; i<N; i++)
{
cin>>H;
osszH+=H;
if (H<minH)
minH=H;
}
for(int i=0; i<N; i++)
{
cin>>V;
osszV+=V;
if (V<minV)
minV=V;
}
if (osszV<osszH)
cout<<"Verstappen"<<endl;
else
cout<<"Hamilton"<<endl;
if(minV<minH)
cout<<"Verstappen";
else
cout<<"Hamilton";
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 2148 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Wrong answer | 3ms | 2076 KiB | ||||
3 | Wrong answer | 3ms | 2208 KiB | ||||
4 | Wrong answer | 3ms | 2384 KiB | ||||
5 | Wrong answer | 3ms | 2600 KiB | ||||
6 | Wrong answer | 2ms | 2680 KiB | ||||
7 | Wrong answer | 3ms | 2676 KiB | ||||
8 | Wrong answer | 3ms | 2808 KiB | ||||
9 | Wrong answer | 3ms | 3016 KiB | ||||
subtask3 | 0/30 | ||||||
10 | Wrong answer | 3ms | 3140 KiB | ||||
11 | Wrong answer | 4ms | 3100 KiB | ||||
12 | Wrong answer | 4ms | 3232 KiB | ||||
13 | Wrong answer | 3ms | 3472 KiB | ||||
14 | Wrong answer | 3ms | 3680 KiB | ||||
15 | Wrong answer | 4ms | 3624 KiB | ||||
16 | Wrong answer | 4ms | 3724 KiB | ||||
17 | Wrong answer | 4ms | 3736 KiB | ||||
18 | Wrong answer | 4ms | 3600 KiB | ||||
subtask4 | 0/50 | ||||||
19 | Wrong answer | 3ms | 3708 KiB | ||||
20 | Wrong answer | 4ms | 3600 KiB | ||||
21 | Wrong answer | 4ms | 3760 KiB | ||||
22 | Wrong answer | 3ms | 3856 KiB | ||||
23 | Wrong answer | 3ms | 3740 KiB | ||||
24 | Wrong answer | 3ms | 3848 KiB | ||||
25 | Wrong answer | 4ms | 3848 KiB | ||||
26 | Wrong answer | 4ms | 3872 KiB | ||||
27 | Wrong answer | 4ms | 3956 KiB | ||||
28 | Wrong answer | 4ms | 3956 KiB | ||||
29 | Wrong answer | 4ms | 3952 KiB | ||||
30 | Wrong answer | 4ms | 3952 KiB |