Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/12941

🧭 풀이 시간

10 분

👀 체감 난이도

✏️ 문제 설명

  • 길이가 같은 자연수 배열에서 한개씩 빼내어 서로 곱한 값을 계속 더해나갔을때, 모두 더한 값의 최솟값 출력

🔍 풀이 방법

  • 그리디(하나는 오름차순, 나머지는 내림차순하여, for i in A, B 함)

⏳ 회고

  • 그리디가 잘 통한 문제였다.
  • int[] 대상으로 Arrays.sort(primitive array, Collections.reverseOrder()) 이 안된다! Collections.reverseOrder() 이 붙으면 원시배열상대로 정렬이 안된다함

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