結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
e-mon
|
| 提出日時 | 2015-01-26 11:07:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 195 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 20,400 KB |
| 最終ジャッジ日時 | 2025-01-03 03:12:05 |
| 合計ジャッジ時間 | 2,185 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 11 WA * 11 |
ソースコード
#!/usr/bin/env python
# -*- coding: utf-8 -*-
N = int(input())
X = sorted(list(map(int,input().split())))
sub = 10**8
for i in range(1,len(X)):
sub = min(sub,abs(X[i] - X[i-1]))
print(sub)
e-mon