結果
| 問題 |
No.2126 MEX Game
|
| コンテスト | |
| ユーザー |
sepa38
|
| 提出日時 | 2023-03-17 11:48:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 82,420 KB |
| 実行使用メモリ | 98,952 KB |
| 最終ジャッジ日時 | 2024-09-18 09:53:18 |
| 合計ジャッジ時間 | 2,976 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 4 |
ソースコード
from collections import Counter
n = int(input())
a = list(map(int, input().split()))
c = Counter(a)
sm = 0
flg = 1
for i in range(1<<20):
sm += c[i]
if c[i] < 2:
if sm < n and c[i] and flg:
flg = 0
continue
print(i)
break
sepa38