結果
| 問題 | No.2126 MEX Game |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-11-18 21:55:39 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 95,572 KB |
| 実行使用メモリ | 99,464 KB |
| 最終ジャッジ日時 | 2026-08-31 12:26:34 |
| 合計ジャッジ時間 | 4,177 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 12 |
ソースコード
def mex(S):
x=0
while x in S:
x+=1
return x
def solve():
from collections import Counter
N=int(input())
A=list(map(int,input().split()))
CA=Counter(A)
S=set()
for a in CA:
if CA[a]>=2:
S.add(a)
return mex(S)
#==================================================
print(solve())
Kazun