結果
| 問題 |
No.2126 MEX Game
|
| コンテスト | |
| ユーザー |
pitP
|
| 提出日時 | 2022-11-18 22:06:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2024-09-20 02:27:07 |
| 合計ジャッジ時間 | 2,469 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 16 WA * 11 |
ソースコード
N = int(input())
cnt = [0] * (10**5+10)
A = list(map(int,input().split()))
for i in range(N):
cnt[A[i]] += 1
for i in range(10**5+5):
if cnt[i] < 2:
print(i)
exit()
cnt[i+1] += cnt[i] - 2
pitP