結果

問題 No.1686 Geschenkt
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-06 05:15:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 112 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,628 KB
最終ジャッジ日時 2023-09-27 06:09:49
合計ジャッジ時間 1,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,528 KB
testcase_01 AC 63 ms
71,476 KB
testcase_02 AC 63 ms
71,496 KB
testcase_03 AC 63 ms
71,352 KB
testcase_04 AC 62 ms
71,468 KB
testcase_05 AC 67 ms
71,560 KB
testcase_06 AC 64 ms
71,628 KB
testcase_07 AC 63 ms
71,364 KB
testcase_08 AC 61 ms
71,272 KB
testcase_09 AC 63 ms
71,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))

ans = 0
for a in A:
	if a-1 not in A:
		ans += a
print(ans)
0