結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
ymgckyo
|
| 提出日時 | 2017-11-04 12:47:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 202 bytes |
| コンパイル時間 | 770 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,708 KB |
| 最終ジャッジ日時 | 2024-11-23 06:56:22 |
| 合計ジャッジ時間 | 2,698 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 15 |
ソースコード
n = int(input())
ls = list(map(int, input().split()))
shortest = max(ls)
for i in range(1, len(ls)):
tmp = abs(ls[i - 1] - ls[i])
if 0 < tmp < shortest:
shortest = tmp
print(shortest)
ymgckyo