#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";
cout<<osszV<<endl<<osszH<<endl<<minV<<endl<<minH;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1876 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Wrong answer | 3ms | 2120 KiB | ||||
3 | Wrong answer | 3ms | 2280 KiB | ||||
4 | Wrong answer | 3ms | 2524 KiB | ||||
5 | Wrong answer | 3ms | 2612 KiB | ||||
6 | Wrong answer | 3ms | 2704 KiB | ||||
7 | Wrong answer | 3ms | 2936 KiB | ||||
8 | Wrong answer | 3ms | 3052 KiB | ||||
9 | Wrong answer | 3ms | 3060 KiB | ||||
subtask3 | 0/30 | ||||||
10 | Wrong answer | 3ms | 3144 KiB | ||||
11 | Wrong answer | 4ms | 3420 KiB | ||||
12 | Wrong answer | 4ms | 3408 KiB | ||||
13 | Wrong answer | 4ms | 3524 KiB | ||||
14 | Wrong answer | 4ms | 3440 KiB | ||||
15 | Wrong answer | 4ms | 3556 KiB | ||||
16 | Wrong answer | 4ms | 3756 KiB | ||||
17 | Wrong answer | 4ms | 3520 KiB | ||||
18 | Wrong answer | 4ms | 3524 KiB | ||||
subtask4 | 0/50 | ||||||
19 | Wrong answer | 3ms | 3524 KiB | ||||
20 | Wrong answer | 4ms | 3524 KiB | ||||
21 | Wrong answer | 3ms | 3644 KiB | ||||
22 | Wrong answer | 3ms | 3524 KiB | ||||
23 | Wrong answer | 3ms | 3524 KiB | ||||
24 | Wrong answer | 4ms | 3640 KiB | ||||
25 | Wrong answer | 4ms | 3640 KiB | ||||
26 | Wrong answer | 4ms | 3664 KiB | ||||
27 | Wrong answer | 4ms | 3520 KiB | ||||
28 | Wrong answer | 4ms | 3520 KiB | ||||
29 | Wrong answer | 4ms | 3528 KiB | ||||
30 | Wrong answer | 4ms | 3644 KiB |