結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー hirayuu_ychirayuu_yc
提出日時 2023-07-27 07:24:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 353 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 82,348 KB
実行使用メモリ 107,156 KB
最終ジャッジ日時 2024-04-14 20:21:44
合計ジャッジ時間 6,854 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,240 KB
testcase_01 AC 137 ms
76,504 KB
testcase_02 AC 85 ms
76,816 KB
testcase_03 AC 85 ms
76,424 KB
testcase_04 AC 83 ms
99,140 KB
testcase_05 AC 86 ms
104,420 KB
testcase_06 AC 79 ms
91,276 KB
testcase_07 AC 86 ms
104,096 KB
testcase_08 AC 79 ms
91,484 KB
testcase_09 AC 89 ms
107,140 KB
testcase_10 AC 86 ms
104,284 KB
testcase_11 AC 85 ms
95,928 KB
testcase_12 AC 88 ms
97,312 KB
testcase_13 AC 87 ms
104,388 KB
testcase_14 AC 92 ms
101,900 KB
testcase_15 AC 92 ms
101,848 KB
testcase_16 AC 92 ms
101,740 KB
testcase_17 AC 92 ms
101,812 KB
testcase_18 AC 91 ms
101,732 KB
testcase_19 AC 91 ms
102,044 KB
testcase_20 AC 93 ms
102,108 KB
testcase_21 AC 92 ms
102,080 KB
testcase_22 AC 91 ms
102,100 KB
testcase_23 AC 92 ms
101,860 KB
testcase_24 AC 91 ms
101,736 KB
testcase_25 AC 76 ms
88,564 KB
testcase_26 AC 93 ms
102,104 KB
testcase_27 AC 84 ms
95,164 KB
testcase_28 AC 91 ms
102,116 KB
testcase_29 AC 85 ms
104,344 KB
testcase_30 AC 91 ms
101,960 KB
testcase_31 AC 92 ms
101,804 KB
testcase_32 AC 91 ms
102,036 KB
testcase_33 AC 83 ms
107,156 KB
testcase_34 AC 92 ms
102,052 KB
testcase_35 AC 353 ms
77,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for i in range(T):
	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