68752023-12-19 13:18:59Bea124Formula-1cpp17Wrong answer 0/1003ms4960 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int n,v1,v2,o1=0,o2=0,m1=100001,m2=1000001;
    cin>>n;
    for(int i=0;i<n;i++)
    {
      cin>>v1;
      o1=o1+v1;
      m1=min(m1,v1);
    }
    for(int i=0;i<n;i++)
      cin>>v2;
    {
      o2=o2+v2;
      m2=min(m2,v1);
    }
    if(o1<o2)
        cout<<"Hamilton"<<endl;
    else
        cout<<"Verstappen"<<endl;
    if(m1<m2)
        cout<<"Hamilton"<<endl;
    else
        cout<<"Verstappen"<<endl;




    return 0;
}

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Wrong answer3ms2120 KiB
subtask20/10
3Wrong answer3ms2360 KiB
4Accepted3ms2576 KiB
5Wrong answer3ms2808 KiB
6Accepted3ms2848 KiB
subtask30/15
7Accepted3ms2940 KiB
8Accepted3ms3064 KiB
9Wrong answer3ms3180 KiB
10Wrong answer3ms3320 KiB
11Accepted3ms3436 KiB
subtask40/20
12Wrong answer3ms3668 KiB
13Accepted3ms3664 KiB
14Wrong answer3ms3664 KiB
15Wrong answer3ms3724 KiB
16Wrong answer3ms3724 KiB
17Wrong answer3ms3608 KiB
18Wrong answer3ms3604 KiB
19Wrong answer3ms3860 KiB
subtask50/55
20Wrong answer3ms3848 KiB
21Wrong answer3ms4092 KiB
22Wrong answer3ms4164 KiB
23Wrong answer3ms4316 KiB
24Wrong answer3ms4436 KiB
25Wrong answer3ms4520 KiB
26Accepted3ms4760 KiB
27Accepted3ms4848 KiB
28Wrong answer3ms4960 KiB