105042024-04-03 16:32:57MagyarKendeSZLGLegcsalódottabb versenyző (75 pont)cpp17Wrong answer 10/7514ms4380 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0), ios::sync_with_stdio(0);

    int N;
    cin >> N;
    vector<int> v(N);
    for (int& x : v) cin >> x;

    int l = 0, r = 1, result = -1;
    while (r < N) {
        if (v[l] < v[r]) {
            result = max(result, r - l);
            l = r;
        }
        r++;
    }

    cout << result;
}
SubtaskSumTestVerdictTimeMemory
base10/75
1Accepted0/03ms1824 KiB
2Wrong answer0/014ms2840 KiB
3Accepted5/53ms2132 KiB
4Wrong answer0/53ms2336 KiB
5Wrong answer0/53ms2548 KiB
6Accepted5/53ms2772 KiB
7Wrong answer0/52ms2860 KiB
8Wrong answer0/53ms3068 KiB
9Wrong answer0/53ms3052 KiB
10Wrong answer0/53ms3276 KiB
11Wrong answer0/53ms3504 KiB
12Wrong answer0/53ms3720 KiB
13Wrong answer0/514ms4380 KiB
14Wrong answer0/514ms4380 KiB
15Wrong answer0/514ms4376 KiB
16Wrong answer0/514ms4380 KiB
17Wrong answer0/514ms4376 KiB