結果

問題 No.716 距離
ユーザー simamumusimamumu
提出日時 2018-07-27 22:22:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 9,540 KB
最終ジャッジ日時 2023-09-18 09:12:58
合計ジャッジ時間 3,036 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,520 KB
testcase_01 AC 29 ms
9,332 KB
testcase_02 AC 29 ms
9,336 KB
testcase_03 AC 29 ms
9,388 KB
testcase_04 AC 29 ms
9,496 KB
testcase_05 AC 28 ms
9,540 KB
testcase_06 AC 28 ms
9,412 KB
testcase_07 AC 29 ms
9,220 KB
testcase_08 AC 28 ms
9,332 KB
testcase_09 AC 28 ms
9,224 KB
testcase_10 AC 31 ms
9,252 KB
testcase_11 AC 29 ms
9,360 KB
testcase_12 AC 29 ms
9,424 KB
testcase_13 AC 29 ms
9,452 KB
testcase_14 AC 28 ms
9,280 KB
testcase_15 AC 28 ms
9,316 KB
testcase_16 AC 28 ms
9,468 KB
testcase_17 AC 28 ms
9,304 KB
testcase_18 AC 27 ms
9,312 KB
testcase_19 AC 28 ms
9,428 KB
testcase_20 AC 28 ms
9,240 KB
testcase_21 AC 28 ms
9,384 KB
testcase_22 AC 28 ms
9,256 KB
testcase_23 AC 29 ms
9,332 KB
testcase_24 AC 29 ms
9,512 KB
testcase_25 AC 28 ms
9,400 KB
testcase_26 AC 28 ms
9,412 KB
testcase_27 AC 29 ms
9,272 KB
testcase_28 AC 29 ms
9,280 KB
testcase_29 AC 29 ms
9,376 KB
testcase_30 AC 28 ms
9,432 KB
testcase_31 AC 30 ms
9,316 KB
testcase_32 AC 29 ms
9,392 KB
testcase_33 AC 29 ms
9,228 KB
testcase_34 AC 29 ms
9,280 KB
testcase_35 AC 28 ms
9,316 KB
testcase_36 AC 28 ms
9,256 KB
testcase_37 AC 28 ms
9,356 KB
testcase_38 AC 28 ms
9,356 KB
testcase_39 AC 30 ms
9,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys,heapq,bisect,math,itertools,string
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

min_val = INF

N = int(input())
aa = list(map(int,input().split()))

for i in range(1,N):
	min_val = min(min_val,aa[i]-aa[i-1])

print(min_val)
print(aa[-1]-aa[0])
0