結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 01:12:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,852 KB |
| 最終ジャッジ日時 | 2024-07-07 03:16:23 |
| 合計ジャッジ時間 | 1,850 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))