結果
| 問題 | No.716 距離 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-05 09:18:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 317 ms / 2,000 ms |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 50,048 KB |
| 最終ジャッジ日時 | 2024-09-19 18:19:23 |
| 合計ジャッジ時間 | 7,078 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
d = []
for i in range(n):
b = a[:]
c = b.pop(i)
for j in b:
d.append(abs(c-j))
print(min(d))
print(max(d))