68112023-12-19 10:31:42KovacsBalintFormula-1cpp17Wrong answer 0/1003ms3916 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"<<endl;
        }
        if(ki==H[i])
        {
            cout<<"Hamilton"<<endl;
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1748 KiB
2Accepted3ms1992 KiB
subtask20/10
3Wrong answer3ms2232 KiB
4Wrong answer3ms2324 KiB
5Wrong answer3ms2532 KiB
6Wrong answer3ms2556 KiB
subtask30/15
7Wrong answer3ms2660 KiB
8Accepted3ms2876 KiB
9Accepted3ms3092 KiB
10Wrong answer3ms3324 KiB
11Wrong answer3ms3248 KiB
subtask40/20
12Wrong answer3ms3248 KiB
13Accepted3ms3248 KiB
14Wrong answer3ms3412 KiB
15Wrong answer3ms3524 KiB
16Accepted3ms3600 KiB
17Wrong answer3ms3600 KiB
18Accepted3ms3600 KiB
19Wrong answer3ms3604 KiB
subtask50/55
20Accepted3ms3720 KiB
21Accepted3ms3720 KiB
22Wrong answer3ms3488 KiB
23Accepted3ms3484 KiB
24Accepted3ms3608 KiB
25Wrong answer3ms3848 KiB
26Accepted3ms3812 KiB
27Accepted3ms3916 KiB
28Wrong answer3ms3800 KiB