문제 번호 : 1406번 문제 바로가기 ☞ https://www.acmicpc.net/problem/1406 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(filePath).toString().trim().split('\n'); let front = input[0].split(''); let back = []; const num = Number(input[1]); let textlength = front.length; let arr = []; for(let i=0; i 0){ front.push(back.pop());..
[BaekJoon] 1406 번 에디터 문제 - (nodejs)
문제 번호 : 1406번 문제 바로가기 ☞ https://www.acmicpc.net/problem/1406 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(filePath).toString().trim().split('\n'); let front = input[0].split(''); let back = []; const num = Number(input[1]); let textlength = front.length; let arr = []; for(let i=0; i 0){ front.push(back.pop());..
2022.01.05