結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
|
提出日時 | 2021-11-29 12:35:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,264 KB |
最終ジャッジ日時 | 2024-07-02 10:25:04 |
合計ジャッジ時間 | 1,995 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 21 RE * 1 |
ソースコード
n=int(input()) l=list(map(int,input().split())) nl=sorted(list(set(l))) if len(nl)==1: print(0) else: al=[] for i in range(len(l)-1): al.append(l[i+1]-l[i]) print(min(al))