結果

問題 No.21 平均の差
ユーザー ktshunktshun
提出日時 2015-06-01 15:47:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 154 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,160 KB
最終ジャッジ日時 2023-09-20 18:19:18
合計ジャッジ時間 968 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,076 KB
testcase_01 AC 12 ms
5,944 KB
testcase_02 AC 13 ms
6,112 KB
testcase_03 AC 12 ms
5,944 KB
testcase_04 AC 11 ms
6,080 KB
testcase_05 AC 12 ms
6,160 KB
testcase_06 AC 12 ms
6,056 KB
testcase_07 AC 11 ms
6,060 KB
testcase_08 AC 12 ms
5,976 KB
testcase_09 AC 12 ms
6,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
if __name__ == "__main__":
	n = input()
	k = input()
	num = []
	for i in xrange(n):
		num.append(input())
	print max(num)- min(num)
0