답안 #1112545

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1112545 2024-11-14T09:49:38 Z vjudge1 Baloni (COCI15_baloni) C++17
0 / 100
225 ms 584 KB
#include <bits/stdc++.h>
#define int long long

using namespace std;

int32_t main(){
	int n;
	cin>>n;
	int ans=n;
	map<int,int> cikti;
	for(int i=0; i<n; i++){
		int x;
		cin>>x;
		if(cikti[x]){
			ans--;
			cikti[x]=0;
			cikti[x-1]=1;
		}else{
			cikti[x-1]=1;
		}
	}
	cout<<ans<<"\n";
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Incorrect 2 ms 336 KB Output isn't correct
4 Incorrect 2 ms 336 KB Output isn't correct
5 Incorrect 225 ms 576 KB Output isn't correct
6 Incorrect 214 ms 336 KB Output isn't correct
7 Incorrect 159 ms 336 KB Output isn't correct
8 Incorrect 157 ms 492 KB Output isn't correct
9 Incorrect 197 ms 584 KB Output isn't correct
10 Incorrect 179 ms 336 KB Output isn't correct