結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-23 22:09:38 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 241 bytes |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 7,168 KB |
| 実行使用メモリ | 20,868 KB |
| 最終ジャッジ日時 | 2025-01-03 14:29:00 |
| 合計ジャッジ時間 | 2,592 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 15 RE * 1 |
ソースコード
#coding:utf-8 from math import fabs N=input() X=map(int,raw_input().split()) sorted(X) n=set() for i in range(N-1): n.add(fabs(X[i]-X[i+1])) n.add(fabs(X[-1]-X[-2])) if 0 in n: n.remove(0) print int(min(n)) else: print int(min(n))
a_ten