結果
問題 | No.2126 MEX Game |
ユーザー |
![]() |
提出日時 | 2023-03-17 10:44:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 99,208 KB |
最終ジャッジ日時 | 2024-09-18 09:53:05 |
合計ジャッジ時間 | 2,870 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 WA * 5 |
ソースコード
from collections import Countern = int(input())a = list(map(int, input().split()))c = Counter(a)sm = 0for i in range(1<<20):sm += c[i]if c[i] < 2:if sm < n and c[i]:i += 1print(i)break