結果
| 問題 |
No.2648 [Cherry 6th Tune D] 一次元の馬
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-25 22:48:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 389 ms / 2,000 ms |
| コード長 | 167 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 82,780 KB |
| 実行使用メモリ | 107,676 KB |
| 最終ジャッジ日時 | 2025-06-20 02:05:51 |
| 合計ジャッジ時間 | 5,726 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 38 |
ソースコード
for _ in range(int(input())): n = int(input()) a = list(map(int, input().split())) res = 0 for i in range(n - 1): res = max(res, a[i] - a[i + 1] + 1) print(res)