Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/1561

🧭 풀이 시간

90분

👀 체감 난이도

✏️ 문제 설명

N명의 아이들이 M종류의 놀이기구를 탈 때,
놀이기구가 모두 비어 있는 상태에서 첫 번째 아이가 놀이기구에 탑승한다고 할 때, 줄의 마지막 아이가 타게 되는 놀이기구의 번호 구하기

🔍 풀이 방법

이분탐색 사용
걸릴 시간을 놀이기구 타는데 걸리는 시간으로 나누고, 해당 값이 N보다 작은지 여부 확인해서 N명이 타는데 걸리는 시간 구하고,
해당 시간 % time[i] == 0인 아이 구함

⏳ 회고

진짜 ㅋㅋ 너무 어려움 ㅋㅋㅋ 하..

@suyeun84 suyeun84 self-assigned this Aug 26, 2025
@suyeun84 suyeun84 added hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 timeout ⌚ 목표 시간보다 오래걸렸을 때 labels Aug 26, 2025
@ShinHeeEul ShinHeeEul merged commit 6a6b1a3 into main Aug 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 timeout ⌚ 목표 시간보다 오래걸렸을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants