結果

問題 No.21 平均の差
ユーザー gahougahou
提出日時 2016-11-16 17:56:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 6,700 KB
実行使用メモリ 6,024 KB
最終ジャッジ日時 2023-08-17 07:30:41
合計ジャッジ時間 1,086 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 10 ms
5,984 KB
testcase_02 AC 10 ms
5,940 KB
testcase_03 AC 10 ms
5,952 KB
testcase_04 AC 11 ms
5,892 KB
testcase_05 AC 11 ms
5,880 KB
testcase_06 AC 11 ms
5,852 KB
testcase_07 AC 11 ms
6,024 KB
testcase_08 AC 11 ms
5,936 KB
testcase_09 AC 11 ms
5,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
K=int(raw_input())
minN=10**9
maxN=0
for _ in xrange(N):
  a=int(raw_input())
  minN=min(minN,a)
  maxN=max(maxN,a)
print maxN-minN
0