답안 #489544

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
489544 2021-11-23T06:23:01 Z mychecksedad Baloni (COCI15_baloni) C++17
0 / 100
57 ms 7212 KB
#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;

int n, arr[N];
int main(){
	cin.tie(0); ios::sync_with_stdio(0);
	cin >> n;
	for(int i = 0; i < n; ++i) cin >> arr[i];
	int ans = 1;
	for(int i = 0; i < n-1; ++i) if(arr[i] < arr[i + 1]) ++ans;
	cout << ans;

	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 208 KB Output isn't correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Incorrect 1 ms 336 KB Output isn't correct
5 Incorrect 52 ms 6932 KB Output isn't correct
6 Incorrect 52 ms 7212 KB Output isn't correct
7 Incorrect 44 ms 5972 KB Output isn't correct
8 Incorrect 42 ms 5936 KB Output isn't correct
9 Incorrect 50 ms 6448 KB Output isn't correct
10 Incorrect 57 ms 6484 KB Output isn't correct