68282023-12-19 10:45:01HunMartin23Formula-1cpp17Wrong answer 0/1003ms4508 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;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1876 KiB
2Wrong answer3ms2120 KiB
subtask20/10
3Wrong answer3ms2332 KiB
4Wrong answer3ms2544 KiB
5Wrong answer3ms2788 KiB
6Wrong answer3ms3000 KiB
subtask30/15
7Wrong answer3ms3180 KiB
8Wrong answer3ms3420 KiB
9Wrong answer3ms3600 KiB
10Wrong answer3ms3760 KiB
11Wrong answer3ms3884 KiB
subtask40/20
12Wrong answer3ms4124 KiB
13Wrong answer3ms4068 KiB
14Wrong answer3ms4064 KiB
15Wrong answer3ms4064 KiB
16Wrong answer3ms4196 KiB
17Wrong answer3ms4312 KiB
18Wrong answer3ms4208 KiB
19Wrong answer3ms4268 KiB
subtask50/55
20Wrong answer3ms4388 KiB
21Wrong answer3ms4508 KiB
22Wrong answer3ms4416 KiB
23Wrong answer3ms4392 KiB
24Wrong answer3ms4316 KiB
25Wrong answer3ms4396 KiB
26Wrong answer3ms4396 KiB
27Wrong answer3ms4400 KiB
28Wrong answer3ms4384 KiB