結果

問題 No.21 平均の差
ユーザー MamonboMamonbo
提出日時 2015-10-04 23:27:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-09-27 02:02:45
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,884 KB
testcase_01 AC 15 ms
7,828 KB
testcase_02 AC 14 ms
7,720 KB
testcase_03 AC 15 ms
7,772 KB
testcase_04 AC 15 ms
7,904 KB
testcase_05 AC 14 ms
7,720 KB
testcase_06 AC 15 ms
7,764 KB
testcase_07 AC 15 ms
7,792 KB
testcase_08 AC 15 ms
7,796 KB
testcase_09 AC 15 ms
7,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding=UTF-8

#やっぱり1個の平均が極端な値が出せる
N=int(input())
K=int(input())
n=[]
for idx in range(0,N,1):
    n.append(int(input()))

#K>=3が保証されている
#{max}{min}{その他} 3<=Nね
ans=max(n)-min(n)
print(ans)    
0