結果
| 問題 |
No.21 平均の差
|
| ユーザー |
|
| 提出日時 | 2022-05-30 11:54:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-21 00:48:51 |
| 合計ジャッジ時間 | 985 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
# -*- coding: utf-8 -*-
import math
n = int(input())
k = int(input())
n_box = []
for _ in range(n):
n_box.append(int(input()))
nbox_sort = sorted(n_box)
nbox_min = (nbox_sort[0])
nbox_max = nbox_sort[-1]
print(math.ceil(nbox_max - nbox_min))