結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
80
|
| 提出日時 | 2020-03-08 22:52:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 25,460 KB |
| 最終ジャッジ日時 | 2024-11-07 20:15:48 |
| 合計ジャッジ時間 | 2,674 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 WA * 21 |
ソースコード
N = int(input())
X = list(set(map(int,input().split())))
ans = 1000000
if len(X) <= 1:
print(0)
else:
for i in range(len(X)-1):
res = X[i + 1] - X[i]
if ans > res:
ans = res
print(ans)
80