68902023-12-19 14:38:05csakeszFormula-1cpp17Wrong answer 85/1003ms4912 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int N,kh=555555,kv=555555,oh,ov;
    cin>>N;
    int H[N];
    int V[N];
    for(int i=0;i<N;i++)
    {
        cin>>H[i];
        oh+=H[i];
        if(kh>H[i])
        {
            kh=H[i];
        }
    }
    for(int i=0;i<N;i++)
    {
        cin>>V[i];
        ov+=V[i];
        if(kv>V[i])
        {
            kv=V[i];
        }
    }
    if(oh>ov)
    {
        cout<<"Verstappen"<<endl;
    }
    else if(ov>oh)
    {
        cout<<"Hamilton"<<endl;
    }
    if(kh>kv)
    {
        cout<<"Verstappen"<<endl;
    }
    else if(kv>kh)
    {
        cout<<"Hamilton"<<endl;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1748 KiB
2Accepted3ms1916 KiB
subtask210/10
3Accepted3ms2160 KiB
4Accepted3ms2372 KiB
5Accepted3ms2584 KiB
6Accepted3ms2796 KiB
subtask30/15
7Wrong answer3ms2824 KiB
8Accepted3ms2948 KiB
9Accepted3ms3200 KiB
10Accepted3ms3312 KiB
11Accepted3ms3368 KiB
subtask420/20
12Accepted3ms3372 KiB
13Accepted3ms3736 KiB
14Accepted3ms3808 KiB
15Accepted3ms4020 KiB
16Accepted3ms4308 KiB
17Accepted3ms4288 KiB
18Accepted3ms4288 KiB
19Accepted3ms4524 KiB
subtask555/55
20Accepted3ms4456 KiB
21Accepted3ms4524 KiB
22Accepted3ms4768 KiB
23Accepted3ms4852 KiB
24Accepted3ms4732 KiB
25Accepted3ms4860 KiB
26Accepted3ms4792 KiB
27Accepted3ms4912 KiB
28Accepted3ms4800 KiB