129272025-01-03 15:55:30PappMatyasVölgy (100 pont)python3Runtime error 0/10017ms3052 KiB
#include <iostream>

using namespace std;

int main()
{
    int ans = -1, n, a, ta = 1, save;
    bool finish = false;
    cin >> n;
    cin >> save;
    for(int i = 1; i < n; i++)
    {
        cin >> a;
        if(a < save)
        {
            ta++;
        }
        else
        {
            if(ta > ans && ta != 1)
            {
                ans = ta;
            }
            ta = 1;
            save = a;
        }
    }
    cout << ans;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/100
1Runtime error0/014ms2872 KiB
2Runtime error0/016ms2972 KiB
3Runtime error0/514ms2872 KiB
4Runtime error0/516ms2872 KiB
5Runtime error0/517ms2896 KiB
6Runtime error0/516ms3032 KiB
7Runtime error0/516ms2964 KiB
8Runtime error0/516ms2952 KiB
9Runtime error0/517ms3040 KiB
10Runtime error0/516ms3036 KiB
11Runtime error0/514ms2872 KiB
12Runtime error0/514ms2828 KiB
13Runtime error0/516ms3020 KiB
14Runtime error0/514ms3052 KiB
15Runtime error0/516ms2840 KiB
16Runtime error0/516ms2996 KiB
17Runtime error0/516ms2840 KiB
18Runtime error0/516ms3048 KiB
19Runtime error0/514ms2864 KiB
20Runtime error0/514ms2872 KiB
21Runtime error0/514ms2872 KiB
22Runtime error0/514ms2928 KiB