68062023-12-19 10:26:11AMDFanboyForma-1cpp17Wrong answer 0/1004ms3956 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
    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";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms2148 KiB
subtask20/20
2Wrong answer3ms2076 KiB
3Wrong answer3ms2208 KiB
4Wrong answer3ms2384 KiB
5Wrong answer3ms2600 KiB
6Wrong answer2ms2680 KiB
7Wrong answer3ms2676 KiB
8Wrong answer3ms2808 KiB
9Wrong answer3ms3016 KiB
subtask30/30
10Wrong answer3ms3140 KiB
11Wrong answer4ms3100 KiB
12Wrong answer4ms3232 KiB
13Wrong answer3ms3472 KiB
14Wrong answer3ms3680 KiB
15Wrong answer4ms3624 KiB
16Wrong answer4ms3724 KiB
17Wrong answer4ms3736 KiB
18Wrong answer4ms3600 KiB
subtask40/50
19Wrong answer3ms3708 KiB
20Wrong answer4ms3600 KiB
21Wrong answer4ms3760 KiB
22Wrong answer3ms3856 KiB
23Wrong answer3ms3740 KiB
24Wrong answer3ms3848 KiB
25Wrong answer4ms3848 KiB
26Wrong answer4ms3872 KiB
27Wrong answer4ms3956 KiB
28Wrong answer4ms3956 KiB
29Wrong answer4ms3952 KiB
30Wrong answer4ms3952 KiB