Submission #452132

# Submission time Handle Problem Language Result Execution time Memory
452132 2021-08-03T21:11:14 Z soba Money (IZhO17_money) C++14
0 / 100
1 ms 204 KB
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
int n;
int main()
{
    cin >> n;
    int cnt=1;
    int arr[n];
    for(int i = 0 ; i <  n; i++)
    {
        cin >> arr[i];
        if(i==0)continue;
        if(arr[i]<arr[i-1])
        {
            cnt++;
        }
    }
    cout << cnt;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -