結果

問題 No.21 平均の差
ユーザー otsunekootsuneko
提出日時 2021-05-06 14:53:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 102 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-10-12 07:27:41
合計ジャッジ時間 2,393 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,148 KB
testcase_01 AC 75 ms
71,568 KB
testcase_02 AC 80 ms
71,292 KB
testcase_03 AC 76 ms
71,372 KB
testcase_04 AC 75 ms
71,136 KB
testcase_05 AC 71 ms
71,500 KB
testcase_06 AC 72 ms
71,272 KB
testcase_07 AC 72 ms
71,288 KB
testcase_08 AC 72 ms
71,572 KB
testcase_09 AC 72 ms
71,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
K = int(input())
n = [int(input()) for _ in range(N)]
n.sort()
print(n[N-1]-n[0])
0