結果

問題 No.21 平均の差
ユーザー zyxwzyxw
提出日時 2020-10-06 19:27:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 141 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 29,636 KB
最終ジャッジ日時 2023-09-27 08:51:08
合計ジャッジ時間 2,457 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
29,556 KB
testcase_01 AC 133 ms
29,588 KB
testcase_02 AC 130 ms
29,592 KB
testcase_03 AC 132 ms
29,456 KB
testcase_04 AC 130 ms
29,520 KB
testcase_05 AC 131 ms
29,636 KB
testcase_06 AC 132 ms
29,456 KB
testcase_07 AC 130 ms
29,560 KB
testcase_08 AC 132 ms
29,544 KB
testcase_09 AC 132 ms
29,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
k=int(input())
data=[int(input()) for i in range(n)]
import numpy as np
Data=np.array(data)
x=min(Data)
y=max(Data)
print(y-x)
0