結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
szkake
|
| 提出日時 | 2015-08-23 23:08:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 35,192 KB |
| 最終ジャッジ日時 | 2026-06-06 13:03:54 |
| 合計ジャッジ時間 | 13,450 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 21 |
ソースコード
# -*- coding:utf-8 -*-
from itertools import combinations
calc_distance = lambda xs: abs(xs[0] - xs[1])
if __name__ == '__main__':
n = int(input())
xn = set(map(int, input().split()))
if len(xn) < 0:
print(0)
else:
print(min(map(calc_distance, combinations(xn, 2))))
szkake