| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 357 | 280 | 249 | 80.064% |
Vinicius is at a board meeting of the “Instituto de Consultoria de Palestras e Comentários” (ICPC) thinking that it would be great if the board members were more concise and kept their speeches within the time allotted for each director, so that the meeting could end before lunch. Unfortunately, perhaps due to the nature of the institution, everyone loves to talk.
Knowing that
determine the maximum length of each speech, in minutes, so that the meeting lasts no more than $K$ minutes.
The first line contains an integer $N$ ($1 ≤ N ≤ 100$), the number of directors. The second line contains an integer $K$ ($1 ≤ K ≤ 1000$ and $K ≥ N$), the maximum meeting duration in minutes. For all input cases, each director’s speech lasts at least $1$ minute.
Your program should output a single line, containing a single integer, indicating the length of each board member’s speech, in minutes.
7 120
16
There are $7$ directors and the maximum meeting length is $120$ minutes. If each director speaks for $16$ minutes, we have $16 \times 7 = 112$ minutes. Since there are six breaks between speeches, and each break lasts one minute, we have $118$ minutes in total. Note that, in this case, two minutes of the meeting time are not used, and that, if the speeches were longer than $16$ minutes, the total time would exceed the $120$-minute limit.
1 10
10
There is only one director and the meeting lasts $10$ minutes. Therefore, the maximum speaking time of the director is $10$ minutes.
100 1000
9