6823 | 2023-12-19 10:40:31 | KovacsBalint | Formula-1 | cpp17 | Wrong answer 0/100 | 3ms | 3792 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];
if(H[i]>ki)
{
ki=H[i];
}
}
for(int i=0;i<n;i++)
{
cin>>V[i];
if(V[i]>ki)
{
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"<<"/n";
}
else
{
cout<<"Verstappen"<<"/n";
}
for(int i=0;i<n;i++)
{
if(ki==V[i])
{
cout<<"Verstappen"<<"/n";
}
if(ki==H[i])
{
cout<<"Hamilton"<<"/n";
}
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1868 KiB | ||||
2 | Wrong answer | 3ms | 2120 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 3ms | 2360 KiB | ||||
4 | Wrong answer | 3ms | 2572 KiB | ||||
5 | Wrong answer | 3ms | 2784 KiB | ||||
6 | Wrong answer | 3ms | 2876 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 2872 KiB | ||||
8 | Wrong answer | 3ms | 2900 KiB | ||||
9 | Wrong answer | 3ms | 3032 KiB | ||||
10 | Wrong answer | 3ms | 3152 KiB | ||||
11 | Wrong answer | 3ms | 3144 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 3280 KiB | ||||
13 | Wrong answer | 3ms | 3480 KiB | ||||
14 | Wrong answer | 3ms | 3704 KiB | ||||
15 | Wrong answer | 3ms | 3692 KiB | ||||
16 | Wrong answer | 3ms | 3680 KiB | ||||
17 | Wrong answer | 3ms | 3632 KiB | ||||
18 | Wrong answer | 3ms | 3664 KiB | ||||
19 | Wrong answer | 3ms | 3764 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 3760 KiB | ||||
21 | Wrong answer | 3ms | 3768 KiB | ||||
22 | Wrong answer | 3ms | 3776 KiB | ||||
23 | Wrong answer | 3ms | 3648 KiB | ||||
24 | Wrong answer | 3ms | 3648 KiB | ||||
25 | Wrong answer | 3ms | 3648 KiB | ||||
26 | Wrong answer | 3ms | 3652 KiB | ||||
27 | Wrong answer | 3ms | 3656 KiB | ||||
28 | Wrong answer | 3ms | 3792 KiB |