#include <iostream>
#include <string>
int main(){
int n;
std::cin>>n;
int v[n], h[n];
int vv;
int hh;
int nn;
bool ham;
for (int i = 0; i < n; i++)
{
std::cin>>h[i];
}
for (int i = 0; i < n; i++)
{
std::cin>>v[i];
}
if (v[0] < h[0]){
nn = v[0];
ham = false;
}
else {
nn = h[0];
ham = true;
}
for (int i = 0; i < n; i++){
if(v[i] < h[i]){
vv++;
}
else {
hh++;
}
if (v[i] < nn) {
nn = v[i];
ham = false;
}
else if (h[i] < nn) {
nn = h[i];
ham = true;
}
}
std::cout<<vv<<" "<<hh<<" "<<ham<<std::endl;
if (vv-4607 > hh) std::cout<<"Verstappen"<<std::endl;
else std::cout<<"Hamilton"<<std::endl;
if (ham) std::cout<<"Hamilton";
else std::cout<<"Verstappen";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1912 KiB | ||||
2 | Wrong answer | 3ms | 2100 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 3ms | 2356 KiB | ||||
4 | Wrong answer | 3ms | 2556 KiB | ||||
5 | Wrong answer | 3ms | 2772 KiB | ||||
6 | Wrong answer | 3ms | 2984 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 3224 KiB | ||||
8 | Wrong answer | 3ms | 3316 KiB | ||||
9 | Wrong answer | 3ms | 3380 KiB | ||||
10 | Wrong answer | 3ms | 3616 KiB | ||||
11 | Wrong answer | 3ms | 3652 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3784 KiB | ||||
13 | Wrong answer | 3ms | 3892 KiB | ||||
14 | Wrong answer | 3ms | 3864 KiB | ||||
15 | Wrong answer | 3ms | 3980 KiB | ||||
16 | Wrong answer | 3ms | 4012 KiB | ||||
17 | Wrong answer | 3ms | 4124 KiB | ||||
18 | Wrong answer | 3ms | 4008 KiB | ||||
19 | Wrong answer | 3ms | 4016 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 4076 KiB | ||||
21 | Wrong answer | 3ms | 4080 KiB | ||||
22 | Wrong answer | 3ms | 4072 KiB | ||||
23 | Wrong answer | 3ms | 4224 KiB | ||||
24 | Wrong answer | 3ms | 4176 KiB | ||||
25 | Wrong answer | 3ms | 4180 KiB | ||||
26 | Wrong answer | 3ms | 4172 KiB | ||||
27 | Wrong answer | 3ms | 4292 KiB | ||||
28 | Wrong answer | 3ms | 4416 KiB |