結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー 👑 KazunKazun
提出日時 2023-07-24 23:42:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 82,704 KB
実行使用メモリ 105,420 KB
最終ジャッジ日時 2024-04-10 15:46:51
合計ジャッジ時間 5,978 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,880 KB
testcase_01 AC 78 ms
76,956 KB
testcase_02 AC 64 ms
75,672 KB
testcase_03 AC 66 ms
75,404 KB
testcase_04 AC 76 ms
97,204 KB
testcase_05 AC 77 ms
102,412 KB
testcase_06 AC 70 ms
91,412 KB
testcase_07 AC 76 ms
102,348 KB
testcase_08 AC 68 ms
89,436 KB
testcase_09 AC 79 ms
105,416 KB
testcase_10 AC 79 ms
102,984 KB
testcase_11 AC 73 ms
94,044 KB
testcase_12 AC 77 ms
95,500 KB
testcase_13 AC 76 ms
103,080 KB
testcase_14 AC 85 ms
100,276 KB
testcase_15 AC 83 ms
99,980 KB
testcase_16 AC 83 ms
100,184 KB
testcase_17 AC 85 ms
100,424 KB
testcase_18 AC 88 ms
100,380 KB
testcase_19 AC 87 ms
100,176 KB
testcase_20 AC 87 ms
100,320 KB
testcase_21 AC 86 ms
100,472 KB
testcase_22 AC 83 ms
100,160 KB
testcase_23 AC 83 ms
100,408 KB
testcase_24 AC 82 ms
100,088 KB
testcase_25 AC 66 ms
87,352 KB
testcase_26 AC 81 ms
100,368 KB
testcase_27 AC 77 ms
94,176 KB
testcase_28 AC 82 ms
100,312 KB
testcase_29 AC 76 ms
102,556 KB
testcase_30 AC 84 ms
100,156 KB
testcase_31 AC 84 ms
100,432 KB
testcase_32 AC 82 ms
100,020 KB
testcase_33 AC 79 ms
105,420 KB
testcase_34 AC 83 ms
100,360 KB
testcase_35 AC 101 ms
78,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

    K = 0
    for i in range(N-1):
        K = max(K, A[i] - A[i+1] + 1)

    return K

#==================================================
import sys
input=sys.stdin.readline
write=sys.stdout.write

T = int(input())
write("\n".join(map(str, [solve() for _ in range(T)])))
0