# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
88798 | 2018-12-08T19:56:40 Z | asifthegreat | Baloni (COCI15_baloni) | C++14 | 104 ms | 4004 KB |
#include <bits/stdc++.h> using namespace std; #define debug(a) cout << #a << " = " << a << endl const int N = 1000004; int ara[N],n; bitset<1000003>taken; int main() { scanf("%d",&n); for(int i = 0; i < n;i++)scanf("%d",&ara[i]); int cnt = 0; for(int i = 0; i < n;i++){ taken[ara[i]] = true; cnt++; if(taken[ara[i]+1])cnt--; } cout << cnt << endl; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 376 KB | Output isn't correct |
2 | Incorrect | 2 ms | 376 KB | Output isn't correct |
3 | Incorrect | 3 ms | 576 KB | Output isn't correct |
4 | Incorrect | 2 ms | 640 KB | Output isn't correct |
5 | Incorrect | 99 ms | 3588 KB | Output isn't correct |
6 | Incorrect | 104 ms | 4004 KB | Output isn't correct |
7 | Incorrect | 83 ms | 4004 KB | Output isn't correct |
8 | Incorrect | 86 ms | 4004 KB | Output isn't correct |
9 | Incorrect | 92 ms | 4004 KB | Output isn't correct |
10 | Incorrect | 93 ms | 4004 KB | Output isn't correct |