68762023-12-19 13:23:40Bea124Formula-1cpp17Wrong answer 10/1003ms3816 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,v2);
    }
    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
1Accepted3ms1744 KiB
2Wrong answer3ms1992 KiB
subtask210/10
3Accepted3ms2120 KiB
4Accepted3ms2332 KiB
5Accepted3ms2732 KiB
6Accepted3ms2804 KiB
subtask30/15
7Accepted3ms2888 KiB
8Accepted3ms3120 KiB
9Wrong answer3ms3260 KiB
10Wrong answer3ms3412 KiB
11Wrong answer3ms3464 KiB
subtask40/20
12Accepted3ms3544 KiB
13Accepted3ms3656 KiB
14Wrong answer3ms3668 KiB
15Wrong answer3ms3572 KiB
16Wrong answer3ms3556 KiB
17Wrong answer3ms3788 KiB
18Wrong answer3ms3708 KiB
19Wrong answer3ms3680 KiB
subtask50/55
20Wrong answer3ms3800 KiB
21Wrong answer3ms3792 KiB
22Wrong answer3ms3816 KiB
23Wrong answer3ms3684 KiB
24Wrong answer3ms3680 KiB
25Wrong answer3ms3684 KiB
26Accepted3ms3684 KiB
27Accepted3ms3680 KiB
28Wrong answer3ms3680 KiB