68252023-12-19 10:41:32KovacsBalintFormula-1cpp17Wrong answer 0/1003ms4796 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";
        }
        if(ki==H[i])
        {
            cout<<"Hamilton";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1868 KiB
2Wrong answer3ms2116 KiB
subtask20/10
3Wrong answer3ms2336 KiB
4Wrong answer3ms2580 KiB
5Wrong answer3ms2700 KiB
6Wrong answer3ms2828 KiB
subtask30/15
7Wrong answer3ms3060 KiB
8Wrong answer3ms3000 KiB
9Wrong answer3ms3116 KiB
10Wrong answer3ms3112 KiB
11Wrong answer3ms3236 KiB
subtask40/20
12Wrong answer3ms2996 KiB
13Wrong answer3ms3128 KiB
14Wrong answer3ms3240 KiB
15Wrong answer3ms3208 KiB
16Wrong answer3ms3344 KiB
17Wrong answer3ms3456 KiB
18Wrong answer3ms3452 KiB
19Wrong answer3ms3688 KiB
subtask50/55
20Wrong answer3ms3828 KiB
21Wrong answer3ms4020 KiB
22Wrong answer3ms4236 KiB
23Wrong answer3ms4464 KiB
24Wrong answer3ms4564 KiB
25Wrong answer3ms4680 KiB
26Wrong answer3ms4680 KiB
27Wrong answer3ms4704 KiB
28Wrong answer3ms4796 KiB