68442023-12-19 10:57:13VKristofFormula-1cpp17Wrong answer 0/1003ms4432 KiB
#include <iostream>

using namespace std;

int main()
{
    int N,o1,o2,k=10000000000,u=100000000000;
    cin>>N;
    int a[N],b[N];
    for(int i=0; i<N; i++)
        cin>>a[i];
    for(int i=0; i<N; i++)
        cin>>b[i];
    for(int i=0; i<N; i++)
         o1=o1+a[i];
    for(int i=0; i<N; i++)
         o2=o2+b[i];
    if(o1<o2)
            cout<<"Hamilton"<<endl;
    else
        cout<<"Verstappen"<<endl;
    for(int i=0; i<N; i++)
    {
        if(a[i]<k)
            k=a[i];
    }
    for(int i=0; i<N; i++)
    {
        if(b[i]<u)
            u=b[i];
    }
    if(k<u)
        cout<<"Hamilton";
    else
        cout<<"Verstappen";






    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1876 KiB
2Accepted3ms2120 KiB
subtask20/10
3Accepted3ms2364 KiB
4Wrong answer3ms2572 KiB
5Accepted3ms2644 KiB
6Wrong answer3ms2888 KiB
subtask30/15
7Wrong answer3ms3244 KiB
8Wrong answer3ms3192 KiB
9Accepted3ms3240 KiB
10Accepted3ms3244 KiB
11Wrong answer3ms3396 KiB
subtask40/20
12Wrong answer3ms3664 KiB
13Wrong answer3ms3608 KiB
14Accepted3ms3608 KiB
15Accepted2ms3676 KiB
16Wrong answer3ms3808 KiB
17Accepted3ms3916 KiB
18Accepted3ms3892 KiB
19Wrong answer3ms3888 KiB
subtask50/55
20Accepted3ms4168 KiB
21Accepted3ms4088 KiB
22Accepted3ms4224 KiB
23Wrong answer3ms4304 KiB
24Accepted3ms4304 KiB
25Accepted3ms4316 KiB
26Wrong answer3ms4316 KiB
27Wrong answer3ms4432 KiB
28Wrong answer3ms4320 KiB