68142023-12-19 10:34:15KovacsBalintFormula-1cpp17Wrong answer 0/1003ms3848 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];
        if(H[i]>ki)
        {
            ki=H[i];
        }
    }
    for(int i=0;i<n;i++)
    {
        cin>>V[i];
        if(V[i]>ki)
        {
            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=0;i<n;i++)
    {
        if(ki==V[i])
        {
            cout<<"Verstappen";
        }
        if(ki==H[i])
        {
            cout<<"Hamilton";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms2148 KiB
2Accepted3ms2212 KiB
subtask20/10
3Wrong answer3ms2304 KiB
4Wrong answer3ms2312 KiB
5Wrong answer3ms2456 KiB
6Wrong answer3ms2448 KiB
subtask30/15
7Wrong answer3ms2448 KiB
8Wrong answer3ms2648 KiB
9Wrong answer3ms2916 KiB
10Wrong answer3ms2692 KiB
11Wrong answer3ms2836 KiB
subtask40/20
12Wrong answer3ms2884 KiB
13Wrong answer3ms3156 KiB
14Wrong answer3ms3080 KiB
15Wrong answer3ms2992 KiB
16Wrong answer3ms3276 KiB
17Accepted3ms3480 KiB
18Accepted3ms3612 KiB
19Wrong answer3ms3492 KiB
subtask50/55
20Accepted3ms3440 KiB
21Wrong answer3ms3412 KiB
22Wrong answer3ms3416 KiB
23Accepted3ms3532 KiB
24Accepted3ms3596 KiB
25Wrong answer3ms3484 KiB
26Accepted3ms3608 KiB
27Accepted3ms3728 KiB
28Wrong answer3ms3848 KiB