题解 | 明明的随机数
const rl = require("readline").createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;
void async function () {
//先读取数字个数
let n = parseInt(await readline())
// 创建Set用于去重
let newA = new Set();
// 遍历并将元素填充
for(let i=0; i<n; i++){
let a = parseInt(await readline(i))
newA.add(a)
}
//转为数组排序
let newArray = Array.from(newA).sort((a,b)=> {return a-b} )
//遍历数组 输出
for(let num of newArray){
console.log(num);
}
}()

