Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Sep 19, 2025

🧷 문제 링크

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

🧭 풀이 시간

120분

👀 체감 난이도

✏️ 문제 설명

B[i][j] = i*j 일때, 배열 B에 있는 모든 값들을 오름차순 정렬함.
그리고 K번째 값을 구하라.

🔍 풀이 방법

이분탐색
N이 100000이므로 1부터 100억까지의 범위에서 이분 탐색함.
그리고 mid보다 작은 것들의 개수를 구함.
모든 값은 N이하의 값들의 곱으로 나타나므로 N부터 나눠보면서 그 몫이 mid보다 작은 것들의 개수가 됨.
이때 몫이 N보다 큰 경우는 최대 N개만큼만 더해지도록 예외처리 해줌.

⏳ 회고

병규와 혁준이와의 이야기를 통해 아이디어를 얻었다. 혼자였으면 못풀었을 것 같다.

@lkhyun lkhyun self-assigned this Sep 19, 2025
@lkhyun lkhyun added success 👍 해설을 보지 않고 풀었을 때 hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 timeout ⌚ 목표 시간보다 오래걸렸을 때 labels Sep 19, 2025
@ShinHeeEul ShinHeeEul merged commit ced65e0 into main Sep 19, 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.

3 participants