#include <iostream>
using namespace std;
int main()
{
int n, i, j, sum[2] = { 0, 0 }, min[2] = { 100000, 100000}, temp;
cin >> n;
for (j = 0; j < 2; j++)
{
for (i = 0; i < n; i++)
{
cin >> temp;
sum[j] += temp;
if (temp < min[j])
{
min[j] = temp;
}
}
}
if (sum[0] < sum[1])
{
cout << "Hamilton" << endl;
}
else
{
cout << "Verstappen" << endl;
}
if (min[0] < min[1])
{
cout << "Hamilton";
}
else
{
cout << "Verstappen";
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1880 KiB | ||||
2 | Accepted | 3ms | 2068 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2308 KiB | ||||
4 | Accepted | 3ms | 2492 KiB | ||||
5 | Accepted | 3ms | 2740 KiB | ||||
6 | Accepted | 3ms | 2952 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 2ms | 3076 KiB | ||||
8 | Accepted | 2ms | 3000 KiB | ||||
9 | Accepted | 3ms | 3128 KiB | ||||
10 | Accepted | 3ms | 3240 KiB | ||||
11 | Accepted | 3ms | 3484 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 3ms | 3500 KiB | ||||
13 | Accepted | 2ms | 3548 KiB | ||||
14 | Accepted | 2ms | 3736 KiB | ||||
15 | Accepted | 3ms | 3992 KiB | ||||
16 | Accepted | 3ms | 3956 KiB | ||||
17 | Accepted | 3ms | 4080 KiB | ||||
18 | Accepted | 2ms | 4168 KiB | ||||
19 | Accepted | 2ms | 4168 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 3ms | 4292 KiB | ||||
21 | Accepted | 3ms | 4548 KiB | ||||
22 | Accepted | 3ms | 4560 KiB | ||||
23 | Accepted | 3ms | 4612 KiB | ||||
24 | Accepted | 3ms | 4848 KiB | ||||
25 | Accepted | 3ms | 5060 KiB | ||||
26 | Accepted | 3ms | 5120 KiB | ||||
27 | Accepted | 3ms | 5240 KiB | ||||
28 | Accepted | 3ms | 5120 KiB |