Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	max := 0.0
	min := 1000000.0
	for sc.Scan() {
		n, _ := strconv.ParseFloat(sc.Text(), 64)
		if max < n {
			max = n
		}
		if min > n {
			min = n
		}
	}
	fmt.Println(max - min)
}

Python: def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

N = list(get_input())
m = []
for l in range(len(N)):
    m.append(float(N[l]))

m.sort()
print(m[len(m)-1]-m[0])

Python: #coding:utf-8

l = []
while True:
    try:
        i = float(input())
        l.append(i)
    except:
        break
print(max(l) - min(l))

Python: a=[]
while True:
    try:
        a.append(float(input()))
    except: break
print(max(a)-min(a))

Python: s = l = float(input())
while 1:
    try:
        t = float(input())
        s = min(s, t)
        l = max(l, t)
    except:break
print(l - s)

Python: A=[]
for i in range(0,5):
  a=float(input())
  A.append(a)
  
print(max(A)-min(A))

Python: x = []
while 1:
    try:
        h = float(input())
        x.append(h)
    except EOFError:
        break
print(max(x)-min(x))

Python: from decimal import Decimal, ROUND_HALF_UP
n=[]
while 1:
    try:
        n.append(float(input()))
    except:break
print(Decimal(str(max(n)-min(n))).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP))

Python: a, b = float(input()), float(input()) 
Max, Min = max(a, b), min(a, b) 
while True :
    try :
        c = float(input())
        if Min < c < Max : pass
        elif Max < c : Max = c
        elif c < Min : Min = c
    except : break
print(Max - Min)

Python: a=[]
while True:
    try:
        a.append(float(input()))
    except:
        break
print(max(a)-min(a))

Python: import sys
a=list(map(float,sys.stdin.readline()))
print(max(a)-min(a))

Python: # AOJ 0046 Differential
# Python3 2018.6.14 bal4u

data = []
while True:
	try:
		a = float(input())
	except EOFError:
		break
		
	data.append(a)
print(max(data)-min(data))

Python: try:
  while True:
    lst=[]
    a=list(input())
    lst.append(a)
  lst.sort()
  print(max(lst)-min(lst))
except EOFError:
  pass

Python: inputs = [flaot(i) for i in input()]

print(max(inputs) - min(inputs))

Python: i = []
while True:
    try:
        i.append(float(input()))
    except EOFError: break
i.sort()
print(i[-1]-i[0])

Python: import sys
a = tuple(map(float, sys.stdin.readlines()))
print(max(a) - min(a))

Python: import sys
readlines = sys.stdin.readlines
write = sys.stdout.write
def solve():
    D = [float(line) for line in readlines()]
    write("%.16f\n" % (max(D) - min(D)))
solve()

Python: def main():
    m_MAX = 0.0
    m_MIN = 0.0
    count = 0
    while True:
        try:
            m = float(input())
            if count == 0:
                m_MAX = m_MIN = m
            if m > m_MAX :
                m_MAX = m
            elif m < m_MIN :
                m_MIN = m
            count += 1
        except EOFError:
            break
    print(abs(m_MAX - m_MIN))

if __name__ == '__main__':
    main()

Python: import sys

ms = []
for v in sys.stdin:
    ms.append(float(v))
print(max(ms)-min(ms))

Python: def get_input():
    while True:
        try:
            yield input()
        except EOFError:
            break

inputs = [float(i) for i in get_input()]

print(max(inputs) - min(inputs))

Python: ma = 0
mi = 1000000

while True:
    try:
        h = float(input())
        if ma < h:
            ma = h

        if mi > h:
            mi = h

    except EOFError:
        print(ma - mi)
        break

Python: # -*- coding: utf-8 -*-

import sys
import os
import math
import itertools

heights = []

for s in sys.stdin:
    heights.append(float(s))

print(max(heights) - min(heights))

Python: import sys
list = [float(i) for i in sys.stdin]
print(max(list) - min(list))

Python: A=[]
while not a == false:
  a=float(input())
  A.append(a)

