結果

問題 No.2335 Jump
ユーザー june19312june19312
提出日時 2023-06-02 22:01:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 92,224 KB
最終ジャッジ日時 2023-08-28 03:30:18
合計ジャッジ時間 3,545 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,228 KB
testcase_01 AC 73 ms
71,496 KB
testcase_02 AC 74 ms
71,360 KB
testcase_03 AC 73 ms
71,424 KB
testcase_04 AC 72 ms
71,232 KB
testcase_05 AC 73 ms
71,504 KB
testcase_06 AC 73 ms
71,216 KB
testcase_07 AC 74 ms
71,344 KB
testcase_08 AC 72 ms
71,280 KB
testcase_09 AC 72 ms
71,288 KB
testcase_10 AC 73 ms
71,244 KB
testcase_11 AC 75 ms
71,520 KB
testcase_12 AC 99 ms
92,212 KB
testcase_13 AC 97 ms
92,108 KB
testcase_14 AC 99 ms
92,048 KB
testcase_15 AC 97 ms
92,172 KB
testcase_16 AC 97 ms
91,864 KB
testcase_17 AC 94 ms
90,948 KB
testcase_18 AC 97 ms
92,224 KB
testcase_19 AC 98 ms
91,908 KB
testcase_20 AC 97 ms
90,980 KB
testcase_21 AC 96 ms
91,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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