結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2020-11-02 21:04:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 20,968 KB |
| 最終ジャッジ日時 | 2024-07-22 08:02:35 |
| 合計ジャッジ時間 | 2,209 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 1 WA * 21 |
ソースコード
n=int(input())
x=list(map(int,input().split()))
ans=10**9
for i in range(n-1):
if x[i]!=x[i+1]:
ans=min(ans,x[i+1]-x[i])
if ans==10**9:
print(0)
else:
print(ans)
nasubi24