最大の差 (paizaランク C 相当)
最大最小を記録し、差を取ります。
const fs = require("fs");
const input = fs.readFileSync("/dev/stdin", "utf-8").trim();
const lines = input.split("\n");
let max = 0;
let min = 100;
lines.slice(0).forEach(m => {
max = Math.max(max, Number(m));
min = Math.min(min, Number(m));
});
console.log(max - min);