Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

공들의 색과 크기가 주어질 때, 각 플레이어는 자기 공보다 크기가 작고 색이 다른 공을 사로잡아 그 공의 크기만큼 점수를 얻을 수 있다.
이 때, 각 플레이어가 사로잡을 수 있는 모든 공들의 크기의 합 구하기

🔍 풀이 방법

누적합 이용
공의 크기가 작은 순서대로 정렬하고,
해당 공의 idx보다 작은 공에 대해서 각 색깔 별로 얻을 수 있는 점수 저장해두고, 이를 총합에서 빼서 정답 구함

⏳ 회고

에휴 누적합은 늘지를 않냐

@suyeun84 suyeun84 self-assigned this Oct 20, 2025
@suyeun84 suyeun84 added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Oct 20, 2025
@suyeun84 suyeun84 merged commit 39aa427 into main Oct 20, 2025
1 check passed
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants