68382023-12-19 10:50:51VKristofFormula-1cpp17Wrong answer 0/1003ms4748 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(o2<o1)
            cout<<"Verstappen\n";
    else
        cout<<"Hamilton\n";
    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<<"Verstappen";
    else
        cout<<"Hamilton";






    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1876 KiB
2Accepted3ms2064 KiB
subtask20/10
3Accepted3ms2280 KiB
4Wrong answer3ms2496 KiB
5Accepted3ms2632 KiB
6Wrong answer3ms2832 KiB
subtask30/15
7Wrong answer3ms2884 KiB
8Wrong answer3ms3036 KiB
9Accepted3ms3412 KiB
10Accepted3ms3260 KiB
11Wrong answer3ms3380 KiB
subtask40/20
12Wrong answer3ms3464 KiB
13Wrong answer3ms3468 KiB
14Accepted3ms3708 KiB
15Accepted3ms3680 KiB
16Wrong answer3ms3928 KiB
17Accepted3ms3996 KiB
18Accepted3ms4108 KiB
19Wrong answer3ms4304 KiB
subtask50/55
20Accepted3ms4168 KiB
21Accepted3ms4412 KiB
22Accepted3ms4532 KiB
23Wrong answer3ms4528 KiB
24Accepted3ms4532 KiB
25Accepted3ms4524 KiB
26Wrong answer3ms4660 KiB
27Wrong answer3ms4740 KiB
28Wrong answer3ms4748 KiB