
CS/Data Structure & algorithm
[Algorithm] 백준 5957 - Cleaning the Dishes (Node / C#)
문제https://www.acmicpc.net/problem/5957 풀이1. Node.js(fs)const fs = require('fs');const input = fs.readFileSync('/dev/stdin').toString().trim().split('\n');const N = parseInt(input[0]);let unwashed = Array.from({length: N}, (_, i) => N - i);let washed = [];let dried = [];for (let i = 1; i 0) { washed.push(unwashed.pop()); } } } else { // Canmuu drying f..