let choice = buf_new[0]; let arr = buf_new.splice(1,buf.length + 1).map((x)=>{ return x.split(' ').map((x)=>{ return parseFloat(x); }) }); console.log(arr); let s = 0, cnt = 0; for (let i = 0; i <= 10; i ++){ for (let j = 10; j >= 0; j --)...