結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2017-12-01 14:34:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 31,472 KB |
最終ジャッジ日時 | 2024-11-27 21:28:55 |
合計ジャッジ時間 | 32,199 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 1 TLE * 4 |
ソースコード
n = int(input()) x = list(map(int, input().split())) min = -1 for i in reversed(range(n)): for j in range(i): d = abs(x[i] - x[j]) if d > 0 and (min == -1 or d < min): min = d print(min)