68232023-12-19 10:40:31KovacsBalintFormula-1cpp17Wrong answer 0/1003ms3792 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"<<"/n";
    }
    else
    {
        cout<<"Verstappen"<<"/n";
    }
    for(int i=0;i<n;i++)
    {
        if(ki==V[i])
        {
            cout<<"Verstappen"<<"/n";
        }
        if(ki==H[i])
        {
            cout<<"Hamilton"<<"/n";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1868 KiB
2Wrong answer3ms2120 KiB
subtask20/10
3Wrong answer3ms2360 KiB
4Wrong answer3ms2572 KiB
5Wrong answer3ms2784 KiB
6Wrong answer3ms2876 KiB
subtask30/15
7Wrong answer3ms2872 KiB
8Wrong answer3ms2900 KiB
9Wrong answer3ms3032 KiB
10Wrong answer3ms3152 KiB
11Wrong answer3ms3144 KiB
subtask40/20
12Wrong answer3ms3280 KiB
13Wrong answer3ms3480 KiB
14Wrong answer3ms3704 KiB
15Wrong answer3ms3692 KiB
16Wrong answer3ms3680 KiB
17Wrong answer3ms3632 KiB
18Wrong answer3ms3664 KiB
19Wrong answer3ms3764 KiB
subtask50/55
20Wrong answer3ms3760 KiB
21Wrong answer3ms3768 KiB
22Wrong answer3ms3776 KiB
23Wrong answer3ms3648 KiB
24Wrong answer3ms3648 KiB
25Wrong answer3ms3648 KiB
26Wrong answer3ms3652 KiB
27Wrong answer3ms3656 KiB
28Wrong answer3ms3792 KiB