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:
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:
        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:
    count +=1
    if (A-1) * count + A >= B:
        break

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:
    count +=1
    if (A-1) * count + A > B:
        break

print(count)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
tap_count = 1
a_count = 0
while tap_count <= b:
  tap_count = tap_count + a - 1
  a_count = a_count + 1
print("{}".format(a_count))

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 = map(int,input().split())
i = 1
n = 0
while(i>=b):
  i=i-1+a
  n+=1
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
need = 1
while(A*need < B):
    need += 1
print(need)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
need = 0
while(A*need < B):
    need += 1
print(need)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

print(i)

Submission status: Wrong Answer

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

ans = int((b+1)/(a-1))
print(ans)

Submission status: Wrong Answer

Solution code:
import math
A, B = map(int, input().split())
print((math.ceil(B / A), 0)[A > B])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
H = list(map(int, input().split()))
d = H[0]-1

if(H[1] % d >= 2):
    f = H[1]//d+1
elif(H[1] % d == 0 or H[1] % d == 1):
    f = H[1]//d

print(f)

Submission status: Wrong Answer

Solution code:
from collections import Counter,defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

a,b = inpl()
b -= a
if b <= 0:
    print(1)
else:
    print(math.ceil(b/(a-1))+1)

Submission status: Wrong Answer

Solution code:
from collections import Counter,defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

a,b = inpl()
cnt = a
ans = 1
while True:
    if cnt >= b:
        break
    ans += 1
    cnt += a-1
print(ans)

Submission status: Wrong Answer

Solution code:
AB = list(map(int,input().split()))
count = 1
A = AB[0]
B = AB[1]
M = A
while(M<B):
    M += A-1
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
AB = list(map(int,input().split()))
count = 1
A = AB[0]
B = AB[1]
while(A<B):
    A += A-1
    count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (b-1) % (a-1) > 0 :
   c = c+1
print(c)

Submission status: Wrong Answer

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

if (B-1)%(A-1)==0:
    print(int((B-1)/(A-1)))
