結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2017-06-07 17:48:53 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 14,996 KB |
最終ジャッジ日時 | 2024-09-22 12:44:30 |
合計ジャッジ時間 | 2,322 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 1 |
ソースコード
n = int(raw_input()) l = map(int, raw_input().split()) l.sort() if len(l) == 1: print 0 else: mn = 10**7 for i in range(n-1): d = l[i+1] - l[i] if d > 0: mn = min(mn,d) print mn