結果
| 問題 |
No.716 距離
|
| コンテスト | |
| ユーザー |
Ldio03
|
| 提出日時 | 2020-03-20 12:05:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 152 bytes |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-14 04:05:00 |
| 合計ジャッジ時間 | 2,717 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 39 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
M=a[-1]-a[0]
m=10**10
for i in range(n-1):
if a[i+1]-a[i]<m:
m=a[i+1]-a[i]
print(M)
print(m)
Ldio03