5397

CS/Data Structure & algorithm

[Algorithm] 백준 5397 - 키로거 (Node / C#)

문제https://www.acmicpc.net/problem/5397 풀이1. Node.js(fs)const fs = require('fs');const input = fs.readFileSync('/dev/stdin').toString().trim().split('\n');const T = parseInt(input[0]);function processKeyLogger(str) { const leftStack = []; const rightStack = []; for (let char of str) { if (char === ' 0) { rightStack.push(leftStack.pop()); } } else i..

개발자참치
'5397' 태그의 글 목록