結果

問題 No.21 平均の差
ユーザー lam6er
提出日時 2025-03-20 21:08:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 81,932 KB
実行使用メモリ 53,140 KB
最終ジャッジ日時 2025-03-20 21:08:25
合計ジャッジ時間 1,118 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
k = int(input())
nums = [int(input()) for _ in range(n)]
max_num = max(nums)
min_num = min(nums)
print(max_num - min_num)
0