11793 | 2024-11-11 10:29:58 | TortelliniJr | Formula-1 | cpp17 | Accepted 100/100 | 2ms | 560 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" << endl;
}
else
{
cout << "Verstappen" << endl;
}
if (hamt < vert)
{
cout << "Hamilton" << endl;
}
else
{
cout << "Verstappen" << endl;
}
{
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
2 | Accepted | 1ms | 508 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Accepted | 1ms | 320 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 1ms | 560 KiB | ||||
8 | Accepted | 1ms | 320 KiB | ||||
9 | Accepted | 1ms | 320 KiB | ||||
10 | Accepted | 1ms | 320 KiB | ||||
11 | Accepted | 1ms | 320 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 1ms | 320 KiB | ||||
13 | Accepted | 1ms | 320 KiB | ||||
14 | Accepted | 1ms | 508 KiB | ||||
15 | Accepted | 1ms | 320 KiB | ||||
16 | Accepted | 1ms | 320 KiB | ||||
17 | Accepted | 1ms | 332 KiB | ||||
18 | Accepted | 1ms | 320 KiB | ||||
19 | Accepted | 1ms | 508 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 2ms | 320 KiB | ||||
21 | Accepted | 1ms | 508 KiB | ||||
22 | Accepted | 1ms | 508 KiB | ||||
23 | Accepted | 1ms | 500 KiB | ||||
24 | Accepted | 1ms | 356 KiB | ||||
25 | Accepted | 1ms | 320 KiB | ||||
26 | Accepted | 1ms | 320 KiB | ||||
27 | Accepted | 1ms | 320 KiB | ||||
28 | Accepted | 1ms | 320 KiB |