141962025-01-10 08:50:58markfsibianHőségriadó (50 pont)cpp17Wrong answer 0/5023ms544 KiB
#include <iostream>

using namespace std;

int n, k, l, f, ho, hi;
bool hr;
int main()
{
    cin >> n >> k >> l >> f;
    int t;
    for (int i = 1; i <= n; ++i)
    {
        cin >> t;
        if (t > f)
        {
            ho++;
            hi = 0;
        }
        if (t < f)
        {
            hi++;
            ho = 0;
        }
        if (ho == k)
            cout << i;
        
    }
    
}

SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms508 KiB
2Wrong answer0/023ms316 KiB
3Wrong answer0/21ms500 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms320 KiB
7Wrong answer0/21ms508 KiB
8Wrong answer0/42ms316 KiB
9Wrong answer0/410ms544 KiB
10Wrong answer0/413ms316 KiB
11Wrong answer0/414ms316 KiB
12Wrong answer0/412ms500 KiB
13Wrong answer0/418ms316 KiB
14Wrong answer0/42ms316 KiB
15Wrong answer0/420ms316 KiB
16Wrong answer0/420ms316 KiB
17Wrong answer0/420ms316 KiB