Skip to content

[20250907] PGM / LV3 / 야근 지수 / 이강현#836

Merged
ShinHeeEul merged 1 commit intomainfrom
lkhyun
Sep 7, 2025
Merged

[20250907] PGM / LV3 / 야근 지수 / 이강현#836
ShinHeeEul merged 1 commit intomainfrom
lkhyun

Conversation

@lkhyun
Copy link
Copy Markdown
Contributor

@lkhyun lkhyun commented Sep 7, 2025

🧷 문제 링크

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

🧭 풀이 시간

5분

👀 체감 난이도

✏️ 문제 설명

1시간에 일은 1만큼 할 수 있음.
일을 n시간만큼 하고 남은 일들을 제곱하여 피로도를 구할때, 피로도가 최소가 되는 값을 구하자.

🔍 풀이 방법

우선순위 큐
그냥 더하는 것보다 제곱해서 더해지는게 무조건 크기때문에 남은 일중 가장 많이 남은 일부터 해야한다.
따라서 매 시간마다 가장 많이 남은 일을 뽑아내야하고 크기를 유지하기위해 우선순위 큐를 사용했다.

⏳ 회고

ez

@lkhyun lkhyun self-assigned this Sep 7, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Sep 7, 2025
@ShinHeeEul ShinHeeEul merged commit 79032b9 into main Sep 7, 2025
1 check passed
@oncsr
Copy link
Copy Markdown
Contributor

oncsr commented Sep 7, 2025

ㄷㄷㄷㄷㄷ

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