68732023-12-19 13:13:09Bea124Formula-1cpp17Wrong answer 0/1003ms4088 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
1Accepted3ms1876 KiB
2Accepted3ms2120 KiB
subtask20/10
3Wrong answer3ms2148 KiB
4Accepted3ms2396 KiB
5Wrong answer3ms2364 KiB
6Accepted3ms2492 KiB
subtask30/15
7Accepted3ms2700 KiB
8Accepted3ms2788 KiB
9Wrong answer3ms2788 KiB
10Wrong answer3ms2788 KiB
11Accepted3ms2784 KiB
subtask40/20
12Wrong answer3ms2912 KiB
13Accepted3ms3312 KiB
14Accepted3ms3332 KiB
15Accepted3ms3404 KiB
16Wrong answer3ms3312 KiB
17Wrong answer3ms3384 KiB
18Accepted3ms3528 KiB
19Wrong answer3ms3388 KiB
subtask50/55
20Accepted3ms3388 KiB
21Wrong answer3ms3384 KiB
22Accepted3ms3512 KiB
23Wrong answer3ms3592 KiB
24Accepted3ms3596 KiB
25Wrong answer3ms3840 KiB
26Accepted3ms3840 KiB
27Accepted3ms4088 KiB
28Wrong answer3ms4080 KiB