結果

問題 No.135 とりあえず1次元の問題
ユーザー n_knuun_knuu
提出日時 2015-05-13 16:53:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 1,057 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 24,392 KB
最終ジャッジ日時 2023-09-01 03:35:33
合計ジャッジ時間 2,076 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
24,392 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 15 ms
7,740 KB
testcase_03 AC 15 ms
7,784 KB
testcase_04 AC 15 ms
7,928 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 15 ms
7,896 KB
testcase_07 AC 15 ms
7,744 KB
testcase_08 AC 15 ms
7,848 KB
testcase_09 AC 15 ms
7,836 KB
testcase_10 AC 15 ms
7,868 KB
testcase_11 AC 15 ms
7,840 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 15 ms
7,796 KB
testcase_20 AC 15 ms
7,836 KB
testcase_21 AC 45 ms
16,004 KB
testcase_22 AC 76 ms
24,348 KB
evil01.txt WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = list(set(map(int, input().split())))
print(0 if len(X) == 1 else min([abs(X[i]-X[i+1]) for i in range(len(X)-1)]))
0