Problem:


Score : 200 points

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.

Sample Input 1

4 10

Sample Output 1

3

3 power strips, each with 4 sockets, extend the socket into 10 empty sockets.

Sample Input 2

8 9

Sample Output 2

2

2 power strips, each with 8 sockets, extend the socket into 15 empty sockets.

Sample Input 3

8 8

Sample Output 3

1



Sample input:
4 10


Sample output:
3

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print((B-1)//A+1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

print(int(b//a) + bool(b%a))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

count = 1
num_slot = A 
while num_slot <= B:
  num_slot += (A-1)
  count += 1
print(count)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

count = 1
num_slot = A 
while num_slot < B:
  num_slot += (A-1)
  count += 1
print(count)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

X = A
count = 1

while X < B:
    X = X + (A-1)
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

X = A
count = 1

while X < B:
    X = A + (A-1)
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
t1, t2 = map(int, input().split())
r = 0
if t2 % t1 == 0 :
  r = t2 / t1
else :
  r = int(t2 / t1) + 1
print(int(r))

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
plug = A
cnt = 1
for i in range(100):
  if plug < B:
    plug += A-1
    cnt +=1
    #print(cnt)
  else:
    break

print(cnt)

Submission status: Wrong Answer

Solution code:
import math
A, B = map(int, input().split())
if B == 1:
    print(0)
else:
    num = 0
    x = math.ceil(B / A)
    if A * x - (x - 1) >= B:
        print(x)
    else:
        print(x + 1)

Submission status: Wrong Answer

Solution code:

#A個口の電源タップを使って、B口にする
A,B = map(int,input().split())

#A個口の電源タップをN個使ったときの口の数は n(A-(n-1))
n = 1
Acount = n * A-(n-1)

while Acount < B :
    n += 1
    Acount = n * A-(n-1)


print(n)

Submission status: Wrong Answer

Solution code:

#A個口の電源タップを使って、B口にする
A,B = map(int,input().split())

#A個口の電源タップをN個使ったときの口の数は n(A-(n-1))
n = 0
ans = 0

while ans < B :
    n += 1
    ans = n * A-(n-1)

print(n)

Submission status: Wrong Answer

Solution code:

import math

A,B = map(int,input().split())

print(math.ceil(B/A))

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]

ans =  b//(a-1)

if (a-1)*ans+1 < b:
    print(ans+1)
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
import math

a, b = [int(x) for x in input().strip().split()]

print(math.ceil(b / a))

Submission status: Wrong Answer

Solution code:
a,b=input().strip().split(' ')
a,b=[int(a),int(b)]
print((b//a)+1)

Submission status: Wrong Answer

Solution code:
a,b=input().strip().split(' ')
a,b=[int(a),int(b)]
print((a//b)+1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

count = 1
tap = A
while tap < B:  
  tap += A-1
  count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if b == 1:
    print(0)
    exit(0)
sum = a
ct = 1

while sum  <= b:
    ct += 1
    sum += a - 1

print(ct)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if b == 1:
    print(0)
    exit(0)
sum = a
ct = 0

while sum  <= b:
    ct += 1
    sum += a - 1

print(ct)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt=0
ans = 0
while True:
    if ans>=b:
        break
    ans+=a
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if b%a == 0:
    print("1")
else:
    if b%(a-1) == 1:
        print(b//(a-1))
    else:
        print(b//(a-1)+1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if b%a == 0:
    print("1")
else:
    if b%(a-1) + (a-1) == a:
        print(b//(a-1))
    else:
        print(b//(a-1)+1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if b%a == 0:
    print("1")
else:
    print((b//a)+1)

Submission status: Wrong Answer

Solution code:
AB = list(map(int, input().split()))
A = AB[0]
B = AB[1]

diff = B - A
num = 1
while diff > 0:
    diff -= A - 1
    num += 1

print(num)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
i=0
c=1
while True:
    i+=1
    c+=a-1
    if c >= b:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
cnt = 0
num = 1
if b == a:
  print(1)
elif b < a:
  print(0)
else:
  while num < b:
    num+=a
    num+=-1
    cnt+=1
  print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
cnt = 0
num = 1
if b <= a:
  print(1)
else:
  while num < b:
    num+=a
    num+=-1
    cnt+=1
  print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
cnt = 1
if b <= a:
  print(1)
else:
  while a <= b:
    a+=a
    a+=-1
    cnt+=1
  print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
cnt = 1
while a < b:
  a+=a
  a+=-1
  cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if b < a:
  print(0)
else:
  res =  b//a+1 if b%a else 1
  print(res)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
res =  b//a+1 if b%a else 1
print(res)

Submission status: Wrong Answer

Solution code:
import sys

# -----------------------------------------
# import os
# fdr = os.open('python/abc139/sample.txt', os.O_RDONLY)
# os.dup2(fdr, sys.stdin.fileno())
# -----------------------------------------

str = sys.stdin.readline().split()

A = int(str[0])
B = int(str[1])
c = B // A
if B%A != 0:
    c+=1

print(c)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=a
ans=1
while c<b:
  c=c+a-1
  ans=ans+1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=a
ans=1
while c>=b:
  c=c+a-1
  ans=+1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=a
ans=0
while c>=b:
  c=c+a-1
  ans=+1
print(ans)

Submission status: Wrong Answer

Solution code:
import math
A, B = map(int, input().split())

if B<=A:
    ans=1
else:
    ans = math.ceil(B/(A-1))
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print(B // A if B % A == 0 else B // A + 1)

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
a=s[0]
b=s[1]
if b%a==0:
  print(int(b/a))
elif b<a:
  print(0)
else:
  print(int(b//a+1))

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
a=s[0]
b=s[1]
if b%a==0:
  print(int(b/a))
else:
  print(int(b//a+1))

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
a=s[0]
b=s[1]
if b%a==0:
  print(b/a)
else:
  print(b//a+1)

Submission status: Wrong Answer

Solution code:
A, B = [int(s) for s in raw_input().split(" ")]

res = B/ A + int(B % A > 0)
print(res)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
tap_cnt=1
sock_cnt=i[0]

while tap_cnt*i[0]-(tap_cnt-1) < i[1]:
  tap_cnt=tap_cnt+1
    
print(tap_cnt)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
tap_cnt=1
sock_cnt=i[0]

while sock_cnt < i[1]:
  tap_cnt=tap_cnt+1
  sock_cnt = tap_cnt * i[0]
    
print(tap_cnt)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

ans = 1
rem = B - A
if rem > 0:
  div, mod = divmod(rem, A - 1)
  ans += div
  if mod:
      ans += 1
      
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

ans = 1
rem = B - A
if rem > 0:
  ans += (rem + A - 2) // (A - 1)
  
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
answer = 0
plug = 1
while plug > b:
  plug += a - 1
  answer += 1
print(answer)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

print((b-a)//(a-1)+1)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
ans = 1
while True:
  if b > a:
    ans += 1
    b = b - a + 1
  else:
    break
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
y = b // (a-1)  #1個少ないタップが何個つくか
if ((a-1)*y) + 1 == b:
    print(y)
else:
    print(y+1)

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc139/tasks/abc139_b

l = [input() for i in range(1)]

num = [int(item) for item in l[0].split(' ')]
count = num[1] // num[0]
if num[1] % num[0] != 0:
    count = count + 1
print(count)

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc139/tasks/abc139_b

l = [input() for i in range(1)]

num = [int(item) for item in l[0].split(' ')]
count = num[1] // num[0]
if num[1] % num[0] == 1:
    count = count + 1
print(count)

Submission status: Wrong Answer

Solution code:
a,b = list(map(int,input().split()))
i = 1
while a <= b:
    a += a-1
    i += 1

print(i)

Submission status: Wrong Answer

Solution code:
a,b = list(map(int,input().split()))
i = 0
while a < b:
    a += a-1
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
a,b = list(map(int,input().split()))
i = 1
while a < b:
    a += a-1
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
device = 0
while b > 0:
    if b <= a:
        device += 1
        break
    b -= (a - 1)
    device += 1
print(device)

Submission status: Wrong Answer

Solution code:
n = input().split()
n = list(map(int, n))
a, b = n[0], n[1]
device = 0
while b > 0:
    if b <= a:
        device += 1
        break
    else:
        b -= (a - 1)
        device += 1
print(device)

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
if a==b:
    print(int(b/a))
    quit()

print(int(b/a)+1)

Submission status: Wrong Answer

Solution code:
from math import ceil

A, B = map(int, input().split())
C = A
ans = 1
while (C < B):
    C -= 1
    C += A
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
num_tap = 0
output = 0
for i in range(30):
  output += 1
  if i == 0:
    num_tap += a
  else:
    num_tap += a-1
  if num_tap >= b:
    break
print(output)

Submission status: Wrong Answer

Solution code:
from math import ceil

A, B = map(int, input().split())
C = A
ans = 0
for n in range(2, 100):
    if C >= B:
        break
    C += (A-1)
    ans = n
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
num_tap = 0
output = 0
for i in range(20):
  output += 1
  if i == 0:
    num_tap += a
  else:
    num_tap += a-1
  if num_tap >= b:
    break
print(output)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
# print(A, B)
C = 1
i = 0
while C <= B:
    if i % A == 0:
        C += A
    else:
        C += (A-1)
    i += 1
C -= 1
# print(C)
print(i)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
# print(A, B)
C = 1
i = 0
while C <= B:
    if i == 0:
        C += A
    else:
        C += (A-1)
    i += 1
C -= 1
# print(C)
print(i)

Submission status: Wrong Answer

Solution code:
import math

A,B = [int(x) for x in input().split()]
print(math.ceil(B/A))

Submission status: Wrong Answer

Solution code:
import math

A,B = [int(x) for x in input().split()]
print(math.ceil(A/B))

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
c = a
i = 1

while(c < b):
    c += a-1
    i +=1
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
c = a
i = 1



while(c < b):
    c += a-1
    i +=1

if(a>=b):
    print("1")
else:print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
c = a
i = 1


while(c < b):
    c += a-1
    i +=1

if(a>=b):
    print(1)
else:print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
c = 1
cnt = 0
while True:
  c += (a-1)
  cnt += 1
  if c>= b:
    break
print(cnt)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
ans = 0
for ans in range(100):
    ans += 1
    if stdin[0] * (ans - 1) < stdin[1] < stdin[0] * ans:
        print(ans + 1)
        exit()
    elif stdin[0] == stdin[1]:
        print(1)
        exit()

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
r = s[1] // s[0]
if s[1] % s[0] != 0:
        r += 1
print(r)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))

count = 0
suma = 1


if A > B:
    pass
else:
    while True:
        count += 1
        suma = suma + A - 1
        if suma >= B:
            break

print(count)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))

count = 0
suma = 1

while True:
    count += 1
    suma = suma + A - 1
    if suma >= B:
        break

print(count)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))

count = 0
suma = 1

while True:
    count += 1
    suma = suma + A - 1
    if suma >= B:
        break

print(count)

Submission status: Wrong Answer

Solution code:
from math import ceil
stdin = [int(x) for x in input().split()]
print(ceil(stdin[1] / (stdin[0] - 1)))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
cnt = B // A
if B % A != 0:
    cnt += 1
elif cnt == 0:
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
cnt = B // A
if B % A != 0:
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
cnt = A // B
if A % B != 0:
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
print((stdin[1] - 1) // (stdin[0] - 1))

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
print(stdin[1] // (stdin[0] - 1))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
Stop = True

if b == 1:
    print(0)
else:
    cnt = 0
    while Stop:
        cnt += 1
        if cnt*a - cnt >= b:
            Stop = False
    print(cnt)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
quotient = stdin[1] // stdin[0]
if stdin[1] == stdin[0]:
    print(quotient)
elif stdin[0] > stdin[1]:
    print(1)
else:
    print(quotient + 1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(1, 400):
    count = count + A - 1
    if count >= B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(1, 400):
    count = count + A - 1
    print(i, count, A, B)
    if count >= B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(400):
    count = count + A - 1
    if count >= B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(100000):
    count = count + A - 1
    if count > B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(100000):
    count = count + A - i
    if count >= B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 1
for i in range(100000):
    count = count + A - i
    if count > B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print(int(B/(A-1)) + 1)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
division = stdin[1] // stdin[0]
if stdin[1] % stdin[0] == 0:
    print(division)
elif stdin[0] > stdin[1]:
    print(1)
else:
    print(division + 1)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
division = stdin[1] // stdin[0]
if stdin[1] % stdin[0] == 0:
    print(division)
elif stdin[0] < stdin[1]:
    print(1)
else:
    print(division + 1)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
division = stdin[1] // stdin[0]
if stdin[1] % stdin[0] == 0:
    print(division)
else:
    print(division + 1)

Submission status: Wrong Answer

Solution code:
stdin = [int(x) for x in input().split()]
print((stdin[1] // stdin[0]) + 1)

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())

cnt = 1
num = A

if num < B:
  while num < B:
    num = num + (A - 1)
    cnt += 1
  
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
taps = 1

while a * taps < b :
    taps += 1
print(str(taps))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
taps = 0

while a * taps < b :
    taps += 1
print(str(taps))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
taps = 0

while a * taps <= b :
    taps += 1
print(str(taps))

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1

while flag == 0:
	if a*i-(i-1) >= b:
		flag = 1
	else:
		a*i-(i-1) < b
		i += 1
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1

while flag == 0:
	if a == b:
		flag = 1
	elif a*i-(i-1) < b:
		i += 1
	else:
		flag = 1
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1
if flag == 0:
	while 1:
		if a == b:
			flag = 1
			break
		elif a*i-(i-1) < b:
			i += 1
		else:
			flag = 1
			break
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1
if flag == 0:
	while 1:
		if a == b:
			i = 1
			flag = 1
			break
		elif a*i-i <= b:
			i += 1
		else:
			flag = 1
			break
print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

i = 0
while True:
  i += 1
  c = a * i + 1 - i
  if c >= b:
    break
    
  

print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

i = 1
while True:
  max = a * i + 1 - i
  if max >= b:
    break
    
  i += 1
  

print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input().split())
total = 0
is_first = True
cnt = 0
while True:
    if a == 0:
        print 0
        break
    if is_first:
        total += a
        is_firs = False
    else:
        total += a - 1
    cnt += 1
    if b <= total:
        print cnt
        break

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if b==1:
  print(0)
else:
  for i in range(15):
    if a*i>=b:
      print(i)
      break

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split())

#print(A,B)

count=0
tap=1
if B==0:
  print(0)
else:
  for j in range(100):
   count=count+1
   tap=tap+(A-1)
   if tap >= B:
    print(count)
    break

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=0
while b>0:
  b+=1
  b-=a-1
  ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print((b+a-2)//(a-1))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

cnt = 0
p = 0
while p < B:
    if p + A >= B:
        cnt += 1
        break

    p += A - 1
    cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
n=0
i=0
while B>n:
	if n==0:
		n+=A
	else:
		n+=A+1
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
a,b= map(int, input().split())
for i in range(30):
	if a<b:
		a=a+(a-1)
	else:
		print(i+1)
		break

Submission status: Wrong Answer

Solution code:
a,b= map(int, input().split())
for i in range(20):
	if a<b:
		a=a+(a-1)
	else:
		print(i+1)
		break

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print((b-1)//(a-1) if (b-1)%(a-1)==0 else (b-1)//(a-1))

Submission status: Wrong Answer

Solution code:
A,B = [int(x) for x in input().split()]
#Input = input().split(" ")
#A = int(Input[0])
#B = int(Input[1])
#n = (B-1)/(A-1)
print((B-1)//(A-1))

Submission status: Wrong Answer

Solution code:

tmp = input().split()

A = int(tmp[0])
B = int(tmp[0])

S = 1
ss = 0

while ss <= B:
  S = S-1 + A
  ss += 1

print(ss)

Submission status: Wrong Answer

Solution code:
Input = input().split(" ")
A = int(Input[0])
B = int(Input[1])
n = B/(A-1)
print(int(n)+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if b % a != 0:
    ans = b // a + 1
else:
    ans = b // a
if b == 1:
    ans = 0
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if b % a != 0:
    ans = b // a + 1
else:
    ans = b // a
print(ans)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split())

for i in range(20):
  if A * i + 1 >= B:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split())

for i in range(20):
  if A * i > B - 1:
    print(i)
    break

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1
if flag == 0:
	while 1:
		if a == b:
			i = 1
			flag = 1
			break
		elif a*i <= b:
			i += 1
		else:
			flag = 1
			break
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1
if flag == 0:
	while 1:
		if a*i <=b:
			i += 1
		else:
			flag = 1
			break
print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num = 1
    len = a

    if (b == 1):
        print(0)
    elif(len >= b):
        print(1)
    else:
        for i in range(a):
            if(len < b):
                len += (a-1)
                tap_num += 1
            else:
                break

        print(tap_num)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
flag = 0
i = 1
if flag == 0:
	while 1:
		if a*i < b:
			i += 1
		else:
			flag = 1
			break
print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num  = 1

    len = a

    if (b == 1):
        print(0)
    elif(len >= b):
        print(tap_num)
    else:

        for i in range(a):
            if(len < b):
                len += (a-1)
                tap_num += 1

            else:
                break

        print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num  = 1

    len = a

    if(len >= b):
        print(tap_num)
    elif(b==1):
        print(0)
    else:

        for i in range(a):
            if(len < b):
                len += (a-1)
                tap_num += 1

            else:
                break

        print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num  = 1

    len = a

    if(len >= b):
        print(tap_num)
    else:
        
        for i in range(a):
            if(len < b):
                len += (a-1)
                tap_num += 1

            else:
                break

        print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
count = 0
for i in range(1,100):
	if a*i <= b:
		count +=1
print(count)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num = 1


    if(b>a):
        b -= a-1

        for i in range(a):
            if (b > a):
                tap_num += 1
                b -= (a-1)
            else:
                tap_num += 1
                break

    print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num = 1

    if(b>a):
        b -= a
        
        for i in range(a):
            if (b > a):
                tap_num += 1
                b -= (a-1)
            else:
                tap_num += 1
                break

    print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
A, B= map(int,input('please enter number').split())
n = 0
while (n < 20):
    if A+(n-1)*(A-1) >= B:
    	print(n)
    	break
    n += 1

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    a,b = map(int, input().split())
    tap_num = 1

    b -= a

    if(b>a):
        for i in range(a):
            if (b > a):
                tap_num += 1
                b -= (a-1)
            else:
                tap_num += 1
                break

    print(tap_num)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
ans = 1
cnt = a;
while cnt < b:
    cnt += a-1
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
ans = 1
cnt = a;
while ans < 21:
    if cnt >= b:
        print(ans)
        break
    cnt += a-1
    ans += 1

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
ans = 1
cnt = a;
while True:
    if cnt >= b:
        print(ans)
        break
    if ans == 21:
        break
    cnt += a-1
    ans += 1

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
ans = 1
cnt = a;
while True:
    if cnt >= b:
        break
    cnt += a-1
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

plugs = [A*x-(x-1) for x in range(1, B)]

if B < A:
  print(1)
else:
  for i, plug in enumerate(plugs):
    if plug >= B:
      print(i+1)
      break

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

plugs = [A*x-(x-1) for x in range(1, B)]

for i, plug in enumerate(plugs):
  if plug >= B:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
i=1
d= a
while d < b:
	d -= 1
	d += a
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
i=1
d= a
while d < b:
	
	d += a-1
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
i=1
d=0
while d < b:
	
	d = i*(a-1) + a
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
i=1
while i*(a-1) + a < b:
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import numpy as np

def main():
    a, b = map(int, input().split())

    sum_receptor = 1
    ans = 0
    while sum_receptor < b:
        sum_receptor += a - 1
        ans += 1

    print(ans - 1)

main()

Submission status: Wrong Answer

Solution code:
num = list(map(int, input().split()))
if((num[1]-1)%(num[0])==0):
    print(num[1]//num[0])
else:
    print(num[1]//num[0]+1)

Submission status: Wrong Answer

Solution code:
num = list(map(int, input().split()))
print((num[1]+1)//(num[0]-1))

Submission status: Wrong Answer

Solution code:
n,m = input().split()
n = int(n)
m = int(m)

count = 1

while n < m:
        n += n - 1
        count += 1
print(count)

Submission status: Wrong Answer

Solution code:
num = list(map(int, input().split()))
print((num[1]-1)//num[0]+1)

Submission status: Wrong Answer

Solution code:
# B - Power Socket

a, b = list(map(int, input().split()))
div = b // (a - 1)
mod = b % (a - 1)

print(1 if a == b else (div + 1 if mod > 1 else div))

Submission status: Wrong Answer

Solution code:
n,m = input().split()
n = int(n)
m = int(m)

i = m - n

if i < 0:
        print(0)
else:
        count = 1
        while i > 0:
                i -= n-1
                count += 1
        print(count)

Submission status: Wrong Answer

Solution code:
n,m = input().split()
n = int(n)
m = int(m)

i = m - n
count = 1

while i > 0:
        i -= n-1
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
c = 1
count = 0
while b >= c:
  count += 1
  c += (a-1)
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 1
for i in range(20):
    if a < b:
        a += a - 1
        cnt += 1
    else:
        break
print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
ans = 0

while (B > 0):
    B = B - A
    ans += 1
        
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
count = 0
if b==1:
  print(0)
else :
  if a==b:
    b-=a
  a-=1
  while(b>=0):
    b-=a
    count+=1
  print(count)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
count = 0
if b==1:
  print(0)
else :
  b-=a
  a-=1
  while(b>=0):
    b-=a
    count+=1
  print(count)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
count = 0
if b==1:
  print(0)
else :
  while(b>=0):
    b-=a
    a-=1
    count+=1
  print(count)

Submission status: Wrong Answer

Solution code:
import math

a,b=map(int,input().split())
if b==1:
  print(0)
else:
  print(math.ceil(b/a))

Submission status: Wrong Answer

Solution code:
import math

a,b=map(int,input().split())

print(math.ceil(b/a))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

A,B = map(int, input().split())

for i in range(1,20):
    count = A + ((A-1)*(i-1))
    if count >= B:
        break

print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

A,B = map(int, input().split())

i = 1
while True:
    count = A + ((A-1)*(i-1))
    if count >= B:
        break
    i += 1

print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(b // (a-1))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
x = b // (a-1)
y = b % (a-1)
if y == 0:
    print(x)
else:
    print(x)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
x = b // (a-1)
y = b % (a-1)
if y == 0:
    print(x-1)
else:
    print(x)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

count = 0
flag = True
if A >= B:
    flag = False
    count +=1
else:
    count +=1
while flag:
    if (A-1) * count + A >= B:
        count +=1
        break
    count +=1

print(count)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

count = 0
flag = True
if A == B:
    flag = False
    count +=1
else:
    count +=1
while flag:
    if (A-1) * count + A >= B:
        count +=1
        break
    count +=1

print(count)