답안 #506096

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
506096 2022-01-11T15:21:14 Z MurotY Baloni (COCI15_baloni) C++14
0 / 100
169 ms 7124 KB
#include<bits/stdc++.h>
#define ios ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long 
#define ff first
#define ss second
using namespace std;
const int N=1e6+7;
ll a[N];
int main()
{
	ll n;
	cin >> n;
	for (int i=1;i<=n;i++){
		cin >> a[i];
	}
	ll ans=1;
	for (int i=1;i<n;i++){
		if (a[i] <= a[i+1]) ans++;
	}
	cout << ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Incorrect 1 ms 332 KB Output isn't correct
5 Incorrect 169 ms 6448 KB Output isn't correct
6 Incorrect 165 ms 7124 KB Output isn't correct
7 Incorrect 159 ms 5908 KB Output isn't correct
8 Incorrect 153 ms 5860 KB Output isn't correct
9 Incorrect 156 ms 6212 KB Output isn't correct
10 Incorrect 156 ms 6392 KB Output isn't correct