题解 | 取近似值
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here let num = await readline() const numArr = num.split(".") let res = numArr[0] if(numArr[1].charAt(0) >= 5) { res =Number(numArr[0]) +1 } console.log(res) }()