結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー ニックネームニックネーム
提出日時 2024-02-23 21:27:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 916 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 32,240 KB
最終ジャッジ日時 2024-02-23 21:27:17
合計ジャッジ時間 9,516 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 308 ms
9,984 KB
testcase_02 AC 166 ms
10,368 KB
testcase_03 AC 166 ms
10,368 KB
testcase_04 AC 176 ms
23,404 KB
testcase_05 AC 180 ms
30,416 KB
testcase_06 AC 174 ms
20,920 KB
testcase_07 AC 177 ms
28,872 KB
testcase_08 AC 172 ms
19,728 KB
testcase_09 AC 184 ms
31,400 KB
testcase_10 AC 186 ms
30,552 KB
testcase_11 AC 174 ms
22,616 KB
testcase_12 AC 181 ms
28,024 KB
testcase_13 AC 179 ms
28,736 KB
testcase_14 AC 184 ms
32,000 KB
testcase_15 AC 184 ms
32,000 KB
testcase_16 AC 186 ms
32,000 KB
testcase_17 AC 184 ms
32,000 KB
testcase_18 AC 193 ms
32,000 KB
testcase_19 AC 187 ms
32,000 KB
testcase_20 AC 188 ms
32,000 KB
testcase_21 AC 185 ms
32,000 KB
testcase_22 AC 187 ms
32,000 KB
testcase_23 AC 186 ms
32,000 KB
testcase_24 AC 188 ms
32,000 KB
testcase_25 AC 169 ms
17,240 KB
testcase_26 AC 185 ms
32,000 KB
testcase_27 AC 179 ms
29,104 KB
testcase_28 AC 182 ms
31,984 KB
testcase_29 AC 172 ms
28,896 KB
testcase_30 AC 184 ms
31,984 KB
testcase_31 AC 178 ms
31,984 KB
testcase_32 AC 189 ms
31,984 KB
testcase_33 AC 182 ms
32,240 KB
testcase_34 AC 182 ms
31,984 KB
testcase_35 AC 916 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    n = int(input())
    a = list(map(int,input().split()))
    x = 0
    for u,v in zip(a[:-1],a[1:]): x = max(x,u-v+1)
    print(x)
0