Skip to content

[20251207] BOJ / G5 / 두 수의 합 / 한종욱#1611

Merged
ShinHeeEul merged 1 commit intomainfrom
Ukj0ng
Dec 7, 2025
Merged

[20251207] BOJ / G5 / 두 수의 합 / 한종욱#1611
ShinHeeEul merged 1 commit intomainfrom
Ukj0ng

Conversation

@Ukj0ng
Copy link
Contributor

@Ukj0ng Ukj0ng commented Dec 7, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

두 수를 더했을 때, K와 가까운 값이 되는 경우의 수는?

🔍 풀이 방법

left = 0, right = N-1으로 놓고 두 index의 값을 합한다.
K와 비교해 gap을 구하고, 기존 gap과 비교해서 작으면 새 gap을, 같으면 count++을 진행한다.

⏳ 회고

ez

@ShinHeeEul ShinHeeEul merged commit d04c0c6 into main Dec 7, 2025
1 check passed
@Ukj0ng Ukj0ng changed the title [20251207] BOJ / G5 / 환승 / 두 수의 합 [20251207] BOJ / G5 / 두 수의 합 / 한종욱 Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants