Blackboard
시간 제한6초메모리 제한1024 MB
칠판에 적힌 정수를 잘게 쪼개어 가장 큰 조각이 가장 작은 조각의 1+k/100배 이하가 되도록 할 때 필요한 최소 분할 횟수를 구한다.
문제
You find yourself in a room with a blackboard that has positive integers written on it. You like it when things are organized, but this blackboard is one big mess: the numbers are all over the place, with a mix of very small and very large numbers.
To organize things, you will split the numbers into smaller numbers, one at a time, such that the total sum remains the same. Thus, in one operation, you can choose any value from the blackboard, erase it, and replace it with two positive real numbers and such that . Your goal is to ensure that the largest value on the blackboard is at most percent larger than the smallest value.

Figure B.1: Illustration of Sample Input 1. The can be replaced by and . The can in turn be replaced by and . Finally, the can be replaced by and . After that, the largest value () is larger than the smallest value ().
Determine the minimum number of operations required to achieve this goal.
입력
The input consists of:
- One line with two integers and (, ), the initial number of integers on the blackboard and the required percentage of maximal difference.
- One line with integers (), the initial integers on the blackboard.
출력
Output the minimum number of operations required to ensure that the largest value on the blackboard is at most percent larger than the smallest value.