6787 | 2023-12-19 09:58:31 | KovacsBalint | Formula-1 | cpp17 | Wrong answer 0/100 | 3ms | 4424 KiB |
#include <iostream>
using namespace std;
int main()
{
int N,Hi,Vi,i,H=0,V=0;
cin>>N;
for (i=1; i<=N; i++)
{
cin>>Hi;
H=H+Hi;
cin>>Vi;
V=V+Vi;
}
if (V>H)
{
cout<<"Verstappen"<<endl;
}
else if (H>V)
{
cout<<"Hamilton"<<endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1876 KiB | ||||
2 | Wrong answer | 3ms | 2120 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 3ms | 2364 KiB | ||||
4 | Wrong answer | 3ms | 2540 KiB | ||||
5 | Wrong answer | 3ms | 2708 KiB | ||||
6 | Wrong answer | 3ms | 2788 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 2916 KiB | ||||
8 | Wrong answer | 3ms | 3128 KiB | ||||
9 | Wrong answer | 3ms | 3408 KiB | ||||
10 | Wrong answer | 3ms | 3600 KiB | ||||
11 | Wrong answer | 3ms | 3768 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3864 KiB | ||||
13 | Wrong answer | 3ms | 3852 KiB | ||||
14 | Wrong answer | 3ms | 3888 KiB | ||||
15 | Wrong answer | 3ms | 3884 KiB | ||||
16 | Wrong answer | 3ms | 4092 KiB | ||||
17 | Wrong answer | 3ms | 4104 KiB | ||||
18 | Wrong answer | 3ms | 4336 KiB | ||||
19 | Wrong answer | 3ms | 4308 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 4316 KiB | ||||
21 | Wrong answer | 3ms | 4312 KiB | ||||
22 | Wrong answer | 3ms | 4308 KiB | ||||
23 | Wrong answer | 3ms | 4316 KiB | ||||
24 | Wrong answer | 3ms | 4340 KiB | ||||
25 | Wrong answer | 3ms | 4416 KiB | ||||
26 | Wrong answer | 3ms | 4312 KiB | ||||
27 | Wrong answer | 3ms | 4312 KiB | ||||
28 | Wrong answer | 3ms | 4424 KiB |