結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2015-08-23 23:08:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 35,124 KB |
最終ジャッジ日時 | 2025-01-03 07:33:53 |
合計ジャッジ時間 | 26,313 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 RE * 1 TLE * 3 |
ソースコード
# -*- 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))))