結果

問題 No.21 平均の差
ユーザー 初見わこつです初見わこつです
提出日時 2015-09-15 18:01:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-19 06:37:04
合計ジャッジ時間 854 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3

# This problelm is http://yukicoder.me/problems/67

first_line      = input()
second_line     = input()
numbers_length  = int(first_line)
groups_length   = int(second_line)

lines   = []
numbers = []
for i in range(numbers_length):
    lines.append(input())
    numbers.append(int(lines[i]))

print(max(numbers) - min(numbers))
0