結果

問題 No.21 平均の差
ユーザー pluto77
提出日時 2016-02-11 19:27:43
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 00:48:14
合計ジャッジ時間 1,047 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_21

l=int(raw_input())
n=int(raw_input())
s=[]
while True:
 try:
  a=raw_input()
  if a=='':
   break
  s.append(a)
 except(EOFError):
  break
sn=map(int,s)
sn.sort()

res=sn[-1]-sn[0]

print res
0