30322023-02-08 18:56:18xxxVölgy (100 pont)cpp11Wrong answer 65/10039ms3980 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int a;
    int volgymax = 0, cnt = 0, cntmax = 0;
    for (int i =0; i < n; i++) {
        cin>> a;
        if (a >= volgymax) {
            volgymax = a;
            if (cnt > cntmax) {cntmax = cnt;}
            cnt = 1;
        } else {
            cnt++;
        }
    }
    cout << cntmax;
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base65/100
1Accepted0/03ms1744 KiB
2Wrong answer0/03ms1908 KiB
3Accepted5/53ms2124 KiB
4Accepted5/53ms2488 KiB
5Wrong answer0/53ms2592 KiB
6Wrong answer0/53ms2840 KiB
7Wrong answer0/53ms2812 KiB
8Accepted5/53ms2880 KiB
9Wrong answer0/53ms2988 KiB
10Wrong answer0/53ms3192 KiB
11Accepted5/54ms3552 KiB
12Accepted5/54ms3424 KiB
13Accepted5/54ms3492 KiB
14Wrong answer0/56ms3572 KiB
15Accepted5/530ms3692 KiB
16Accepted5/534ms3696 KiB
17Wrong answer0/534ms3688 KiB
18Accepted5/534ms3580 KiB
19Accepted5/534ms3696 KiB
20Accepted5/537ms3688 KiB
21Accepted5/539ms3704 KiB
22Accepted5/537ms3980 KiB