結果

問題 No.2126 MEX Game
ユーザー pitPpitP
提出日時 2022-11-18 22:06:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 81,836 KB
実行使用メモリ 82,828 KB
最終ジャッジ日時 2023-10-20 06:55:23
合計ジャッジ時間 2,811 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
54,272 KB
testcase_01 AC 35 ms
54,272 KB
testcase_02 WA -
testcase_03 AC 36 ms
54,272 KB
testcase_04 AC 44 ms
54,272 KB
testcase_05 WA -
testcase_06 AC 34 ms
54,272 KB
testcase_07 AC 36 ms
54,272 KB
testcase_08 AC 35 ms
54,272 KB
testcase_09 AC 36 ms
54,272 KB
testcase_10 AC 61 ms
82,752 KB
testcase_11 AC 60 ms
82,752 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 57 ms
80,604 KB
testcase_16 AC 57 ms
80,552 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 55 ms
79,520 KB
testcase_21 WA -
testcase_22 AC 34 ms
54,272 KB
testcase_23 AC 34 ms
54,272 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 34 ms
54,272 KB
testcase_27 AC 34 ms
54,272 KB
testcase_28 WA -
testcase_29 AC 34 ms
54,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
0