67862023-12-19 09:58:07KovacsBalintBevásárláscpp17Wrong answer 0/1003ms4096 KiB
#include <iostream>
 
using namespace std;
 
int main()
{
    int N,Hi,Vi,i,H=0,V=0;
    cin>>N;
    for (i=1; i<=N; i++)
    {
        cin>>Hi;
        H=H+Hi;
        cin>>Vi;
        V=V+Vi;
    }
    if (V>H)
    {
        cout<<"Verstappen"<<endl;
    }
    else if (H>V)
    {
        cout<<"Hamilton"<<endl;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1880 KiB
2Wrong answer3ms2112 KiB
3Wrong answer3ms2280 KiB
subtask20/10
4Wrong answer3ms2540 KiB
5Wrong answer3ms2552 KiB
6Wrong answer2ms2408 KiB
subtask30/20
7Wrong answer3ms2648 KiB
8Wrong answer2ms2732 KiB
9Wrong answer3ms2856 KiB
10Wrong answer2ms2856 KiB
subtask40/30
11Wrong answer2ms2856 KiB
12Wrong answer3ms2992 KiB
13Wrong answer3ms3080 KiB
14Wrong answer3ms3080 KiB
subtask50/40
15Wrong answer3ms3204 KiB
16Wrong answer3ms3420 KiB
17Wrong answer3ms3540 KiB
18Wrong answer3ms3812 KiB
19Wrong answer3ms3880 KiB
20Wrong answer3ms4096 KiB