結果

問題 No.135 とりあえず1次元の問題
ユーザー lloyzlloyz
提出日時 2023-09-06 00:31:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 101,036 KB
最終ジャッジ日時 2023-09-06 00:31:10
合計ジャッジ時間 3,159 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
101,036 KB
testcase_01 AC 67 ms
71,188 KB
testcase_02 AC 68 ms
71,292 KB
testcase_03 WA -
testcase_04 AC 69 ms
71,380 KB
testcase_05 AC 68 ms
71,176 KB
testcase_06 AC 67 ms
71,360 KB
testcase_07 AC 68 ms
71,436 KB
testcase_08 AC 74 ms
71,332 KB
testcase_09 AC 68 ms
71,304 KB
testcase_10 AC 67 ms
71,308 KB
testcase_11 AC 67 ms
71,332 KB
testcase_12 AC 65 ms
71,384 KB
testcase_13 AC 66 ms
71,464 KB
testcase_14 AC 66 ms
71,584 KB
testcase_15 AC 67 ms
71,176 KB
testcase_16 AC 65 ms
71,436 KB
testcase_17 AC 67 ms
71,304 KB
testcase_18 AC 67 ms
71,628 KB
testcase_19 AC 68 ms
71,388 KB
testcase_20 AC 70 ms
71,268 KB
testcase_21 AC 82 ms
84,164 KB
testcase_22 AC 130 ms
100,796 KB
evil01.txt AC 105 ms
100,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
X = list(set(map(int, input().split())))

n = len(X)
if n == 1:
    print(0)
X.sort()
ans = 10**18
for i in range(n - 1):
    ans = min(ans, X[i + 1] - X[i])
print(ans)
0