結果

問題 No.135 とりあえず1次元の問題
ユーザー ktshunktshun
提出日時 2015-05-29 13:19:05
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 243 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 16,200 KB
最終ジャッジ日時 2023-09-01 03:37:14
合計ジャッジ時間 2,363 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
16,064 KB
testcase_01 AC 12 ms
6,028 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 11 ms
6,192 KB
testcase_13 AC 12 ms
6,116 KB
testcase_14 AC 12 ms
6,200 KB
testcase_15 AC 12 ms
6,056 KB
testcase_16 RE -
testcase_17 AC 12 ms
6,372 KB
testcase_18 AC 12 ms
6,280 KB
testcase_19 AC 13 ms
6,152 KB
testcase_20 AC 11 ms
6,180 KB
testcase_21 RE -
testcase_22 RE -
evil01.txt AC 109 ms
16,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import math

if __name__ == "__main__":
	n = input()
	nums = map(int,raw_input().split())
	nums = list(set(nums))
	nums.sort()
	mini = 10 **6 + 1
	for i in xrange(0,n-1):
		mini = min(nums[i+1]-nums[i], mini)
	print mini
0