5957

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..

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