68682023-12-19 13:01:04lennon014Formula-1cpp17Wrong answer 0/1003ms3704 KiB
#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <vector>

using namespace std;

int main() {
    int n, k=0, l=0;
    cin>>n;
    int ido1[n], ido2[n];

    for(int i=0;i<n;i++){
        cin>>ido1[i];
        k+=ido1[i];
    }
    for(int i=0;i<n;i++){
        cin>>ido2[i];
        l+=ido2[i];
    }

    if(k>l){
        cout<<"Hamilton";
    }else{
        cout<<"Verstappen";
    }
    cout<<endl;
    sort(ido1, ido1+n);
    sort(ido2, ido2+n);
    if(ido1[0]>ido2[0]){
        cout<<"Hamilton";
    }else{
        cout<<"Verstappen";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1880 KiB
2Wrong answer3ms2212 KiB
subtask20/10
3Wrong answer3ms2420 KiB
4Wrong answer3ms2304 KiB
5Wrong answer3ms2648 KiB
6Wrong answer3ms2588 KiB
subtask30/15
7Wrong answer3ms2584 KiB
8Wrong answer3ms2720 KiB
9Wrong answer2ms2800 KiB
10Wrong answer3ms2840 KiB
11Wrong answer3ms2912 KiB
subtask40/20
12Wrong answer3ms2912 KiB
13Wrong answer3ms2912 KiB
14Wrong answer3ms3156 KiB
15Wrong answer3ms3304 KiB
16Wrong answer3ms3476 KiB
17Wrong answer3ms3572 KiB
18Wrong answer3ms3520 KiB
19Wrong answer3ms3476 KiB
subtask50/55
20Wrong answer3ms3476 KiB
21Wrong answer3ms3616 KiB
22Wrong answer3ms3704 KiB
23Wrong answer3ms3540 KiB
24Wrong answer3ms3616 KiB
25Wrong answer3ms3596 KiB
26Wrong answer3ms3592 KiB
27Wrong answer3ms3592 KiB
28Wrong answer3ms3480 KiB