結果
問題 |
No.2126 MEX Game
|
ユーザー |
![]() |
提出日時 | 2025-06-12 18:00:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,256 KB |
実行使用メモリ | 99,468 KB |
最終ジャッジ日時 | 2025-06-12 18:00:40 |
合計ジャッジ時間 | 2,789 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 12 |
ソースコード
n = int(input()) a = list(map(int, input().split())) from collections import defaultdict count = defaultdict(int) for num in a: count[num] += 1 mex = 0 while True: if count[mex] >= 2: mex += 1 else: break print(mex)