| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 259 | 220 | 205 | 86.864% |
Gena is training an elephant to compete in the Iteratively Counting Peanuts Confrontation. As part of the training, Gena puts out $p$ peanuts and the elephant has to count all of them.
However, elephants are not that good at counting peanuts, and Gena's elephant crushes some of the peanuts during the training. Gena is tasked with cleaning up the peanut debris that is leftover. Gena cleans up $d$ milligrams of peanut debris.
Gena knows that each peanut weighed exactly $m$ milligrams, but forgot how many peanuts he put out for his elephant. Although there could be up to $m \times p$ milligrams of peanut debris, for various reasons the amount of debris could be much lower.
Help Gena compute the minimum number of peanuts he could have put out for the elephant!
The first and only line of input contains two integers, $m$ and $d$ (1ドル \le m, d \le 50$).
Output a single integer, the minimum number of peanuts that Gena could have put out that could have resulted in his elephant leaving $d$ milligrams of peanut debris.
1 1
1
3 14
5
27 18
1
6 7
2
ICPC > Regionals > North America > Pacific Northwest Regional > 2025 ICPC Pacific Northwest Regional > Division 2 A번