結果
| 問題 |
No.716 距離
|
| コンテスト | |
| ユーザー |
Liny52551272
|
| 提出日時 | 2019-11-12 21:30:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 392 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-19 11:11:14 |
| 合計ジャッジ時間 | 18,443 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 20 |
ソースコード
import itertools
N = int(input().strip())
lst = input().strip().split(' ')
mmin = 0
mmax = 0
for i in itertools.combinations(lst, r=2):
a, b = int(i[0]), int(i[1])
a, b = min(a, b), max(a, b)
#print('a:{} b:{}'.format(a, b))
if (mmin == 0) or (mmin > b - a):
mmin = b - a
if (mmax == 0) or (mmax < b - a):
mmax = b - a
print(mmin)
print(mmax)
Liny52551272