else :
    print(int(B-1)/(A-1)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (B-1)%(A-1)==0:
    print((B-1)/(A-1))
else :
    print(int(B-1)/(A-1)+1)

Submission status: Wrong Answer

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

print(int((B-1)/(A-1))+1)

Submission status: Wrong Answer

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

print(int((B-1)/A)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = c // b
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter,defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

a,b = inpl()
ans = 0
while True:
    if a+(a-1)*ans >= b:
        break
    ans += 1
print(ans+1)

Submission status: Wrong Answer

Solution code:
import math
a,b = map(int,input().split())
if b == 1:
    print(0)
elif a >= b:
    print(1)
else:
    b = b-1
    print(math.ceil(b/a))

Submission status: Wrong Answer

Solution code:
A,B=(int(i) for i in input().split())
y1=A
x=1
while y1<B:
        y1=y1-1+A
        x+=1
print(x)

Submission status: Wrong Answer

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

if a >= b:
    print(1)
else:
    print(math.ceil(b/a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(c)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
import math
print(math.ceil(b/a))

Submission status: Wrong Answer

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

print((b-1)//a)

Submission status: Wrong Answer

Solution code:
import math
a,b = [int(i) for i in input().split()]
print(math.ceil(b/a))

Submission status: Wrong Answer

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

tap = 0
cnt = 0
for i in range(b):
    if tap < b:
        tap += a
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

ans = 1
b -= a

while b > 0:
  b -= a - 1
  ans += 1

print(ans)

Submission status: Wrong Answer

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

if (b - a) <= 0:
  print(1)
elif (b - a) % (a - 1) == 0:
  print((b - a) // (a - 1) + 1)
else:
  print((b - a) // (a - 1) + 2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(b / a)

Submission status: Wrong Answer

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

print(a / b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = [int(i) for i in input().split()]
lim=0
for B in range(1,21):

    if B==1 and a>=2:
        lim=B*a
    elif B>1 and a>=2:
        lim+=(B-1)*(a-1)+a

    if lim>=b:
        break
print(B)

Submission status: Wrong Answer

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

for B in range(1,21):

    if B==1 and a>=2:
        lim=B*a
    elif B>1 and a>=2:
        lim=(B-1)*(a-1)+a

    if lim>=b:
        break
print(B)

Submission status: Wrong Answer

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

for B in range(1,21):
    print(B)
    if B==1 and a>=2:
        lim=B*a
    elif B>1 and a>=2:
        lim=(B-1)*(a-1)+a

    if lim>=b:
        break
print(B)

Submission status: Wrong Answer

Solution code:
import math

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

X = B / A

print(math.ceil(X))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for B in range(1,21):
    if B==1:
        lim=B*a
    elif B>1:
        lim=(B-1)*(a-1)+a

    if lim>=b:
        break
print(B)

Submission status: Wrong Answer

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

for B in range(1,20):
    if B==1:
        lim=B*a
    elif B>1:
        lim=(B-1)*(a-1)+a

    if lim>=b:
        break
print(B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 整数の入力
A, B = map(int, input().split())

# 電源タップの数（初期値1）
N = 1

# 差込口の数が必要数を超えるまで電源タップを増やす
while True:  
  if A * N - (N - 1) >= B:
    break
  N = N + 1

print("{}".format(N))

Submission status: Wrong Answer

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

while True:
    ans += 1
    b -= a
    if(b <= 0):
        print(ans)
        exit()
    b += 1

Submission status: Wrong Answer

Solution code:
# 整数の入力
A, B = map(int, input().split())

# 1つで済む場合
if A >= B:
  print("{}".format(1))

# 1つ以上必要な場合
else:
  print("{}".format(-(-(B - 1) // (A - 1))))

Submission status: Wrong Answer

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

m=1
while True:
    if m>=(B-1)/(A-1):
        break
    else:
        m+=1
print(m)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
ans = 0
if b/a == 1:
    print(ans)
else:
    print(b//a)

Submission status: Wrong Answer

Solution code:
A, B = input().split()
count = 1
sum = int(A)

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

print(count)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print(min([num for num in range(1, 20) if (a - 1) * (num - 1) + a >= b]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def main():
    a, b = map(int, input().split())
    ans = 0
    empty = 1

    for i in range(a + 1):
        if empty >= b:
            print(max(0, ans - 1))
            exit()
        else:
            ans += 1
            empty = i * a - ((i - 1))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print(min([num for num in range(1,50) if (a - 1) * (num - 1) + a >= b]))

Submission status: Wrong Answer

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


def main():
    a, b = map(int, input().split())
    ans = 0
    empty = 1

    for i in range(a + 1):
        if empty >= b:
            print(ans - 1)
            exit()
        else:
            ans += 1
            empty = i * a - ((i - 1))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print([num for num in range(1,21) if (a - 1) * (num - 1) + a >= b][0])

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print([num for num in range(1,21) if (a * num) - num + 1 >= b][0])

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print([j for j in range(1,21) if (a * j) - j >= b][0])

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print([j for j in range(1,21) if a * j >= b][0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split(' '))
k=1
c=A
while c<=B:
  c=c+A-1
  k+=1
print(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = (int(i) for i in input().split())
if b>1: print((b-1)//a+1)
else: print(0)

Submission status: Wrong Answer

Solution code:
a,b = (int(i) for i in input().split())
if b<1: print((b-1)//a+1)
else: print(0)

Submission status: Wrong Answer

Solution code:
from sys import stdin
 
s,t =input().split()
count=int(s)
goal=int(t)
total=count
cnt=1
while total<goal :
  total=total+count-1
  cnt+=1
  
print(cnt)

Submission status: Wrong Answer

Solution code:
i=input();print(1+-int(i[2:])//~int(i[:2]))

Submission status: Wrong Answer

Solution code:
i=input();print(0-int(i[2:])//-int(i[:2]))

Submission status: Wrong Answer

Solution code:
import math

A,B = map(int, input().split())
print(math.ceil((B - A) / (A - 1)))

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
x = 0
if B != 1:
    while B >= 0:
        B = B - A
        x = x + 1
print(x)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
x = 0
if B != 1:
    while B > 0:
        B = B - A
        x = x + 1
print(x)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
x = 0
while B > 0:
    B = B - A
    x = x + 1
print(x)

Submission status: Wrong Answer

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

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

print(cnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
 
for n in range(20):
  t = A*n - n
  if t >= B:
    print(n)
    exit()

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = b - a
result = 1
if c > 0:
    result += -(-c // (a - 1))

print(result)

Submission status: Wrong Answer

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

count = 0
if a!=b:
    while (count*a)-(count-1) <= b:
        count += 1
print(count)

Submission status: Wrong Answer

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

count = 0
while count*a <= b:
    count += 1
print(count)

Submission status: Wrong Answer

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

plug = 0
count = 0
while True:
    if plug >= b:
        break
    if plug != 0:
        plug -= 1
    plug += a
    count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=b//a+ (b%a!=0)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = b - a
result = 1
if c > 0:
    result += (c // (a - 1))
    if c % (a-1) > 0:
        result += 1

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
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())
tap = a - 1
count = 0
while True:
  if a == b:
    count = 1
    break
  elif a + tap * count < b:
    count += 1
  else:
    count += 1
    break
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())
count = 0
num = 0
if x - y == 0:
    print(1)
else:
    count = x
    while count <= y:
        count += x - 1
        num+=1

print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b = map(int,input().split())
count = 1
while (a-1)*count+1 < b:
  count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 1
while(1):
  if a >= b:
    break
  a *= 2
  a -= 1
  cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 1
while(1):
  if a >= b:
    break
  a *= 2 - 1
  cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())
count = 0;
num = 1;
if x - y == 0:
    print(num)
else:
    count = x
    while count < y:
        count += x - 1
        num+=1

print(num)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b = map(int,input().split())
count = 1
while a*count-count+1 < b:
  count += 1
print(count)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
n=(B-1)/(A-1)
if n>=1:
    if n==int(n):
        output=n
    else :
        output=int(n)+1       
elif n<1 and n>0:
    output=1
else:
    output=0
print(output)

Submission status: Wrong Answer

Solution code:
print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if n==int(n): 
    output=n
else :
    output=int(n)+1


print(output)

Submission status: Wrong Answer

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

while k<b:
  k+=a-1
  ans+=1

print(ans)

Submission status: Wrong Answer

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

while k<b:
  k+=a
  k-=1
  ans+=1

print(ans)

Submission status: Wrong Answer

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

tap = 0

if b != 1:
    while ( (tap-1)*a+1) < b:
        tap += 1

print(tap)

Submission status: Wrong Answer

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

tap = 0

if b != 1:
    while tap*a < b:
        tap += 1

print(tap)

Submission status: Wrong Answer

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

tap = 1

if b != 1:
    while tap*a < b:
        tap += 1

print(tap)

Submission status: Wrong Answer

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

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

print(n)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
a, b = map(int, input().split())
if b == 1:
    print(0)
    exit()
tmp = b // (a - 1)
if 1 + (a - 1) * tmp >= b:
    print(tmp)
else:
    print(tmp + 1)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from math import ceil, floor
a, b = map(int, input().split())
tmp = b // (a - 1)
if 1 + (a - 1) * tmp >= b:
    print(tmp)
else:
    print(tmp + 1)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print([j for j in range(1,20) if a * j >= b][0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import ceil

A,B = [int(zz) for zz in input().split()]

ans = 1
while True:
    if B > A:
        B = B - (A - 1)
        ans += 1
    else:
        break

print(ans)

Submission status: Wrong Answer

Solution code:
from math import ceil

A,B = [int(zz) for zz in input().split()]

print(ceil(B/A))

Submission status: Wrong Answer

Solution code:
def main():
  a,b = map(int, input().split())
  
  result = 0
  count = 0
  
  while(result < b):
    if count == 0:
      result += 1
    result -= 1
    result += a
    count += 1
  print(count)
  
main()

Submission status: Wrong Answer

Solution code:
A, B = map(float, raw_input().split())
value = (B - A + A - 2)/ (A - 1)
intval = int(value)
print intval + 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, m = map(int, input().split())
cnt = 1
s = n
while(s < m):
  s += n-1
  cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
n, m = map(int, input().split())
cnt = 1
s = n
while(n < m):
  s += n-1
  cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
cnt = A
num = 1
i = 1
if B == 1:
    print("0")
    exit()
while 1:
    if cnt >= B:
        print(num)
        exit() 
    cnt += (A-1)
    print(cnt)
    num += 1
i += 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = list(map(int,input().split(' ')))
print(A,B)
for n in range(100):
  if n*A-(n-1) >= B:
    print(n)
    break

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
for i in range(1,100):
    num=i*A-i+1
    if num>=B:
        ans=i
        break
print(ans)

Submission status: Wrong Answer

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

C = A
while B > C:
    C = C + A - 1
    ans += 1

print(ans)

Submission status: Wrong Answer

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

while B > A:
    A += A - 1
    ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt=1
kuti=a

while kuti<b:
    cnt+=1
    kuti += a-1
   
print(cnt)

Submission status: Wrong Answer

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

cnt=1
kuti=a

while kuti<b:
    cnt+=1
    kuti -= 1
    kuti += a
   
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = tuple([int(i) for i in input().split(' ')])
 
ans = 0
while True:
    if (a - 1) * (ans - 1) + a >= b or a == b:
        break
    ans += 1
 
print(ans)

Submission status: Wrong Answer

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

ans = 1
while True:
    if (a - 1) * (ans - 1) + a >= b or a == b:
        break
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
from math import ceil
if __name__ == '__main__':
    x,y = map(int,input().split())
    if y >= x:
        print(ceil(y/x))
    else:
        print(0)

Submission status: Wrong Answer

Solution code:
from math import ceil
if __name__ == '__main__':
    x,y = map(int,input().split())
    print(ceil(y/x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 1
if b > a:
  ans += b // a
  
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input("")
a, b = a.split()
a, b = int(a), int(b)
c, d = 0, 0
while d < b:
    if a == 0:
        break
    c += 1
    d = a * c - (c - 1)
print(c)

Submission status: Wrong Answer

Solution code:
a = input("")
a, b = a.split()
a, b = int(a), int(b)
c, d = 0, 0
while d < b:
    if a == 0:
        break
    c += 1
    d = a * c - c
print(c)

Submission status: Wrong Answer

Solution code:
a = input("")
a, b = a.split()
a, b = int(a), int(b)
c, d = 0, 0
while d <= b:
    if a == 0:
        break
    c += 1
    d = a * c
print(c)

Submission status: Wrong Answer

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