結果

問題 No.21 平均の差
ユーザー en-ren-r
提出日時 2017-06-25 09:29:30
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 196 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-07-27 13:13:01
合計ジャッジ時間 1,282 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,840 KB
testcase_01 AC 16 ms
7,920 KB
testcase_02 AC 16 ms
7,844 KB
testcase_03 AC 17 ms
7,892 KB
testcase_04 AC 16 ms
7,772 KB
testcase_05 AC 16 ms
7,928 KB
testcase_06 AC 16 ms
7,900 KB
testcase_07 AC 16 ms
7,936 KB
testcase_08 AC 17 ms
7,848 KB
testcase_09 AC 16 ms
7,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Here your code !

N = int(input())
K = int(input())
array = []

for i in range(N):
    num = int(input())
    array.append(num)
    
A = max(array)
B = min(array)

print(A-B)



0