結果
| 問題 |
No.2335 Jump
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-02 22:38:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 135 bytes |
| コンパイル時間 | 2,091 ms |
| コンパイル使用メモリ | 81,536 KB |
| 実行使用メモリ | 82,816 KB |
| 最終ジャッジ日時 | 2024-12-28 20:28:20 |
| 合計ジャッジ時間 | 3,949 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
cnt = 0
now = 0
for i in range(N):
cnt += A[i]-now-1
now = A[i]
print(cnt)