結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー lloyzlloyz
提出日時 2024-03-07 22:39:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 359 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 476 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 107,048 KB
最終ジャッジ日時 2024-03-07 22:39:45
合計ジャッジ時間 7,930 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
53,332 KB
testcase_01 AC 122 ms
75,812 KB
testcase_02 AC 93 ms
75,920 KB
testcase_03 AC 84 ms
75,920 KB
testcase_04 AC 84 ms
98,524 KB
testcase_05 AC 81 ms
103,956 KB
testcase_06 AC 71 ms
91,124 KB
testcase_07 AC 77 ms
103,708 KB
testcase_08 AC 77 ms
90,684 KB
testcase_09 AC 84 ms
107,048 KB
testcase_10 AC 80 ms
103,992 KB
testcase_11 AC 78 ms
95,088 KB
testcase_12 AC 94 ms
96,508 KB
testcase_13 AC 81 ms
104,196 KB
testcase_14 AC 87 ms
101,472 KB
testcase_15 AC 87 ms
101,472 KB
testcase_16 AC 84 ms
101,472 KB
testcase_17 AC 95 ms
101,472 KB
testcase_18 AC 90 ms
101,472 KB
testcase_19 AC 84 ms
101,472 KB
testcase_20 AC 84 ms
101,472 KB
testcase_21 AC 85 ms
101,472 KB
testcase_22 AC 84 ms
101,472 KB
testcase_23 AC 98 ms
101,516 KB
testcase_24 AC 84 ms
101,472 KB
testcase_25 AC 73 ms
88,148 KB
testcase_26 AC 91 ms
101,516 KB
testcase_27 AC 76 ms
94,752 KB
testcase_28 AC 85 ms
101,544 KB
testcase_29 AC 79 ms
103,780 KB
testcase_30 AC 85 ms
101,544 KB
testcase_31 AC 85 ms
101,544 KB
testcase_32 AC 88 ms
101,544 KB
testcase_33 AC 81 ms
106,892 KB
testcase_34 AC 88 ms
101,544 KB
testcase_35 AC 359 ms
76,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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