結果

問題 No.2335 Jump
ユーザー minimumminimum
提出日時 2023-06-02 21:30:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 92,012 KB
最終ジャッジ日時 2023-08-28 02:46:43
合計ジャッジ時間 3,125 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,096 KB
testcase_01 AC 69 ms
71,388 KB
testcase_02 AC 70 ms
71,484 KB
testcase_03 AC 70 ms
71,248 KB
testcase_04 AC 71 ms
71,284 KB
testcase_05 AC 70 ms
71,248 KB
testcase_06 AC 71 ms
71,284 KB
testcase_07 AC 70 ms
71,372 KB
testcase_08 AC 74 ms
71,316 KB
testcase_09 AC 71 ms
71,188 KB
testcase_10 AC 70 ms
71,280 KB
testcase_11 AC 72 ms
71,496 KB
testcase_12 AC 95 ms
92,012 KB
testcase_13 AC 92 ms
91,872 KB
testcase_14 AC 93 ms
91,920 KB
testcase_15 AC 97 ms
91,844 KB
testcase_16 AC 94 ms
92,012 KB
testcase_17 AC 93 ms
90,652 KB
testcase_18 AC 93 ms
91,880 KB
testcase_19 AC 94 ms
91,928 KB
testcase_20 AC 91 ms
90,716 KB
testcase_21 AC 91 ms
91,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [0] + list(map(int, input().split()))
ans = 0
for i in range(N):
    ans += A[i + 1] - A[i] - 1
print(ans)
0