68202023-12-19 10:37:57AMDFanboyForma-1cpp17Wrong answer 0/1004ms3756 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    int H, V, osszH=0, osszV=0, minH=9999999999, minV=9999999999;
    cin>>N;
    for(int i=0; i<N; i++)
    {
        cin>>H;
        osszH+=H;
        if (H<minH)
            minH=H;
    }
    for(int i=0; i<N; i++)
    {
        cin>>V;
        osszV+=V;
        if (V<minV)
            minV=V;
    }
    if (osszV<osszH)
        cout<<"Verstappen"<<endl;
    else
        cout<<"Hamilton"<<endl;
    if(minV<minH)
        cout<<"Verstappen";
    else
        cout<<"Hamilton";
    cout<<osszV<<endl<<osszH<<endl<<minV<<endl<<minH;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1876 KiB
subtask20/20
2Wrong answer3ms2120 KiB
3Wrong answer3ms2280 KiB
4Wrong answer3ms2524 KiB
5Wrong answer3ms2612 KiB
6Wrong answer3ms2704 KiB
7Wrong answer3ms2936 KiB
8Wrong answer3ms3052 KiB
9Wrong answer3ms3060 KiB
subtask30/30
10Wrong answer3ms3144 KiB
11Wrong answer4ms3420 KiB
12Wrong answer4ms3408 KiB
13Wrong answer4ms3524 KiB
14Wrong answer4ms3440 KiB
15Wrong answer4ms3556 KiB
16Wrong answer4ms3756 KiB
17Wrong answer4ms3520 KiB
18Wrong answer4ms3524 KiB
subtask40/50
19Wrong answer3ms3524 KiB
20Wrong answer4ms3524 KiB
21Wrong answer3ms3644 KiB
22Wrong answer3ms3524 KiB
23Wrong answer3ms3524 KiB
24Wrong answer4ms3640 KiB
25Wrong answer4ms3640 KiB
26Wrong answer4ms3664 KiB
27Wrong answer4ms3520 KiB
28Wrong answer4ms3520 KiB
29Wrong answer4ms3528 KiB
30Wrong answer4ms3644 KiB