답안 #739986

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
739986 2023-05-11T19:35:59 Z unexpectedbro Baloni (COCI15_baloni) C++14
0 / 100
4 ms 3788 KB
#include <bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(false);cin.tie(nullptr);
#define ll long long
#define pb push_back
#define all(a) a.begin(),a.end()
void solve()
{
	int n;cin>>n;
	int a[n];
	int cnt=0;
	for(int i=0;i<n;i++){
		if(a[i]-a[i+1]==1){
			continue;
		}
		else{
			cnt++;
		}
	}
	cout<<cnt<<endl;
}
int main()
{
	fast
	int tc=1;
	//cin>>tc;

	while(tc--){
		solve();
	}
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 316 KB Output isn't correct
2 Incorrect 1 ms 320 KB Output isn't correct
3 Incorrect 1 ms 340 KB Output isn't correct
4 Incorrect 1 ms 340 KB Output isn't correct
5 Incorrect 3 ms 3412 KB Output isn't correct
6 Incorrect 4 ms 3788 KB Output isn't correct
7 Incorrect 2 ms 3156 KB Output isn't correct
8 Incorrect 2 ms 3156 KB Output isn't correct
9 Incorrect 2 ms 3284 KB Output isn't correct
10 Incorrect 3 ms 3400 KB Output isn't correct