68892023-12-19 14:35:48csakeszFormula-1cpp17Wrong answer 85/1003ms3932 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int N,kh=555555,kv=5555555,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 answer3ms1876 KiB
2Accepted3ms2068 KiB
subtask210/10
3Accepted3ms2156 KiB
4Accepted3ms2284 KiB
5Accepted3ms2512 KiB
6Accepted3ms2604 KiB
subtask30/15
7Wrong answer3ms2596 KiB
8Accepted3ms2660 KiB
9Accepted3ms2812 KiB
10Accepted3ms2996 KiB
11Accepted3ms3208 KiB
subtask420/20
12Accepted3ms3092 KiB
13Accepted3ms3216 KiB
14Accepted3ms3224 KiB
15Accepted3ms3220 KiB
16Accepted3ms3232 KiB
17Accepted3ms3232 KiB
18Accepted3ms3240 KiB
19Accepted3ms3236 KiB
subtask555/55
20Accepted3ms3388 KiB
21Accepted3ms3380 KiB
22Accepted3ms3336 KiB
23Accepted3ms3336 KiB
24Accepted3ms3472 KiB
25Accepted3ms3564 KiB
26Accepted3ms3796 KiB
27Accepted3ms3808 KiB
28Accepted3ms3932 KiB