結果

問題 No.21 平均の差
ユーザー eiji1000eiji1000
提出日時 2019-03-16 17:25:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 8,260 KB
最終ジャッジ日時 2023-09-14 15:21:09
合計ジャッジ時間 1,115 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,940 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 WA -
testcase_03 AC 17 ms
8,260 KB
testcase_04 AC 17 ms
8,012 KB
testcase_05 AC 16 ms
7,888 KB
testcase_06 AC 16 ms
8,240 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,944 KB
testcase_09 AC 16 ms
7,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
K = int(input())
n = [int(input()) for i in range(K)]

n_max = max(n)
n_min = min(n)
ans = math.ceil(n_max - n_min)

print(ans)
0