6828 | 2023-12-19 10:45:01 | HunMartin23 | Formula-1 | cpp17 | Wrong answer 0/100 | 3ms | 4508 KiB |
#include <iostream>
using namespace std;
int main()
{
int N,osz=0,osz1=0,leg=10000000000000,leg1=100000000000000000000;
cin>>N;
int V[N],H[N];
for (int i=1;i<=N;i++)
{
cin>>H[i];
if (H[i]<leg)
{
leg=H[i];
}
osz+=H[i];
}
for (int i=1;i<=N;i++)
{
cin>>V[i];
if (V[i]<leg)
{
leg1=V[i];
}
osz1+=V[i];
}
if (osz>osz1)
{
cout<<"Hamilton"<<endl;
}
else if (osz1>osz)
{
cout<<"Verstappen"<<endl;
}
if (leg<leg1)
{
cout<<"Hamilton";
}
else if (leg1<leg)
{
cout<<"Verstappen";
}
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 | 2332 KiB | ||||
4 | Wrong answer | 3ms | 2544 KiB | ||||
5 | Wrong answer | 3ms | 2788 KiB | ||||
6 | Wrong answer | 3ms | 3000 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 3ms | 3180 KiB | ||||
8 | Wrong answer | 3ms | 3420 KiB | ||||
9 | Wrong answer | 3ms | 3600 KiB | ||||
10 | Wrong answer | 3ms | 3760 KiB | ||||
11 | Wrong answer | 3ms | 3884 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 3ms | 4124 KiB | ||||
13 | Wrong answer | 3ms | 4068 KiB | ||||
14 | Wrong answer | 3ms | 4064 KiB | ||||
15 | Wrong answer | 3ms | 4064 KiB | ||||
16 | Wrong answer | 3ms | 4196 KiB | ||||
17 | Wrong answer | 3ms | 4312 KiB | ||||
18 | Wrong answer | 3ms | 4208 KiB | ||||
19 | Wrong answer | 3ms | 4268 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 3ms | 4388 KiB | ||||
21 | Wrong answer | 3ms | 4508 KiB | ||||
22 | Wrong answer | 3ms | 4416 KiB | ||||
23 | Wrong answer | 3ms | 4392 KiB | ||||
24 | Wrong answer | 3ms | 4316 KiB | ||||
25 | Wrong answer | 3ms | 4396 KiB | ||||
26 | Wrong answer | 3ms | 4396 KiB | ||||
27 | Wrong answer | 3ms | 4400 KiB | ||||
28 | Wrong answer | 3ms | 4384 KiB |