6786 | 2023-12-19 09:58:07 | KovacsBalint | Bevásárlás | cpp17 | Wrong answer 0/100 | 3ms | 4096 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 | 1880 KiB | ||||
2 | Wrong answer | 3ms | 2112 KiB | ||||
3 | Wrong answer | 3ms | 2280 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 3ms | 2540 KiB | ||||
5 | Wrong answer | 3ms | 2552 KiB | ||||
6 | Wrong answer | 2ms | 2408 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 3ms | 2648 KiB | ||||
8 | Wrong answer | 2ms | 2732 KiB | ||||
9 | Wrong answer | 3ms | 2856 KiB | ||||
10 | Wrong answer | 2ms | 2856 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 2ms | 2856 KiB | ||||
12 | Wrong answer | 3ms | 2992 KiB | ||||
13 | Wrong answer | 3ms | 3080 KiB | ||||
14 | Wrong answer | 3ms | 3080 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 3ms | 3204 KiB | ||||
16 | Wrong answer | 3ms | 3420 KiB | ||||
17 | Wrong answer | 3ms | 3540 KiB | ||||
18 | Wrong answer | 3ms | 3812 KiB | ||||
19 | Wrong answer | 3ms | 3880 KiB | ||||
20 | Wrong answer | 3ms | 4096 KiB |