[20251025] PGM / Lv2 / n진수 게임 / 이강현 #1224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://school.programmers.co.kr/learn/courses/30/lessons/17687
🧭 풀이 시간
20분
👀 체감 난이도
✏️ 문제 설명
n진수의 숫자를 m명의 사람이 차례로 돌아가며 한글자씩 말할때, 튜브가 말할 t개의 숫자를 미리 구해놓으려고 한다.
구하라.
🔍 풀이 방법
구현
특정 숫자를 n진수로 만드는 함수를 구현함.
그리고 문자열들을 이어 붙임.
튜브는 t개의 숫자를 필요로 하고 이건 m명이 돌아가면 말하니 문자열은 t*m까지만 구하면 충분함.
문자열을 모두 구하고 튜브가 말해야하는 부분만 뽑아서 저장.
⏳ 회고
단순 구현
시간 복잡도 생각 안해도 댐.