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())

for i in range(1, 21):
    if a * i - (i - 1) >= b:
        print(i)
        exit()

Submission status: Wrong Answer

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

for i in range(1, 21):
    if a == b:
        print(1)
        exit()
    if a * i - (i - 1) >= b:
        print(i)
        exit()

Submission status: Wrong Answer

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

for i in range(1, 20):
    if a == b:
        print(1)
        exit()
    if a * i - (i - 1) >= b:
        print(i)
        exit()

Submission status: Wrong Answer

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

plug=0
tap=0
while plug < b:
    tap+=1
    if tap>1:
        plug-=1
    plug+=a
print(tap)

Submission status: Wrong Answer

Solution code:
import math

if __name__ == "__main__":
    A, B = [int(x) for x in input().split(" ")]
    if A >= B:
        print(1)
    else:
        print(math.ceil(((B - A) / (A - 1)) + 1))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    A, B = [int(x) for x in input().split(" ")]
    print(max(((B - A) // (A - 1)) + 1, 1))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    A, B = [int(x) for x in input().split(" ")]
    print(((B - A) // (A - 1)) + 1)

Submission status: Wrong Answer

Solution code:
A, B = input().split(' ')
A = int(A)
B = int(B)
C = -(-B // A)
print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

B -= A

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

Submission status: Wrong Answer

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

B -= A
cnt = 1

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

print(cnt)

Submission status: Wrong Answer

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

B -= A
cnt = 1

while True:
	B -= (A-1)
	if B <= 0:
		break
	cnt += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

def main(a,b):
    if b<=a:
        return 1
    x=b-a
    q=x//(a-1)
    r=x%(a-1)
    if(r==0):
        return q+1
    else:
        return q+2

if __name__=='__main__':
    a,b=readinput()
    ans=main(a,b)
    print(ans,end='')

Submission status: Wrong Answer

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

def main(a,b):
    if b<=a:
        return 1
    x=b-a
    q=x//(a-1)
    r=x%(a-1)
    if(r==0):
        return q+1
    else:
        return q+2

if __name__=='__main__':
    a,b=readinput()
    ans=main(a,b)

Submission status: Wrong Answer

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

if B == 0:
    print(0)
elif A > B :
    print(1)
else:
    while (A-1) * i + 1 < B:
        i += 1
    print(i)

Submission status: Wrong Answer

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

if A > B :
    print(1)
else:
    while (A-1) * i + 1 < B:
        i += 1
    print(i)

Submission status: Wrong Answer

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

if A > B :
    print(1)
else:
    while (A-1) * i + 1 < B:
        i += 1
    print((A-1) * i + 1)

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())

x = b - a
a -= 1
print(1 if x <= 0 else 1 + (x + (a - 1)) // a)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
for i in range(30):
    if A*i >= B:
        break


answer = i

print(answer)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(1)
elif (a-b)%(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 a>=b:
    print(1)
else:
    print((b-a)//(a-1)+2)

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())

i=1

while True:

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import functools
import math
import collections
import scipy
import fractions
import itertools

def solve():
  a, b = map(int, input().split())
  if b <= 1:
    print(0)
  elif a >= b:
    print(1)
  else:
    print(math.ceil(b/(a-1)))
  return 0
 
if __name__ == "__main__":
  solve()

Submission status: Wrong Answer

Solution code:
def solve():
  a, b = map(int, input().split())
  if b <= 1:
    print(0)
  elif a >= b:
    print(1)
  else:
    print(b//(a-1)+1)
  return 0
 
if __name__ == "__main__":
  solve()

Submission status: Wrong Answer

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

tmp = B // (A - 1)

if B == 1:
    print(0)
elif  tmp * (A - 1) + 1 >= B:
    print(tmp)
else:
    print(tmp + 1)

Submission status: Wrong Answer

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

tmp = B // (A - 1)

if tmp * (A - 1) + 1 >= B:
    print(tmp)
else:
    print(tmp + 1)

Submission status: Wrong Answer

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

tmp = B // (A - 1)

if tmp * (A - 1) >= B:
    print(tmp)
else:
    print(tmp + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

# 整数複数個
A, B = map(int, input().split())

# Bの条件分岐
if B == 0:
  C = 0
elif A == B:
  C = 1
else:
  C = A//B + 1

print(C)

Submission status: Wrong Answer

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

# 整数複数個
A, B = map(int, input().split())

C =B//A + 1
print(C)

Submission status: Wrong Answer

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]

# 整数複数個
A, B = map(int, input().split())

C = A//B + 1
print(C)

Submission status: Wrong Answer

Solution code:
a, b= map(int, input().split())
s = 0
while a <= b:
    s += 1
    if a == b:
        break;
    elif s > 1:
        a = 2*a + 1
        print(a)
print(s)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

c = 0
s = 0
while s < b:
	c += 1
	if c == 1:
		s += a
	else:
		s += a-1
print (c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def plug(num_hole, desire):
    a = desire % num_hole
    if a >= 1:
        return print(a + 1)
    else:
        return print(1)


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

Submission status: Wrong Answer

Solution code:
a,b=[int(x) for x in input().split()]
 
c=1
ans=0
while True:
  if c>=b:
    break
  else:
    c+=a
    ans+=1

Submission status: Wrong Answer

Solution code:
def main():
    A, B = map(int, input().split())
    if B == 1:
        print("0")
        quit()
    print((B - A) // (A - 1))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math


def main():
    A, B = map(int, input().split())
    if B == 1:
        print("0")
        quit()
    print(math.ceil((B - A) / (A - 1)))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

res = 1
b -= a
while b > 0:
    res += 1
    b -= a-1
print(res)

Submission status: Wrong Answer

Solution code:
from math import ceil

a, b = map(int, input().split())
print(ceil(b/a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
from math import ceil


def solve(A: int, B: int):
    ans = 0
    outlet = 1
    while B > outlet:
        outlet += A - 1
        ans += 1
    if ans == 0:
        ans = 1
    print(ans)
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
from math import ceil


def solve(A: int, B: int):
    ans = 1
    if not A >= B:
        outlet = A
        for i in range(100):
            outlet += A - 1
            ans += 1
            if outlet >= B:
                break
    print(ans)
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
from math import ceil


def solve(A: int, B: int):

    print(ceil(B / A))
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

count = 1
if b == 0:
    print("0")
    exit()
while True:
    if count ==1:
        temp = a * count 
    else:
        temp = a + ((a-1) * (count -1))
    if temp >= b:
        print(count)
        exit()
    else:
        count += 1

Submission status: Wrong Answer

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

count = 1
while True:
    if count ==1:
        temp = a -1 
    else:
        temp = a + ((a-1) * (count -1))
    if temp >= b:
        print(count)
        exit()
    else:
        count += 1

Submission status: Wrong Answer

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

count = 1
while True:
    if count ==1:
        temp = a * count 
    else:
        temp = a + ((a-1) * (count -1))
    if temp >= b:
        print(count)
        exit()
    else:
        count += 1

Submission status: Wrong Answer

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

count = 1
while True:
    if count ==1:
        temp = a * count 
    else:
        temp = a + (a-1) * count -1
    if temp >= b:
        print(count)
        exit()
    else:
        count += 1

Submission status: Wrong Answer

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

count = 1
while True:
    temp = a * count 
    if temp >= b:
        print(count)
        exit()
    else:
        count += 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def sum(A, B):
  n = 1
  while True:
    if n >= (B-1)/(A-1):
      return n
    else:
      n += 1

num = input().split(' ')
A = int(num[0])  #2<=A<=20
B = int(num[1])    #1<=B<=20

n = sum(A,B)
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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=(int(x) for x in input().split())
i = 1
c = i*a
if a == b:
    print(1)
else:print(i+1)
if a > b:
    print(1)
else:
    while c > b:
        i += 1
    print(i)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
i = 1
c = i*a
while c > b:
    i += 1
if a == b:
    print(1)
else:print(i+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: <encoding name> -*-

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

Submission status: Wrong Answer

Solution code:
# -*- coding: <encoding name> -*-

a, b = map(int, input().split())
count, outlet = 0, 1
while outlet == b:
	count += 1
	outlet += (a - 1)
print(count)

Submission status: Wrong Answer

Solution code:
# -*- coding: <encoding name> -*-

a, b = map(int, input().split())
count, outlet = 0, 1
while outlet == b:
	count += 1
	outlet += a - 1
print(count)

Submission status: Wrong Answer

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

d = ((b-1)//a) + 1

print(d)

Submission status: Wrong Answer

Solution code:
# a;電源タップの口数
# b;拡張したい差し込み口数
a, b = map(int, input().split())
# 差し込み口数
c = 1

d = (b-1)//a
e = (b-1)%a

if e == 1:
    d = d - 1

print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# a;電源タップの口数
# b;拡張したい差し込み口数
a, b = map(int, input().split())
# 差し込み口数
c = 1

d = b // (a-1)
e = b % (a-1)

if e == 1:
    d = d - 1

print(d)

Submission status: Wrong Answer

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

if b == 1:
  print(0)
  exit()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if b == 1:
  print(0)
  exit()

if a >= b:
  print(1)
else:
  b -= a
  print(2 + b//(a-1))

Submission status: Wrong Answer

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

if b == 1:
  print(0)
  exit()

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

Submission status: Wrong Answer

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

if b == 1:
  print(0)
  exit()

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

Submission status: Wrong Answer

Solution code:
def invr():
    return(map(int, input().split()))


a, b = invr()
res = int(b/a)
if b % a > 0:
    res += 1
print(res)

Submission status: Wrong Answer

Solution code:
def invr():
    return(map(int, input().split()))


a, b = invr()
res = int(b/a)
if b % a != 0:
    res += 1
print(res)

Submission status: Wrong Answer

Solution code:
def invr():
    return(map(int, input().split()))


a, b = invr()

print(int(b/a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
if y <= x:
    print(1)
else:
    cnt = 1
    total = x
    while True:
        total += (x - 1)
        cnt += 1
        if total >= y:
            break
    print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
# a;電源タップの口数
# b;拡張したい差し込み口数
a, b = map(int, input().split())
# 差し込み口数
c = 1

d = b // a
e = b % a

if e == 1:
    d = d + 1

print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

A, B = LI()

flag = 1
ans = 1
while flag:
    if B == 1:
        ans = 0
        break
    elif A >= B:
        break
    else:
        A += A - 1
        ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import sys

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

A, B = LI()

flag = 1
ans = 1
while flag:
    if A >= B:
        break
    else:
        A += A - 1
        ans += 1

print(ans)

Submission status: Wrong Answer

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

x = A
ans = 1
while(x < B):
    ans += 1
    x += (A - 1)
print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import math

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

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

print(math.ceil(ans))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
tap_socket_num, required_socket = map(int, input().split())


if required_socket <= 1:
    print(0)
elif required_socket <= tap_socket_num:
    print(1)
else:
    n = (required_socket - tap_socket_num)%(tap_socket_num - 1)
    if n == 1:
        print((required_socket - tap_socket_num)//(tap_socket_num - 1))
    else:
        print((required_socket - tap_socket_num)//(tap_socket_num - 1) + 1)

Submission status: Wrong Answer

Solution code:
tap_socket_num, required_socket = map(int, input().split())

if required_socket <= 1:
    print(0)
elif required_socket <= tap_socket_num:
    print(1)
else:
    if required_socket%(tap_socket_num-1) == 1:
        print(required_socket//(tap_socket_num-1))
    else:
        print(required_socket//(tap_socket_num-1)+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1,21):
  if i*(A-1)+1 >= B:
    print(i)
    sys.exit()

Submission status: Wrong Answer

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

for i in range(1,21):
  if A*i >= B:
    print(i)
    sys.exit()

Submission status: Wrong Answer

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

if A != B:
  print(1+(B//A))
else:
  print(B//A)

Submission status: Wrong Answer

Solution code:
from math import ceil

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

cnt = ceil(B / A + 1)

print(cnt)

Submission status: Wrong Answer

Solution code:
from math import ceil

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

cnt = ceil(B / A)

print(cnt)

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())

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

Submission status: Wrong Answer

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

cnt = 1
tmp = 0
ans = 0
while True:
    if b == 1:
        print(ans)
        break
    if cnt >= 2:
        tmp += a - 1
    else:
        tmp += a
    cnt += 1
    ans += 1
    if tmp >= b:
        break

print(ans)

Submission status: Wrong Answer

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

cnt = 1
tmp = 0
ans = 0
while True:
    if cnt >= 2:
        tmp += a - 1
    else:
        tmp += a
    cnt += 1
    ans += 1
    if tmp >= b:
        break

print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
cur = A
cnt = 1
if B == 1:
    print(0)
while True:
    if cur < B:
        cur += A-1
        cnt += 1
    else:
        break
print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
cur = A
cnt = 1
while True:
    if cur < B:
        cur += A-1
        cnt += 1
    else:
        break
print(cnt)

Submission status: Wrong Answer

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

print(-1*(-1*B // A))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(n)

Submission status: Wrong Answer

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

if a - b > 0:
    print(0)
    quit()

n = 1
while a*n-(n-1) < b:
    n += 1

print(n)

Submission status: Wrong Answer

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

if a - b >= 0:
    print(0)
    quit()

n = 1
while a*n-(n-1) < b:
    n += 1

print(n)

Submission status: Wrong Answer

Solution code:
import math
A, B = [int(i) for i in input().split()]
print(math.ceil((B-1)//(A-1)))

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if B == 1:
    print(0)
else:
    if B%A == 0:
        print(((B)//A))
    else:
        print(((B-1)//A) + 1)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if B == 1:
    print(0)
else:
    if (B-1)%A == 0:
        print(((B-1)//A))
    else:
        print(((B-1)//A) + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if count == 0:
    count += a
    ans += 1

while count < b:
    count += (a-1)
    ans += 1

print(ans)

Submission status: Wrong Answer

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

if count == 0:
    count += a
    ans += 1

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

print(ans)

Submission status: Wrong Answer

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


if count == 0:
    count += a
    ans += 1

while True:
    if count < b:
        count += a-1
        ans += 1
    else:
        break

print(ans)

Submission status: Wrong Answer

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

count = math.ceil(b/a)
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
count=1
A_sample=A

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def resolve():
    x,y = map(int,input().split())
    ans = (y-1) // x + 1
    print(ans)
    
resolve()

Submission status: Wrong Answer

Solution code:
from sys import exit

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

tap = a
ans = 1
while 1:
    if b <= tap:
        print(ans)
        exit()

    ans += 1
    tap += a-1

Submission status: Wrong Answer

Solution code:
input = input().split(" ")
a, b = int(input[0]), int(input[1])
ans = -((-b-1) // (a-1))
print(ans)

Submission status: Wrong Answer

Solution code:
input = input().split(" ")
a, b = int(input[0]), int(input[1])
ans = -(-b // a)
print(ans)

Submission status: Wrong Answer

Solution code:





inp = input().split()
for a in inp:
    out = int(a)
inp.pop(1)
for a in inp:
    i = int(a)
    
n = 1
while (i*n-(n-1)) < out:
    n += 1

else:
    print(n)

Submission status: Wrong Answer

Solution code:
A, B = (int(x) for x in input().split())

S = A
num  = 1
i = 1

if (B == 1):
    print("0")
elif (A >= B):
    print("1")
else:
    while(S < B):
        A = A * (i + 1)
        S = A - i
        num += 1
        i += 1
    print(num)

Submission status: Wrong Answer

Solution code:
A, B = (int(x) for x in input().split())

S = A
num  = 1
i = 1

if (B == 1):
    print("0")
elif (A >= B):
    print("1")
else:
    while(S < B):
        A = A * 2
        S = A - i
        num += 1
        i += 1
    
    print(num)

Submission status: Wrong Answer

Solution code:
A, B = (int(x) for x in input().split())

S = A
num  = 1
i = 0

if (B == 1):
    print("0")
elif (A >= B):
    print("1")
else:
    while(S < B):
        i = 1
        A = A * 2
        S = A - i
        num += 1
        i += 1
    
    print(num)