5966

CS/Data Structure & algorithm

[Algorithm] 백준 5966 - Cow Cotillion (Node / C#)

문제https://www.acmicpc.net/problem/5966 풀이1. Node.js(fs)const fs = require('fs');const input = fs.readFileSync('/dev/stdin').toString().trim().split('\n');const N = parseInt(input[0]);function isLegal(pattern) { const stack = []; for (let char of pattern) { if (char === '>') { stack.push(char); } else if (char === '') { return false; } ..

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