//获取第一行输入流并解析为int类型 const num = readline(); const N = parseInt(num); //新建arr1用做容器存储 let arr1 = []; for (let i = 0; i < N; i++) { var val = readline();  ...