Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Sep 4, 2025

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/17678?language=java

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

셔틀이 09:00부터 총 n회 t분 간격으로 역에 도착하며, 하나의 셔틀에는 최대 m명의 승객이 탈 수 있을 때,
콘이 셔틀을 타고 사무실로 갈 수 있는 도착 시각 중 제일 늦은 시각 구하기

🔍 풀이 방법

구현
버스가 출발하는 시각을 저장해둔 배열을 만들고, 각 크루가 기다리기 시작한 시간을 저장한 배열을 만들고 오름차순으로 정렬
이후, 먼저 온 크루 순서대로 각 버스에 탈 수 있는지 여부를 저장하기
만약 버스의 크기가 꽉 찼으면 1분 전에 도착해야하므로
answer = crew - 1로 해주기

⏳ 회고

난 바보다ㅜ

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants