Submission #366531

# Submission time Handle Problem Language Result Execution time Memory
366531 2021-02-14T10:47:11 Z usuyus Po (COCI21_po) C++14
10 / 70
12 ms 364 KB
#include <bits/stdc++.h>
#define N 200005
using namespace std;
using ll = long long;

int n, a, ans;

int main() {
	ios_base::sync_with_stdio(false); cin.tie(nullptr);
	cin>>n; a = 0, ans = 0;

	while (n--) {
		int b; cin>>b;
		if (b > a) ans++;
		a = b;
	}

	cout<<ans<<endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Incorrect 0 ms 364 KB Output isn't correct
3 Incorrect 1 ms 364 KB Output isn't correct
4 Incorrect 5 ms 364 KB Output isn't correct
5 Incorrect 8 ms 364 KB Output isn't correct
6 Correct 12 ms 364 KB Output is correct
7 Incorrect 11 ms 364 KB Output isn't correct