結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
16,096 KB
testcase_01 AC 11 ms
6,220 KB
testcase_02 AC 12 ms
6,104 KB
testcase_03 WA -
testcase_04 AC 12 ms
6,228 KB
testcase_05 AC 11 ms
6,072 KB
testcase_06 AC 11 ms
6,172 KB
testcase_07 AC 11 ms
6,120 KB
testcase_08 AC 12 ms
6,172 KB
testcase_09 AC 12 ms
6,152 KB
testcase_10 AC 12 ms
6,176 KB
testcase_11 AC 12 ms
6,232 KB
testcase_12 AC 12 ms
6,136 KB
testcase_13 AC 12 ms
6,120 KB
testcase_14 AC 12 ms
6,264 KB
testcase_15 AC 12 ms
6,248 KB
testcase_16 AC 12 ms
6,268 KB
testcase_17 AC 12 ms
6,204 KB
testcase_18 AC 12 ms
6,072 KB
testcase_19 AC 12 ms
6,120 KB
testcase_20 AC 12 ms
6,244 KB
testcase_21 AC 61 ms
14,752 KB
testcase_22 AC 128 ms
16,116 KB
evil01.txt AC 106 ms
16,012 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,len(nums)-1):
		mini = min(nums[i+1]-nums[i], mini)
	print mini
0