print(max(A)-min(A))

Python: if __name__ == '__main__':

	ans = []
	while True:
		try:
			ans.append(float(input()))

		except EOFError:
			break

	print(max(ans) - min(ans))

Python: f = []
while True:
    try:
        f.append(float(input().strip()))

    except EOFError:
        break
print(max(f) - min(f))

Python: # -*- coding: utf-8 -*-
l = []

while True:
    try:
        l.append(float(input()))
    except:
        break

_max = max(l)
_min = min(l)

print(_max - _min)

Python: A=[]
while True:
  try:
    A.append(float(input()))
  except EOFError:
    break
sa=max(A)-min(A)
print(f"{sa:.1f}")

Python: import sys
f = sys.stdin

mountains = [float(line) for line in f]
print(max(mountains) - min(mountains))

Python: list = []
while(True):
    try:
        n = input()
        list.append(n)
    except Exception:
        break
list.sort()
print(list[-1] - list[0])

Python: t = []
while(1):
    try:
        t.append(float(input()))
    except:
        break
t = sorted(t)
print(t[len(t) - 1] - t[0])

Python: import sys
import math
maxv = 0
minv = math.inf
for i in map(float, sys.stdin):
    maxv = max([i, maxv])
    minv = min([i, minv])
print(maxv-minv)

Python: mt = [] #空リスト作成
try: #ここから下でエラーを検出する
    while True: #無限ループ
        mt.append(float(input())) #float型にして標準入力
except EOFError: #EOFErrorを検出する
    mt.sort() #小さい順並べる
    print(mt[-1] - mt[0]) #1番大きい数から一番小さい数の差を求める

Python: A = []
while True:
    try:
        A.append(float(input()))
    except EOFError:
        break

print(max(A) - min(A))

Python: a = []
while True:
    try:
        a.append(float(input()))
    except:
        break
print(max(a)-min(a))

Python: a = []
while True:
  try:
    n = float(input())
    a.append(n)
  except:
    break

a.sort()
print(max(a) - min(a))

Python: # Aizu Problem 0046: Differential
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


heights = [float(line) for line in sys.stdin]
diff = max(heights) - min(heights)
print(diff)

Python: try:
    ls = []
    while True:
        ls.append(float(input()))
except:
    print(max(ls) - min(ls))

Python: a=[]
while True:
    try:
        a.append(float(input()))
    except:
        break
print(max(a)-min(a))

Python: import sys
high = 0
low = 10**6
for line in sys.stdin:
    if line == "\n":
        break
    height = float(line)
    if height > high:
        high = height
    if height < low:
        low = height
print(high-low)

Python: import sys
arr = []
for f in sys.stdin:
    arr.append(float(f))
print(max(arr)-min(arr))

Python: d = []
while True:
    try:
        d.append(float(input()))
    except:
        break
print(max(d) - min(d))

Python: max = -10**20
min = 10**20
while(1):
    try:
        a = float(input())
        if a > max:
            max = a
        if a < min:
            min = a
    except EOFError:
        print("{:.1f}".format(max-min))
        break

Python: a = []
while True:
  try:
    n = float(input())
    a.append(n)
  except:
    break

a.sort()
print(a[len(a) - 1] - a[0])

Python: def main():
    m_MAX = 0.0
    m_MIN = 9999999999999.0
    while True:
        try:
            m = float(input())
            if m > m_MAX :
                m_MAX = m
            elif m < m_MIN :
                m_MIN = m
        except EOFError:
            break
    print(m_MAX - m_MIN)
if __name__ == '__main__':
    main()

Python: a=[]
while 1:
    try:
        a.append(float(input()))
    except: break
print(max(a)-min(a))

Python: h = []
while True:
    try:
        i = float(raw_input())
    except EOFError as e:
        break
    h.append(i)

print("%f" % (max(h)-min(h), ))

Python: mountain = []
while True:
    try: n = float(input())
    except:
        print(max(mountain)-min(mountain))
        break
    mountain.append(n)