# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
375110 | 2021-03-09T03:12:31 Z | Lumos | Po (COCI21_po) | C++17 | 13 ms | 1772 KB |
// minako #include <bits/stdc++.h> using namespace std; #define endl "\n" #define f first #define s second #define pb push_back #define pii pair<int,int> #define ll int #define pll pair <ll,ll> #define faster ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); const ll M = 1e9 + 7; const int N = 6e5 + 5; const ll INF = 1e9; const ll INF2 = 1e18; const int K = 5000; ll n,a[N],cnt; int main() { faster cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; if (a[i] > a[i - 1]) cnt++; } cout << cnt; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 364 KB | Output isn't correct |
2 | Incorrect | 1 ms | 364 KB | Output isn't correct |
3 | Incorrect | 1 ms | 364 KB | Output isn't correct |
4 | Incorrect | 4 ms | 620 KB | Output isn't correct |
5 | Incorrect | 6 ms | 876 KB | Output isn't correct |
6 | Correct | 13 ms | 1772 KB | Output is correct |
7 | Incorrect | 12 ms | 1772 KB | Output isn't correct |