답안 #14298

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
14298 2015-05-10T10:42:36 Z jalmal 이상한 수열 (OJUZ10_bizarre) C++
24 / 100
13 ms 12800 KB
#include <stdio.h>

int N, M, chk[3000010], cnt;

int main()
{
    //freopen("input.txt", "r", stdin);

    int i, j;

    scanf("%d", &N);
    for(i = 1; i <= N; i ++)
    {
        int inp;
        scanf("%d", &inp);
        if(!chk[inp + 1000000]) cnt ++, chk[inp + 1000000] = 1;
    }
    scanf("%d", &M);

    for(i = N+1; i <= M; i ++)
    {
        if(chk[cnt + 1000000])
        {
            printf("%d\n", cnt);
            return 0;
        }
        chk[cnt + 1000000] = 1;
        cnt ++;
    }

    printf("%d\n", --cnt);
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 12800 KB Output isn't correct
2 Incorrect 0 ms 12800 KB Output isn't correct
3 Incorrect 0 ms 12800 KB Output isn't correct
4 Incorrect 0 ms 12800 KB Output isn't correct
5 Incorrect 0 ms 12800 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 12800 KB Output is correct
2 Correct 0 ms 12800 KB Output is correct
3 Correct 0 ms 12800 KB Output is correct
4 Correct 0 ms 12800 KB Output is correct
5 Correct 0 ms 12800 KB Output is correct
6 Correct 0 ms 12800 KB Output is correct
7 Correct 0 ms 12800 KB Output is correct
8 Correct 0 ms 12800 KB Output is correct
9 Correct 0 ms 12800 KB Output is correct
10 Correct 0 ms 12800 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 12800 KB Output is correct
2 Correct 0 ms 12800 KB Output is correct
3 Incorrect 0 ms 12800 KB Output isn't correct
4 Correct 0 ms 12800 KB Output is correct
5 Correct 0 ms 12800 KB Output is correct
6 Correct 0 ms 12800 KB Output is correct
7 Incorrect 0 ms 12800 KB Output isn't correct
8 Correct 0 ms 12800 KB Output is correct
9 Correct 0 ms 12800 KB Output is correct
10 Incorrect 0 ms 12800 KB Output isn't correct
11 Incorrect 8 ms 12800 KB Output isn't correct
12 Incorrect 0 ms 12800 KB Output isn't correct
13 Correct 6 ms 12800 KB Output is correct
14 Incorrect 0 ms 12800 KB Output isn't correct
15 Correct 0 ms 12800 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 12800 KB Output is correct
2 Correct 0 ms 12800 KB Output is correct
3 Correct 0 ms 12800 KB Output is correct
4 Incorrect 12 ms 12800 KB Output isn't correct
5 Incorrect 3 ms 12800 KB Output isn't correct
6 Incorrect 6 ms 12800 KB Output isn't correct
7 Incorrect 11 ms 12800 KB Output isn't correct
8 Incorrect 7 ms 12800 KB Output isn't correct
9 Incorrect 6 ms 12800 KB Output isn't correct
10 Incorrect 8 ms 12800 KB Output isn't correct
11 Correct 0 ms 12800 KB Output is correct
12 Correct 6 ms 12800 KB Output is correct
13 Incorrect 8 ms 12800 KB Output isn't correct
14 Correct 13 ms 12800 KB Output is correct
15 Incorrect 4 ms 12800 KB Output isn't correct