답안 #739988

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
739988 2023-05-11T19:37:54 Z unexpectedbro Baloni (COCI15_baloni) C++14
0 / 100
3 ms 3668 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+1<<endl;
}
int main()
{
	fast
	int tc=1;
	//cin>>tc;

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