結果

問題 No.2126 MEX Game
ユーザー terasaterasa
提出日時 2022-11-22 12:44:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 597 bytes
コンパイル時間 2,026 ms
コンパイル使用メモリ 81,580 KB
実行使用メモリ 102,304 KB
最終ジャッジ日時 2023-10-24 04:55:31
合計ジャッジ時間 6,541 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
68,236 KB
testcase_01 AC 65 ms
68,236 KB
testcase_02 AC 67 ms
68,236 KB
testcase_03 AC 66 ms
68,236 KB
testcase_04 AC 65 ms
68,236 KB
testcase_05 WA -
testcase_06 AC 66 ms
68,236 KB
testcase_07 WA -
testcase_08 AC 66 ms
68,236 KB
testcase_09 AC 67 ms
68,236 KB
testcase_10 AC 116 ms
94,900 KB
testcase_11 AC 116 ms
94,908 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 113 ms
96,808 KB
testcase_16 AC 114 ms
96,748 KB
testcase_17 AC 102 ms
88,376 KB
testcase_18 AC 99 ms
88,496 KB
testcase_19 AC 95 ms
90,352 KB
testcase_20 AC 96 ms
90,352 KB
testcase_21 WA -
testcase_22 AC 66 ms
68,240 KB
testcase_23 AC 66 ms
68,240 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from typing import List, Tuple, Callable, TypeVar
import sys
import itertools
import heapq
import bisect
import math
from collections import deque, defaultdict, Counter
from functools import lru_cache, cmp_to_key

input = sys.stdin.readline

if __file__ != 'prog.py':
    sys.setrecursionlimit(10 ** 6)


def readints(): return map(int, input().split())
def readlist(): return list(readints())
def readstr(): return input()[:-1]


N = int(input())
A = readlist()

cnt = defaultdict(int)
for a in A:
    cnt[a] += 1

for i in range(10 ** 5 + 10):
    if cnt[i] <= 1:
        print(i)
        break
0