답안 #1112426

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1112426 2024-11-14T07:42:04 Z vjudge1 Baloni (COCI15_baloni) C++17
0 / 100
204 ms 7248 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;


int32_t main(){  
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin>>n;
int a[n];
multiset<int> st;
int cnt=0;
for(int i=0;i<n;i++){
	cin>>a[i];
	if(st.find(a[i]+1)==st.end())cnt++;
	else st.erase(a[i]+1);
	st.insert(a[i]);
	}
cout<<cnt;

 return 0;  
}  
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 2 ms 336 KB Output isn't correct
3 Incorrect 2 ms 508 KB Output isn't correct
4 Incorrect 2 ms 500 KB Output isn't correct
5 Incorrect 168 ms 6648 KB Output isn't correct
6 Incorrect 204 ms 7248 KB Output isn't correct
7 Incorrect 154 ms 5968 KB Output isn't correct
8 Incorrect 144 ms 5968 KB Output isn't correct
9 Incorrect 158 ms 6460 KB Output isn't correct
10 Incorrect 162 ms 6492 KB Output isn't correct