#include <iostream>
using namespace std;
int main()
{
int N;
int H, V, osszH=0, osszV=0, minH=9999999999, minV=9999999999;
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 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2116 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2336 KiB | ||||
4 | Accepted | 3ms | 2568 KiB | ||||
5 | Accepted | 3ms | 2812 KiB | ||||
6 | Accepted | 3ms | 3000 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 3ms | 3100 KiB | ||||
8 | Accepted | 3ms | 2980 KiB | ||||
9 | Accepted | 3ms | 3228 KiB | ||||
10 | Accepted | 3ms | 3316 KiB | ||||
11 | Accepted | 3ms | 3196 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 3080 KiB | ||||
13 | Accepted | 3ms | 3076 KiB | ||||
14 | Accepted | 3ms | 3080 KiB | ||||
15 | Accepted | 3ms | 3244 KiB | ||||
16 | Accepted | 3ms | 3324 KiB | ||||
17 | Accepted | 3ms | 3472 KiB | ||||
18 | Accepted | 3ms | 3456 KiB | ||||
19 | Accepted | 3ms | 3460 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 3396 KiB | ||||
21 | Accepted | 3ms | 3528 KiB | ||||
22 | Accepted | 3ms | 3612 KiB | ||||
23 | Accepted | 3ms | 3616 KiB | ||||
24 | Accepted | 3ms | 3620 KiB | ||||
25 | Accepted | 3ms | 3616 KiB | ||||
26 | Accepted | 3ms | 3736 KiB | ||||
27 | Accepted | 3ms | 3728 KiB | ||||
28 | Accepted | 3ms | 3976 KiB |