27384번: Beast Bullies - 정렬, 그리디
https://www.acmicpc.net/problem/27384 27384번: Beast Bullies There are some animals with distinct strength levels getting water from a watering hole. The more animals that are at the watering hole the less water each animal will get. For this reason some of the animals will try to force the others to leave. Periodic www.acmicpc.net 힘이 약한 순으로 동물들이 잡아먹히므로, 역으로 힘이 가장 큰 동물 두 마리만 남아 있다 생각해 보자. 예제 1에서 ..
알고리즘/baekjoon
2023. 6. 5. 11:22