結果

問題 No.1686 Geschenkt
ユーザー chineristACchineristAC
提出日時 2021-09-24 21:21:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 72,464 KB
最終ジャッジ日時 2023-09-18 20:30:59
合計ジャッジ時間 2,007 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
72,268 KB
testcase_01 AC 90 ms
72,464 KB
testcase_02 AC 92 ms
72,012 KB
testcase_03 AC 92 ms
72,148 KB
testcase_04 AC 91 ms
72,260 KB
testcase_05 AC 94 ms
72,264 KB
testcase_06 AC 94 ms
71,932 KB
testcase_07 AC 93 ms
72,088 KB
testcase_08 AC 95 ms
72,076 KB
testcase_09 AC 91 ms
71,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()

res = 0
for a in A:
    if a-1 not in A:
        res += a

print(res)
0