120232024-11-25 14:41:33KissCsongor777Hőségriadó (50 pont)cpp17Wrong answer 8/5021ms500 KiB
#include <iostream>

using namespace std;

int main()
{
    int N,K,L,F,A,k=0,l=0, db=0;
    cin>>N>>K>>L>>F;
    for(int i=1; i<=N; i++)
    {
        cin>>A;
        if(A>F){k++;l=0;}
        if(A<F){l++; k=0;}
        if(A==F){l=0;k=0;}
        if(k==K)db++;
    }
    cout<<db;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base8/50
1Accepted0/01ms320 KiB
2Wrong answer0/021ms404 KiB
3Accepted2/21ms320 KiB
4Accepted2/21ms500 KiB
5Accepted2/21ms320 KiB
6Accepted2/21ms320 KiB
7Wrong answer0/21ms320 KiB
8Wrong answer0/41ms320 KiB
9Wrong answer0/48ms320 KiB
10Wrong answer0/412ms412 KiB
11Wrong answer0/413ms408 KiB
12Wrong answer0/410ms320 KiB
13Wrong answer0/417ms400 KiB
14Wrong answer0/42ms320 KiB
15Wrong answer0/419ms404 KiB
16Wrong answer0/419ms408 KiB
17Wrong answer0/419ms404 KiB