結果

問題 No.1686 Geschenkt
ユーザー wolgnikwolgnik
提出日時 2021-09-24 21:22:45
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 71,364 KB
最終ジャッジ日時 2023-09-18 20:32:53
合計ジャッジ時間 1,658 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,208 KB
testcase_01 AC 72 ms
71,172 KB
testcase_02 AC 75 ms
71,096 KB
testcase_03 AC 72 ms
71,212 KB
testcase_04 AC 77 ms
71,364 KB
testcase_05 AC 73 ms
70,956 KB
testcase_06 AC 71 ms
71,108 KB
testcase_07 AC 74 ms
71,064 KB
testcase_08 AC 72 ms
71,148 KB
testcase_09 AC 73 ms
70,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
N = int(input())
a = list(map(int, input().split()))
res = 0
for x in a:
  if x - 1 in a: continue
  res += x
print(res)
0