結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー tassei903tassei903
提出日時 2024-02-23 21:24:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 769 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 107,180 KB
最終ジャッジ日時 2024-02-23 21:24:58
合計ジャッジ時間 4,918 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 88 ms
75,884 KB
testcase_02 AC 77 ms
75,792 KB
testcase_03 AC 75 ms
75,792 KB
testcase_04 AC 82 ms
98,756 KB
testcase_05 AC 85 ms
104,088 KB
testcase_06 AC 77 ms
91,252 KB
testcase_07 AC 85 ms
103,712 KB
testcase_08 AC 78 ms
90,860 KB
testcase_09 AC 86 ms
107,180 KB
testcase_10 AC 108 ms
104,124 KB
testcase_11 AC 82 ms
95,944 KB
testcase_12 AC 85 ms
96,564 KB
testcase_13 AC 85 ms
104,200 KB
testcase_14 AC 91 ms
101,604 KB
testcase_15 AC 90 ms
101,604 KB
testcase_16 AC 90 ms
101,604 KB
testcase_17 AC 90 ms
101,604 KB
testcase_18 AC 90 ms
101,604 KB
testcase_19 AC 90 ms
101,604 KB
testcase_20 AC 91 ms
101,604 KB
testcase_21 AC 91 ms
101,604 KB
testcase_22 AC 94 ms
101,604 KB
testcase_23 AC 91 ms
101,604 KB
testcase_24 AC 91 ms
101,604 KB
testcase_25 AC 76 ms
88,148 KB
testcase_26 AC 91 ms
101,604 KB
testcase_27 AC 83 ms
95,116 KB
testcase_28 AC 93 ms
101,676 KB
testcase_29 AC 86 ms
103,912 KB
testcase_30 AC 91 ms
101,676 KB
testcase_31 AC 91 ms
101,676 KB
testcase_32 AC 94 ms
101,676 KB
testcase_33 AC 94 ms
101,264 KB
testcase_34 AC 90 ms
101,676 KB
testcase_35 AC 127 ms
76,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes")
no = lambda :print("no");No = lambda :print("No")
#######################################################################
for _ in range(ni()):
    n = ni()
    a = na()
    ans = 0
    for i in range(n-1):
        ans = max(ans,a[i]-a[i+1]+1)
    print(ans)
0