js的,v8引擎下readline可以获取输入
var shuru = readline(); var str = shuru.substring(1,shuru.length-1); var arr = str.split(','); var max = Math.max(...arr); var min = Math.min(...arr); console.log(max) console.log(min)
js的,v8引擎下readline可以获取输入
var shuru = readline(); var str = shuru.substring(1,shuru.length-1); var arr = str.split(','); var max = Math.max(...arr); var min = Math.min(...arr); console.log(max) console.log(min)