Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Feb 3, 2025

🧷 문제 링크

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

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

데이터가 주어지면, 이를 적절히 배치해서 원형 차트를 만들 수 있습니다.
여러 가지 경우가 존재하는데, 이 중 원의 중심을 지나는 선의 최대 개수를 구해야 합니다.

🔍 풀이 방법

$O(8!)$ 완탐 풀이가 가장 먼저 떠올랐습니다.

순서가 정해지면, 누적 합 배열에서 차이가 50인 원소 쌍의 수를 구해서 해결했습니다.

⏳ 회고

코드 짜면서 순서를 잘못 배치해서 디버깅하는데 오래 걸렸습니다.
실수하지 않도록 신중하게 짜보겠습니다.

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Feb 3, 2025
@oncsr oncsr self-assigned this Feb 3, 2025
@ShinHeeEul ShinHeeEul merged commit 54e7a2c into main Feb 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