6805 | 2023-12-19 10:25:10 | KovacsBalint | Formula-1 | cpp17 | Wrong answer 0/100 | 3ms | 3812 KiB |
#include <iostream>
using namespace std;
int main()
{
int n,h,v,ki=9999999999999999999999999999999999999999999999999999999;
cin>>n;
int H[n],V[n];
for(int i=0;i<n;i++)
{
cin>>H[i];
cin>>V[i];
if(H[i]>ki)
{
ki=H[i];
}
if(H[i]>V[i])
{
ki=V[i];
}
}
for(int i=0;i<n;i++)
{
h+=H[i];
}
for(int i=0;i<n;i++)
{
v+=V[i];
}
if(h<v)
{
cout<<"Hamilton"<<endl;
}
else
{
cout<<"Verstappen"<<endl;
}
for(int i;i<n;i++)
{
if(ki==V[i])
{
cout<<"Verstappen"<<endl;
}
if(ki==H[i])
{
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 | ||||
subtask2 | 0/10 | ||||||
3 | Accepted | 3ms | 2160 KiB | ||||
4 | Wrong answer | 3ms | 2276 KiB | ||||
5 | Wrong answer | 3ms | 2492 KiB | ||||
6 | Accepted | 3ms | 2576 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 2848 KiB | ||||
8 | Wrong answer | 3ms | 3080 KiB | ||||
9 | Wrong answer | 3ms | 3292 KiB | ||||
10 | Wrong answer | 3ms | 3164 KiB | ||||
11 | Accepted | 3ms | 3176 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3180 KiB | ||||
13 | Wrong answer | 3ms | 3168 KiB | ||||
14 | Wrong answer | 3ms | 3160 KiB | ||||
15 | Wrong answer | 3ms | 3412 KiB | ||||
16 | Wrong answer | 3ms | 3360 KiB | ||||
17 | Wrong answer | 3ms | 3360 KiB | ||||
18 | Accepted | 3ms | 3384 KiB | ||||
19 | Accepted | 3ms | 3424 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 3428 KiB | ||||
21 | Accepted | 3ms | 3456 KiB | ||||
22 | Wrong answer | 3ms | 3428 KiB | ||||
23 | Wrong answer | 3ms | 3428 KiB | ||||
24 | Accepted | 3ms | 3432 KiB | ||||
25 | Wrong answer | 3ms | 3556 KiB | ||||
26 | Accepted | 3ms | 3436 KiB | ||||
27 | Accepted | 3ms | 3676 KiB | ||||
28 | Wrong answer | 3ms | 3812 KiB |