結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-30 10:58:26 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 61 ms / 5,000 ms |
| + 404µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 14,464 KB |
| 実行使用メモリ | 25,052 KB |
| 最終ジャッジ日時 | 2026-11-20 23:21:40 |
| 合計ジャッジ時間 | 2,406 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
class Problem0135: def solve(this): n = int(input()) x = set(map(int,input().split())) x = sorted(list(x)) if len(x) == 1: print(0) return res = [] for i in range(len(x) - 1): d = abs(x[i+1] - x[i]) res.append(d) print(min(res)) if __name__ == "__main__": problem = Problem0135() problem.solve()