68052023-12-19 10:25:10KovacsBalintFormula-1cpp17Wrong answer 0/1003ms3812 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];
        cin>>V[i];
        if(H[i]>ki)
        {
            ki=H[i];
        }
        if(H[i]>V[i])
        {
            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"<<endl;
    }
    else
    {
        cout<<"Verstappen"<<endl;
    }
    for(int i;i<n;i++)
    {
        if(ki==V[i])
        {
            cout<<"Verstappen"<<endl;
        }
        if(ki==H[i])
        {
            cout<<"Hamilton"<<endl;
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1880 KiB
2Wrong answer3ms2112 KiB
subtask20/10
3Accepted3ms2160 KiB
4Wrong answer3ms2276 KiB
5Wrong answer3ms2492 KiB
6Accepted3ms2576 KiB
subtask30/15
7Wrong answer3ms2848 KiB
8Wrong answer3ms3080 KiB
9Wrong answer3ms3292 KiB
10Wrong answer3ms3164 KiB
11Accepted3ms3176 KiB
subtask40/20
12Wrong answer3ms3180 KiB
13Wrong answer3ms3168 KiB
14Wrong answer3ms3160 KiB
15Wrong answer3ms3412 KiB
16Wrong answer3ms3360 KiB
17Wrong answer3ms3360 KiB
18Accepted3ms3384 KiB
19Accepted3ms3424 KiB
subtask50/55
20Wrong answer3ms3428 KiB
21Accepted3ms3456 KiB
22Wrong answer3ms3428 KiB
23Wrong answer3ms3428 KiB
24Accepted3ms3432 KiB
25Wrong answer3ms3556 KiB
26Accepted3ms3436 KiB
27Accepted3ms3676 KiB
28Wrong answer3ms3812 KiB