#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <vector>
using namespace std;
int main() {
int n, k=0, l=0;
cin>>n;
vector<int> ido1, ido2;
for(short int i=0;i<n;i++){
cin>>ido1[i];
k+=ido1[i];
}
for(short int i=0;i<n;i++){
cin>>ido2[i];
l+=ido2[i];
}
if(k>l){
cout<<"Hamilton";
}else{
cout<<"Verstappen";
}
sort(ido1.end(), ido1.begin());
sort(ido2.end(), ido2.begin());
if(ido1[0]>ido2[0]){
cout<<"Hamilton";
}else{
cout<<"Verstappen";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 3ms | 1948 KiB | ||||
2 | Runtime error | 3ms | 2220 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Runtime error | 3ms | 2188 KiB | ||||
4 | Runtime error | 3ms | 2412 KiB | ||||
5 | Runtime error | 3ms | 2632 KiB | ||||
6 | Runtime error | 3ms | 2844 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Runtime error | 3ms | 2856 KiB | ||||
8 | Runtime error | 3ms | 3132 KiB | ||||
9 | Runtime error | 3ms | 3472 KiB | ||||
10 | Runtime error | 3ms | 3472 KiB | ||||
11 | Runtime error | 3ms | 3748 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Runtime error | 3ms | 3564 KiB | ||||
13 | Runtime error | 3ms | 3404 KiB | ||||
14 | Runtime error | 3ms | 3396 KiB | ||||
15 | Runtime error | 3ms | 3400 KiB | ||||
16 | Runtime error | 3ms | 3404 KiB | ||||
17 | Runtime error | 3ms | 3648 KiB | ||||
18 | Runtime error | 3ms | 3608 KiB | ||||
19 | Runtime error | 3ms | 3592 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Runtime error | 3ms | 3852 KiB | ||||
21 | Runtime error | 3ms | 4012 KiB | ||||
22 | Runtime error | 3ms | 3956 KiB | ||||
23 | Runtime error | 3ms | 4168 KiB | ||||
24 | Runtime error | 3ms | 4160 KiB | ||||
25 | Runtime error | 3ms | 4424 KiB | ||||
26 | Runtime error | 3ms | 4380 KiB | ||||
27 | Runtime error | 3ms | 4284 KiB | ||||
28 | Runtime error | 3ms | 4376 KiB |