提出 #30436677


ソースコード 拡げる

n = int(input())
a = list(map(int,input().split()))

ans = 0
for k in range(2001):
    if k in a:
        continue
    else:
        print(k)
        exit()
        
    

提出情報

提出日時
問題 B - Mex
ユーザ maai
言語 PyPy3 (7.3.0)
得点 200
コード長 181 Byte
結果 AC
実行時間 70 ms
メモリ 64432 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 16
セット名 テストケース
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, example0.txt, example1.txt
ケース名 結果 実行時間 メモリ
000.txt AC 70 ms 61568 KiB
001.txt AC 45 ms 61420 KiB
002.txt AC 56 ms 63588 KiB
003.txt AC 51 ms 63764 KiB
004.txt AC 51 ms 63852 KiB
005.txt AC 56 ms 64184 KiB
006.txt AC 51 ms 64432 KiB
007.txt AC 46 ms 61520 KiB
008.txt AC 50 ms 61608 KiB
009.txt AC 51 ms 63580 KiB
010.txt AC 52 ms 63612 KiB
011.txt AC 49 ms 63744 KiB
012.txt AC 49 ms 63820 KiB
013.txt AC 50 ms 63560 KiB
example0.txt AC 51 ms 61536 KiB
example1.txt AC 49 ms 61436 KiB