11792 | 2024-11-11 10:27:49 | TortelliniJr | Formula-1 | cpp17 | Wrong answer 0/100 | 2ms | 520 KiB |
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
int f;
int hammerTime, hamt;
int dudududu, vert;
hammerTime = 0;
dudududu = 0;
hamt = 1e9;
vert = 1e9;
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> f;
hammerTime += f;
hamt = min(hamt, f);
}
for (int i = 0; i < n; i++)
{
cin >> f;
dudududu += f;
vert = min(vert, f);
}
if (hammerTime < dudududu)
{
cout << "Hamilton";
}
else
{
cout << "Verstappen";
}
if (hamt < vert)
{
cout << "Hamilton";
}
else
{
cout << "Verstappen";
}
{
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 1ms | 320 KiB | ||||
2 | Wrong answer | 1ms | 320 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 1ms | 508 KiB | ||||
4 | Wrong answer | 1ms | 320 KiB | ||||
5 | Wrong answer | 1ms | 320 KiB | ||||
6 | Wrong answer | 1ms | 320 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 1ms | 320 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
9 | Wrong answer | 1ms | 320 KiB | ||||
10 | Wrong answer | 1ms | 320 KiB | ||||
11 | Wrong answer | 1ms | 320 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 1ms | 320 KiB | ||||
13 | Wrong answer | 1ms | 320 KiB | ||||
14 | Wrong answer | 1ms | 356 KiB | ||||
15 | Wrong answer | 1ms | 320 KiB | ||||
16 | Wrong answer | 1ms | 320 KiB | ||||
17 | Wrong answer | 2ms | 320 KiB | ||||
18 | Wrong answer | 1ms | 508 KiB | ||||
19 | Wrong answer | 1ms | 320 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Wrong answer | 1ms | 320 KiB | ||||
21 | Wrong answer | 1ms | 388 KiB | ||||
22 | Wrong answer | 1ms | 508 KiB | ||||
23 | Wrong answer | 1ms | 320 KiB | ||||
24 | Wrong answer | 1ms | 500 KiB | ||||
25 | Wrong answer | 1ms | 320 KiB | ||||
26 | Wrong answer | 1ms | 520 KiB | ||||
27 | Wrong answer | 1ms | 320 KiB | ||||
28 | Wrong answer | 1ms | 320 KiB |