結果

問題 No.21 平均の差
ユーザー 初見わこつです初見わこつです
提出日時 2015-09-15 18:01:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 1,187 ms
コンパイル使用メモリ 10,384 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-09-26 12:05:06
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,712 KB
testcase_01 AC 15 ms
7,724 KB
testcase_02 AC 15 ms
7,908 KB
testcase_03 AC 15 ms
7,800 KB
testcase_04 AC 15 ms
7,796 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 AC 15 ms
7,740 KB
testcase_07 AC 15 ms
7,708 KB
testcase_08 AC 15 ms
7,760 KB
testcase_09 AC 16 ms
7,888 KB
権限があれば一括ダウンロードができます

ソースコード

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