結果

問題 No.1686 Geschenkt
ユーザー googol_S0googol_S0
提出日時 2021-09-24 21:20:58
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,720 KB
実行使用メモリ 71,544 KB
最終ジャッジ日時 2023-09-18 20:28:10
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,216 KB
testcase_01 AC 72 ms
71,360 KB
testcase_02 AC 72 ms
71,280 KB
testcase_03 AC 72 ms
71,544 KB
testcase_04 AC 72 ms
71,360 KB
testcase_05 AC 70 ms
71,516 KB
testcase_06 AC 72 ms
71,228 KB
testcase_07 AC 73 ms
71,164 KB
testcase_08 AC 72 ms
71,008 KB
testcase_09 AC 73 ms
71,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=sorted(map(int,input().split()))
ANS=0
for i in range(N):
  if not(A[i]-1 in A):
    ANS+=A[i]
print(ANS)
0