68712023-12-19 13:12:16Bea124Formula-1cpp17Wrong answer 0/1003ms3856 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int n,v1,v2,o1=0,o2=0,m1=300000,m2=3000000;
    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
1Accepted3ms1880 KiB
2Accepted3ms2064 KiB
subtask20/10
3Wrong answer3ms2284 KiB
4Accepted3ms2524 KiB
5Wrong answer3ms2632 KiB
6Accepted3ms2824 KiB
subtask30/15
7Accepted3ms3016 KiB
8Accepted3ms3100 KiB
9Wrong answer3ms3100 KiB
10Wrong answer3ms3216 KiB
11Accepted3ms3336 KiB
subtask40/20
12Wrong answer3ms3220 KiB
13Accepted3ms3228 KiB
14Accepted3ms3224 KiB
15Accepted3ms3348 KiB
16Wrong answer3ms3348 KiB
17Wrong answer3ms3464 KiB
18Accepted3ms3460 KiB
19Wrong answer3ms3576 KiB
subtask50/55
20Accepted3ms3636 KiB
21Wrong answer3ms3672 KiB
22Accepted3ms3528 KiB
23Wrong answer3ms3668 KiB
24Accepted3ms3744 KiB
25Wrong answer3ms3856 KiB
26Accepted3ms3740 KiB
27Accepted3ms3740 KiB
28Wrong answer3ms3748 KiB