# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
366531 |
2021-02-14T10:47:11 Z |
usuyus |
Po (COCI21_po) |
C++14 |
|
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;
}
# |
결과 |
실행 시간 |
메모리 |
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 |