#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> h (n);
int v;
int min = 100000;
string min1 = "Hamilton";
int ossz = 0;
for (int i = 0; i < n; i++)
{
cin >> h[i];
if (h[i] < min)
{
min = h[i];
}
}
for (int i = 0; i < n; i++)
{
cin >> v;
if (v < min)
{
min = v;
min1 = "Verstappen";
}
ossz += v - h[i];
}
if (ossz < 0)
{
cout << "Verstappen";
}
else
{
cout << "Hamilton";
}
cout << endl << min1;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1812 KiB | ||||
2 | Accepted | 3ms | 2008 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2220 KiB | ||||
4 | Accepted | 3ms | 2468 KiB | ||||
5 | Accepted | 3ms | 2528 KiB | ||||
6 | Accepted | 3ms | 2772 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 3ms | 2900 KiB | ||||
8 | Accepted | 2ms | 2992 KiB | ||||
9 | Accepted | 3ms | 3124 KiB | ||||
10 | Accepted | 3ms | 3180 KiB | ||||
11 | Accepted | 3ms | 3312 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 3524 KiB | ||||
13 | Accepted | 3ms | 3640 KiB | ||||
14 | Accepted | 3ms | 3752 KiB | ||||
15 | Accepted | 3ms | 3832 KiB | ||||
16 | Accepted | 3ms | 3860 KiB | ||||
17 | Accepted | 3ms | 3852 KiB | ||||
18 | Accepted | 3ms | 3860 KiB | ||||
19 | Accepted | 2ms | 3852 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 3856 KiB | ||||
21 | Accepted | 3ms | 4004 KiB | ||||
22 | Accepted | 3ms | 3868 KiB | ||||
23 | Accepted | 3ms | 3880 KiB | ||||
24 | Accepted | 3ms | 3880 KiB | ||||
25 | Accepted | 3ms | 3876 KiB | ||||
26 | Accepted | 3ms | 3884 KiB | ||||
27 | Accepted | 3ms | 3884 KiB | ||||
28 | Accepted | 3ms | 4012 KiB |