Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

여러개의 서로 다른 정수가 주어졌을 때, 주어진 정수들 중에서 서로 다른 두 정수의 합이 주어진 또 다른 정수에 가장 가까운 두 정수의 조합의 수 구하기

🔍 풀이 방법

투 포인터 이용
sum이 k보다 작으면 왼쪽칸 하나 상승, k보다 크면 오른쪽칸 하나 줄임

⏳ 회고

별다른 어려움은 없었다.

@suyeun84 suyeun84 self-assigned this Jul 31, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 31, 2025
@ShinHeeEul ShinHeeEul merged commit cd43309 into main Jul 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants