124742024-12-18 12:58:54andorasrFasor (40)cpp17Wrong answer 22/4074ms508 KiB
#include <iostream>

using namespace std;

int main()
{
    int n,maxf=0,x,db=0,q=1,k;
    cin>>n>>k;
    cin>>maxf;
    for (int i=2;i<=n;i++)
    {
     cin >> x;
     if (maxf>=x)
     {
         db++;
     }
     else {maxf=x;db=0;q=i;}
     if(k==db) cout << q;
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base22/40
1Accepted0/01ms320 KiB
2Wrong answer0/04ms320 KiB
3Accepted2/21ms332 KiB
4Wrong answer0/21ms320 KiB
5Accepted2/21ms396 KiB
6Wrong answer0/21ms320 KiB
7Accepted2/21ms320 KiB
8Wrong answer0/22ms320 KiB
9Accepted2/24ms320 KiB
10Wrong answer0/24ms320 KiB
11Wrong answer0/24ms320 KiB
12Accepted2/23ms320 KiB
13Accepted2/237ms320 KiB
14Wrong answer0/234ms500 KiB
15Accepted2/259ms404 KiB
16Accepted2/267ms320 KiB
17Accepted2/272ms320 KiB
18Accepted2/274ms508 KiB
19Wrong answer0/272ms404 KiB
20Wrong answer0/220ms320 KiB
21Accepted2/259ms320 KiB
22Wrong answer0/272ms320 KiB