結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 01:12:32 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 24,560 KB |
| 最終ジャッジ日時 | 2026-08-10 15:33:00 |
| 合計ジャッジ時間 | 4,561 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 21 RE * 1 |
ソースコード
n=int(input())
ls=list(map(int,input().split()))
ls.sort()
lsdis=[]
for i in range(n-1):
lsdis.append(ls[i+1]-ls[i])
print(lsdis)
lsnew=[]
for i in range(len(lsdis)):
if lsdis[i]!=0:
lsnew.append(lsdis[i])
print(lsnew)
print(min(lsnew))