結果

問題 No.1686 Geschenkt
ユーザー 👑 H20H20
提出日時 2021-09-24 21:24:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 71,600 KB
最終ジャッジ日時 2023-09-18 20:34:23
合計ジャッジ時間 2,011 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,464 KB
testcase_01 AC 96 ms
71,308 KB
testcase_02 AC 94 ms
71,560 KB
testcase_03 AC 93 ms
71,308 KB
testcase_04 AC 96 ms
71,304 KB
testcase_05 AC 95 ms
71,600 KB
testcase_06 AC 96 ms
71,412 KB
testcase_07 AC 95 ms
71,516 KB
testcase_08 AC 92 ms
71,488 KB
testcase_09 AC 95 ms
71,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
A = list(map(int, input().split())) 
CA = collections.Counter(A)
ans=0 
for k in CA.keys():
    if CA[k-1]==0:
        ans+=k
print(ans)
0