Submission #541838

# Submission time Handle Problem Language Result Execution time Memory
541838 2022-03-24T14:14:17 Z Olympia Baloni (COCI15_baloni) C++17
0 / 100
65 ms 10696 KB
#include <vector>
#include <algorithm>
#include <iostream>
#include <set>
#include <cmath>
#include <map>
#include <random>
#include <cassert>
#include <ctime>
#include <cstdlib>
#include <limits.h>

using namespace std;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int N;
    cin >> N;
    vector<int64_t> v(N); for (int i = 0; i < N; i++) cin >> v[i];
    int cntr = 0;
    for (int i = 1; i < N; i++) {
        if (v[i] > v[i - 1]) {
            cntr++;
        }
    }
    cout << cntr + 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 320 KB Output isn't correct
2 Incorrect 1 ms 340 KB Output isn't correct
3 Incorrect 1 ms 340 KB Output isn't correct
4 Incorrect 1 ms 336 KB Output isn't correct
5 Incorrect 65 ms 10076 KB Output isn't correct
6 Incorrect 65 ms 10696 KB Output isn't correct
7 Incorrect 47 ms 8852 KB Output isn't correct
8 Incorrect 48 ms 8768 KB Output isn't correct
9 Incorrect 56 ms 9476 KB Output isn't correct
10 Incorrect 54 ms 9588 KB Output isn't correct