AtCoder Beginner Contest 139
翻译中…
Problem Statement
翻译中…
Takahashi's house has only one socket.
翻译中…
Takahashi wants to extend it with some number of power strips, each with $A$ sockets, into $B$ or more empty sockets.
翻译中…
One power strip with $A$ sockets can extend one empty socket into $A$ empty sockets.
翻译中…
Find the minimum number of power strips required.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$2 \leq A \leq 20$$1 \leq B \leq 20$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B
翻译中…
Output
翻译中…
Print the minimum number of power strips required.
翻译中…
样例
Input #1
4 10
Output #1
3
$3$ power strips, each with $4$ sockets, extend the socket into $10$ empty sockets.
Input #2
8 9
Output #2
2
$2$ power strips, each with $8$ sockets, extend the socket into $15$ empty sockets.
Input #3
8 8
Output #3
1
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。