結果
問題 |
No.2126 MEX Game
|
ユーザー |
![]() |
提出日時 | 2022-11-18 22:10:33 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 98,176 KB |
最終ジャッジ日時 | 2024-09-20 02:30:50 |
合計ジャッジ時間 | 2,815 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 2 |
ソースコード
import collections N = int(input()) A = list(map(int, input().split())) CA = collections.Counter(A) ans = 0 while CA[ans]>=2: ans+=1 if CA[ans] and ans*2+1<N: ans+=1 if CA[ans]>=3: ans+=1 print(ans)