The code is put at http://cympfh.github.io/template/javascript.js.txt
整数の入力をラクにする目的が主
template.js
andtest.js
andinput
cat template.js test.js > /tmp/test.js
node /tmp/test.js < input
xsel -bi < /tmp/test.js # for rapid submit
_
this is the last value, output of READ API
readline() :: string
: 改行を含まないreadints() :: [number]
: 空白区切りの整数からなる1行を読む.分割代入したいときに _
を使うreadint() :: number
: 整数1つからなる1行を読むlog
: console.log
warn
: console.warn
int :: string -> int
float :: string -> float
words :: string -> [string]
: 空白で区切るints :: string -> [number]
: 空白で区切って整数に変換add :: (number, number) -> number
max :: (number, number) -> number
min :: (number, number) -> number
sort :: [number] -> [number]
: 昇順iota
: srfi-1