68022023-12-19 10:20:15AMDFanboyForma-1cpp17Wrong answer 0/1004ms5444 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    double 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 answer3ms1876 KiB
subtask20/20
2Wrong answer3ms2068 KiB
3Wrong answer3ms2308 KiB
4Wrong answer3ms2492 KiB
5Wrong answer3ms2580 KiB
6Wrong answer3ms2816 KiB
7Wrong answer3ms3172 KiB
8Wrong answer3ms3216 KiB
9Wrong answer3ms3424 KiB
subtask30/30
10Wrong answer4ms3660 KiB
11Wrong answer4ms3664 KiB
12Wrong answer4ms4028 KiB
13Wrong answer4ms4200 KiB
14Wrong answer4ms4104 KiB
15Wrong answer4ms4360 KiB
16Wrong answer4ms4460 KiB
17Wrong answer4ms4580 KiB
18Wrong answer4ms4784 KiB
subtask40/50
19Wrong answer4ms4836 KiB
20Wrong answer4ms4840 KiB
21Wrong answer4ms4736 KiB
22Wrong answer4ms4736 KiB
23Wrong answer4ms4740 KiB
24Wrong answer4ms4736 KiB
25Wrong answer4ms4852 KiB
26Wrong answer4ms4968 KiB
27Wrong answer4ms5068 KiB
28Wrong answer4ms5076 KiB
29Wrong answer4ms5444 KiB
30Wrong answer4ms5408 KiB