68032023-12-19 10:24:07KovacsBalintFormula-1cpp17Wrong answer 0/1003ms4380 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";
    }
    else
    {
        cout<<"Verstappen";
    }
    for(int i;i<n;i++)
    {
        if(ki==V[i])
        {
            cout<<"Verstappen";
        }
        if(ki==H[i])
        {
            cout<<"Hamilton";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1876 KiB
2Wrong answer3ms2124 KiB
subtask20/10
3Wrong answer3ms2328 KiB
4Wrong answer3ms2640 KiB
5Wrong answer3ms2436 KiB
6Wrong answer3ms2688 KiB
subtask30/15
7Wrong answer3ms2780 KiB
8Wrong answer3ms2864 KiB
9Wrong answer3ms2996 KiB
10Wrong answer3ms3076 KiB
11Wrong answer3ms3228 KiB
subtask40/20
12Wrong answer3ms3228 KiB
13Wrong answer3ms3220 KiB
14Wrong answer3ms3316 KiB
15Wrong answer3ms3432 KiB
16Wrong answer3ms3512 KiB
17Wrong answer3ms3408 KiB
18Wrong answer3ms3388 KiB
19Wrong answer3ms3508 KiB
subtask50/55
20Wrong answer3ms3632 KiB
21Wrong answer3ms3596 KiB
22Wrong answer3ms3708 KiB
23Wrong answer3ms3872 KiB
24Wrong answer3ms3888 KiB
25Wrong answer3ms3880 KiB
26Wrong answer3ms3992 KiB
27Wrong answer3ms4380 KiB
28Wrong answer3ms4324 KiB