Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

45분

👀 체감 난이도

✏️ 문제 설명

  • n길이의 자연수 배열에서 무게 C가 주어지고, 이 배열중에서 최대 3개를 선택하여 그 합이 C인 조합이 하나라도 있는지 판단

🔍 풀이 방법

  • 이상하게도 최대 3개라해서 각 케이스별로 다르게 구함
  • 1개는 그냥 구함
  • 2개는 투포인터
  • 3개는 중간값을 for문으로 정해가며, 그 나머지합을 투포인터로 구함

⏳ 회고

  • 이렇게 푸는게 맞나? 더욱 제너럴하게 풀수있는 방법이있나? 보고싶지만 59분제출쓰

@LiiNi-coder LiiNi-coder added the success 👍 해설을 보지 않고 풀었을 때 label Oct 3, 2025
@ShinHeeEul ShinHeeEul merged commit 6677a06 into main Oct 3, 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