문제 번호 : 4889번 문제 바로가기 ☞ https://www.acmicpc.net/problem/4889 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(filePath).toString().trim().split('\n'); for(let i in input){ let temp = input[i].split(''); let arr = []; let cnt = 0; if(temp[0] === '-') break; for(let j in temp){ if(temp[j] === '{'){ arr.push(temp[j])..
[BaekJoon] 4889 번 안정적인 문자열 문제 - (nodejs)
문제 번호 : 4889번 문제 바로가기 ☞ https://www.acmicpc.net/problem/4889 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(filePath).toString().trim().split('\n'); for(let i in input){ let temp = input[i].split(''); let arr = []; let cnt = 0; if(temp[0] === '-') break; for(let j in temp){ if(temp[j] === '{'){ arr.push(temp[j])..
2022.01.07