15721

Algorithm/BOJ

[알고리즘/백준/15721] 번데기

문제 https://www.acmicpc.net/problem/15721 15721번: 번데기 예를 들어 7명이 있고, 16번째 등장하는 “뻔”을 부른 사람의 번호를 알고 싶다면 입력은 7 16 0이다. 4명이 있고 6번째 등장하는 “데기”를 부른 사람의 번호를 알고 싶다면 입력은 4 6 1이며, 이 www.acmicpc.net 풀이 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; let [A, T, C] = fs .readFileSync(filePath) .toString() .trim() .split("\n") .map(Number); let round = 0; l..

개발자 김비숑
'15721' 태그의 글 목록