結果

問題 No.2648 [Cherry 6th Tune D] 一次元の馬
ユーザー anonymouslyanonymously
提出日時 2024-02-23 21:35:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 588 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 32,124 KB
最終ジャッジ日時 2024-02-23 21:35:26
合計ジャッジ時間 7,898 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,984 KB
testcase_01 AC 215 ms
11,008 KB
testcase_02 AC 137 ms
10,240 KB
testcase_03 AC 137 ms
10,368 KB
testcase_04 AC 147 ms
23,288 KB
testcase_05 AC 151 ms
30,300 KB
testcase_06 AC 146 ms
18,844 KB
testcase_07 AC 155 ms
28,756 KB
testcase_08 AC 144 ms
17,788 KB
testcase_09 AC 151 ms
31,284 KB
testcase_10 AC 151 ms
30,436 KB
testcase_11 AC 147 ms
22,100 KB
testcase_12 AC 149 ms
27,144 KB
testcase_13 AC 150 ms
28,620 KB
testcase_14 AC 155 ms
31,884 KB
testcase_15 AC 162 ms
31,884 KB
testcase_16 AC 155 ms
31,884 KB
testcase_17 AC 156 ms
31,884 KB
testcase_18 AC 155 ms
31,884 KB
testcase_19 AC 154 ms
31,884 KB
testcase_20 AC 155 ms
31,884 KB
testcase_21 AC 154 ms
31,884 KB
testcase_22 AC 155 ms
31,884 KB
testcase_23 AC 164 ms
31,884 KB
testcase_24 AC 154 ms
31,884 KB
testcase_25 AC 152 ms
17,124 KB
testcase_26 AC 153 ms
31,884 KB
testcase_27 AC 147 ms
25,864 KB
testcase_28 AC 145 ms
31,876 KB
testcase_29 AC 141 ms
28,780 KB
testcase_30 AC 157 ms
31,876 KB
testcase_31 AC 154 ms
31,876 KB
testcase_32 AC 156 ms
31,876 KB
testcase_33 AC 153 ms
32,124 KB
testcase_34 AC 156 ms
31,876 KB
testcase_35 AC 588 ms
13,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(n,A):
    assert(len(A)==n)
    ans=0
    for i in range(1,n):
        ans=max(ans,A[i-1]-A[i]+1)
    return ans

print(*[solve(int(input()),[int(a) for a in input().split()]) for i in range(int(input()))],sep='\n')
0