結果

問題 No.135 とりあえず1次元の問題
ユーザー a_tena_ten
提出日時 2016-03-24 14:02:21
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 6,776 KB
実行使用メモリ 14,800 KB
最終ジャッジ日時 2023-09-02 00:21:07
合計ジャッジ時間 2,015 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
14,800 KB
testcase_01 AC 11 ms
6,040 KB
testcase_02 AC 12 ms
6,016 KB
testcase_03 WA -
testcase_04 AC 11 ms
6,092 KB
testcase_05 AC 11 ms
6,168 KB
testcase_06 AC 11 ms
6,272 KB
testcase_07 AC 11 ms
6,056 KB
testcase_08 AC 11 ms
6,140 KB
testcase_09 AC 11 ms
6,236 KB
testcase_10 AC 12 ms
6,276 KB
testcase_11 AC 12 ms
6,096 KB
testcase_12 AC 12 ms
6,124 KB
testcase_13 AC 11 ms
6,140 KB
testcase_14 AC 12 ms
6,364 KB
testcase_15 AC 12 ms
6,076 KB
testcase_16 AC 12 ms
6,272 KB
testcase_17 AC 13 ms
6,176 KB
testcase_18 AC 11 ms
6,240 KB
testcase_19 AC 12 ms
6,132 KB
testcase_20 AC 12 ms
6,224 KB
testcase_21 AC 119 ms
14,752 KB
testcase_22 AC 176 ms
14,728 KB
evil01.txt AC 130 ms
14,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8

from math import fabs

N=input()
X=map(int,raw_input().split())

X.sort()

s=[]
for i in range(N):
	if i==len(X)-1:
		break
	else:
		s.append(int(fabs(X[i]-X[i+1])))

s.sort()

for i in s:
	if i!=0:
		print i
		break
0