TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split(" "))
if b//a == b/a:
  print(b//a+1)
else:
  print(b//a)

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())

ans = 0

if (B-A)//(A-1) <= 0 :
	ans += 1
	print(ans)
else :
	ans += 2
	print(ans)

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

ans = 0

if B <= A :
	print(ans)

elif (B-A)//(A-1) == 0 :
	ans += 1
	print(ans)
else :
	ans += 2
	print(ans)

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

ans = int()

if B <= A :
	print(1)

elif (B-A)//(A-1) == 0 :
	ans += 1
	print(ans)
else :
	ans += 2
	print(ans)

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

ans = int()

if B <= A :
	print(1)

else :
	ans = ((B-1)//(A-1))+1
	print(ans)

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

ans = 0

if B = 1
print(0)

elif B <= A :
	print(1)

elif (B-A)%(A-1) <= 0 :
	ans = (B-A)//(A-1)+1
	print(ans)
elif (B-A)%(A-1) >= 1 :
	ans = (B-A)//(A-1)+2
	print(ans)

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

ans = 0

if B == 1 :
	print(0)

elif B <= A :
	print(1)

elif (B-A)%(A-1) <= 0 :
	ans = (B-A)//(A-1)+1
	print(ans)
elif (B-A)%(A-1) >= 1 :
	ans = (B-A)//(A-1)+2
	print(ans)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())

if b==1:
    tmp = 0

else:
    tmp = 1

    while tmp*a-tmp+1 < b:
    tmp += 1

print(tmp)

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

if b==1:
    tmp = 0

else:
    tmp = 1

    while tmp*a-tmp+1 < b:
        tmp += 1

print(tmp)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())
C = (B-1)/(A-1)
r = (B-1)%(A-1)

if r == 0:
  print(C)
else:
  print(C+1)

import math
a,b=map(int,input().split())
print(math.ceil((b-1)/(a-1)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int, input().split())
print((b-0.1)//a+1)


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

import math
a,b = map(int, input().split())
print(math.ceil((b-1)/(a-1)))



Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
cnt = 1
sum_a = a
if a == b:
  print(cnt)
  return 0
while(1):
  if sum_a >= b:
    break
  sum_a = sum_a + a - 1
  cnt += 1
print(cnt)

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

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

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A = int(input())
B = int(input())

for i in range(25):
  if B <= A + (A-1)*i:
    print(i + 1)
    break


A = int(input())
B = int(input())
int i = 0

for i in range(25):
  if B <= A + (A-1)*i:
    print(i + 1)
    break
  else:


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

if B ==1:
  print(0)

else:
  for i in range(19):
    if B <= A + (A-1)*i:
      print(i + 1)
      break


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split())
i = 1
while a*i-(i-1) < b:
  i += 0
print(i)

a,b = map(int,input().split())
while True:
  for i in range(20):
    if a*i-(i-1) >= b:
      print(i)
      exit()


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = list(map(int,input().split()))
B - A = C
if C % (A-1) == 0:
  print(C//(A-1)+1)
else:
  print(C//(A-1)+2)

A,B = list(map(int,input().split()))
C = B - A
if C % (A-1) == 0:
  print(C//(A-1)+1)
else:
  print(C//(A-1)+2)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b =map(int,input())
print((b-1)//(a-1))


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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())

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


a, b =map(int,input().split())
s = a-1
t =b -1
print((t+s-1)//2

a, b =map(int,input().split())
s = a-1
t =b -1
print((t+s-1)//2)



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

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


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
line = input().split(" ")
 
n = 0
 
while n >= 0:
	if n*(int(line[0])-1) >= int(line[1])-int(line[0]):
		break
	else:
		n += 1
 
input(str(n+1))

ab = input().split(" ")

n = 0

while n >= 0:
	if n*(ab[0]-1) >= ab[1]-ab[0]:
		break
	else:
		n += 1

input(n+1)

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

cnt = 1
k = a

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

if b == 1:
  print(0)
else:
  print(cnt)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

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

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

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

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

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

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

if B == 1:
    print(0)
    exit()
    
for i in range(1, 400):
    count = count + A - 1
    if count >= B:
        print(i)
        exit()

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
stdin=sys.stdin

ns = lambda:stdin.readline().rstrip()
ni = lambda:int(stdin.readline().rstrip())
nm = lambda:map(int,stdin.readline().split())
nl = lambda:list(map(int,stdin.readline().split()))

A,B=nm()

print(((B-1)//(A-1)+1 if B>1 else 0))

import sys
stdin=sys.stdin

ns = lambda:stdin.readline().rstrip()
ni = lambda:int(stdin.readline().rstrip())
nm = lambda:map(int,stdin.readline().split())
nl = lambda:list(map(int,stdin.readline().split()))

A,B=nm()

print(((B-1)//(A-1)+((B-1)%(A-1)>0) if B>1 else 0))


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int, input().split())

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


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

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
zA, B = map(int, input().split())
 
ans = 0
consent = 1
 
while consent < B:
    ans += 1
    consent -= 1
    consent += A
print(ans)

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

K = 1
ans = 0

while(K < B):
	K -= 1
	L += A
	ans += 1

print(ans)

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

ans = 0
consent = 1

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


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

ans = 0
consent = 1

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys
a,b=map(int,input().split())
if b==1:
  print(0)
if 1<b<=a:
  print(1)
for i in range(1,6):
  for j in range(1,(a**i)+1):
    if (a**i)-(j-1)+(j-1)*a<b<=(a**i)-j+j*a:
      print((a**i)+j)
      sys.exit()
    


a,b=map(int,input().split())
if b==1:
  print(0)
if 1<b<=a:
  print(1)
if a<b<=a**2:
  print(2)
if a**2<b<=a**3:
  print(3)
if a**3<b<=a**4:
  print(4)
if a**4<b<=a**5:
  print(5)


a,b=map(int,input().split())
if b==1:
  print(0)
if 1<b<=a:
  print(1)
for i in range(a):
  if (a-i+i*a)<b<=(a-(i+1)+(i+1)*a):
    print(1+(i+1))
for i in range(a**2):
  if ((a**2)-i+i*a)<b<=((a**2)-(i+1)+(i+1)*a):
    print(1+a+(i+1))
for i in range(a**3):
  if ((a**3)-i+i*a)<b<=((a**3)-(i+1)+(i+1)*a):
    print(1+a+(a**2)+(i+1))
for i in range(a**4):
  if ((a**4)-i+i*a)<b<=((a**4)-(i+1)+(i+1)*a):
    print(1+a+(a**2)+(a**3)+(i+1))
for i in range(a**5):
  if ((a**5)-i+i*a)<b<=((a**5)-(i+1)+(i+1)*a):
    print(1+a+(a**2)+(a**3)+(a**4)+(i+1))
  
 
 
 



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import math

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

print(math.ceil((B+A-1)/A))

import math

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


ans = 0
outlet = 1
while outlet <B:
    outlet += A
    ans += 1

    print(ans)

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

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

import math

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = [int(s) for s in input().split()]
p = 0
count = 1
while True:
  p += 1
  count += a - 1
  if a >= b:
    print(p)
    break

a,b = [int(s) for s in input().split()]
p = 0
count = 1

while True:
  if b == 1:
    print(p)
    break
  p += 1
  count += a - 1
  if count >= b:
    print(p)
    break

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A = int(input())
B = int(input())
kuchi = 1
taps = 0 
while kuchi < B:
    taps +=1
    kuchi +=A-1
print(taps)

A = int(input())
B = int(input())
kuchi = 1
taps = 0 
while kuchi < B:
    taps +=1
    kuchi +=A-1
print(taps)
    
    


A,B = map(int, input().split(' '))
kuchi = 1
taps = 0 
while kuchi < B:
    taps +=1
    kuchi +=A-1
print(taps)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B = list(map(int,input().split()))
dengen = 1
count = 0
while dengen < B:
  new_dengen = dengen-1+A
  dengen = new_dengen
  count +=1

A,B = list(map(int,input().split()))
dengen = 1
count = 0
while dengen < B:
  new_dengen = dengen-1+A
  dengen = new_dengen
  count +=1
print(count)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int, input().split())
N = 0
ans = 0
while N <= B:
  N += A-1
  ans += 1
print(ans)


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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
count=1
x=a
if b > 1:
  while X < b:
    x = x + (a-1)
    count += 1
  print(count)
else:
  print(0)

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A = int(A)
B = int(B)
ans = 0
while B > (A-1)*ans + A :
  ans += 1
print(ans)

A,B = map(int,input().split())
ans = 0
while B>(A-1)*ans+A:
  ans+=1
print(ans)

A,B = map(int,input().split())
ans = 0
if B>1:
    while B>(A-1)*ans+A:
        ans+=1
    print(ans+1)
else:
    print(ans)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
print((a+b-1)//b)

a,b=map(int,input().split())
if b==1: print(0); exit();
for i in range(1,1000):
  if b<=a*i-(i-1):
    print(i)
    exit(0)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())
sum = 1
for i in range(A+1):
  sum -= 1
  sum += A
  if sum >= B:
    break
print(i)

A,B = map(int,input().split())
sum = 1
c = 0
if B == 1:
  print(0)
else:
  while sum < B:
    sum = sum + A -1
    c += 1
  print(c)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
num_power_taps, target_tap_num = map(int, input().split())

if target_tap_num == 1:
  print(0)
else:
  print(-(target_tap_num - 1) // (num_power_taps - 1))

num_power_taps, target_tap_num = map(int, input().split())

if target_tap_num == 1:
  print(0)
else:
  print(-(-(target_tap_num - 1) // (num_power_taps - 1)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A = int(input())
B = int(input())

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

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

k = 0
if B == 1:
    print(0)
else:
    while True:
        k += 1
        if A*k -k +1 >= B:
            break
    print(k)



Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split());
ans = ((b-1)-1)/(a-1) + 1 if b > a else 0;
print(ans);

a, b = map(int, input().split())
ans = (((b-1)-1) // (a-1) + 1) if b > 1 else 0
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
 
if b == 0:
    return 1
else:
    inpu = 1
    while b > (a -1) * inpu + a:
        inpu +=1
    print(inpu + 1)

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

if b == 0:
	return 1
else:
	inpu = 1
    while b > (a -1) * inpu + a:
    	inpu +=1
    print(inpu + 1)

def solution(a,b):
    inpu = 1
    while b > a * inpu:
        inpu += 1
  
    print(inpu)

def solution(a,b):
   if a> b:
        return 1
   else:
        inpu = 1
        while b > (a -1) * inpu + a:
            inpu +=1
        print(inpu + 1)

def solution(a,b):
   if a>= b:
        return 1
   else:
        inpu = 1
        while b > (a -1) * inpu + a:
            inpu +=1
        print(inpu + 1)

k = 1
ans = 0
 
if b == 1:
  print(0)
else:
  while k<b:
    k += a-1
    ans += 1
  print(ans)

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

def solution(a,b):
   if a>= b:
        return 1
   else:
        inpu = 1
        while b > (a -1) * inpu + a:
            inpu +=1
        print(inpu + 1)

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

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
x = b % a
if x==0:
    print(b/a)
else:
    print((b/a) + 1)

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

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



Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
 
a, b = map(int, input().split())
add_value = 0
 
if a >= 20 and a <= 2:
	print("0")
    sys.exit()
if b >= 20 and b <= 1:
  	print("0")
    sys.exit()
 
while True:
        add_value += 1
        a *= add_value
        if a >= b:
            break

import sys

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

if a >= 20 and a <= 2:
    if b >= 20 and b <= 2:
        while True:
            add_value += 1
            a *= add_value
            if a >= b:
                break
else:
    sys.exit()


print(add_value)

import sys

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

if a >= 20 and a <= 2:
    if b >= 20 and b <= 1:
        while True:
            add_value += 1
            a *= add_value
            if a >= b:
                break
else:
    sys.exit()


print(add_value)

import sys

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

print(add_value)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int, input().split())

for i in range(2, 20):
    if(A ** i >= B):
        n = i
        break
            
print(i)


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

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


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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int, input().split())
count, outlet = 0, 1
while count >= B:
  outlet += 1
  outlet += A
  count += 1
print(count)

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


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

A, B = map(int, input().split())
count, outlet = 0, 1
while outlet < B:
  outlet -= 1
  outlet += A
  count += 1
print(count)


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(input, int().split())
print((B-1)//(A-1))


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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int, input().split())
ans = 0
if B == 1:
    print(0)
    exit()
for i in range(1, 200):
    if i * A >= B:
        break

    ans += 1

print(ans)

A, B = map(int, input().split())
ans = 1
if B == 1:
    print(0)
    exit()
for i in range(1, 200):
    if i * A - (i - 1) >= B:
        break

    ans += 1

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B=map(int,input().split())
C=1
if B==1:
    Ans=0
else:
    for i in range(20):
        C=C+(A-1)*(i+1)
        if C>=B:
            Ans=i+1
            break
        else:
            pass

print(Ans)

A,B=map(int,input().split())
C=1
if B==1:
    Ans=0
else:
    for i in range(20):
        D=C+(A-1)*(i+1)
        if D>=B:
            Ans=i+1
            break
        else:
            pass

print(Ans)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
kuti = 1
k = 0
for i in range(100):
    if kuti>=B:
        print(k)
        break
    elif B == 1:
        print(0)
    else:
        kuti += A-1
        k += 1

A,B = map(int,input().split())
kuti = 0
k = 0
for i in range(100):
    kuti += A-1
    k += 1
    if kuti >= B:
        print(k)
        break

A,B = map(int,input().split())
kuti = 0
k = 0
for i in range(100):
    kuti += A-3
    k += 1
    if kuti >= B:
        print(k)
        break

A,B = map(int,input().split())
kuti = 0
k = 0
for i in range(100):
    if kuti >= B:
        print(k)
        break
    else:
        kuti += A-1
        k += 1

A,B = map(int,input().split())
kuti = 0
k = 1
for i in range(100):
    if A == B:
        print(1)
        break
    else:
        kuti += A-1
        k += 1
    if kuti >= B:
        print(k)
        break

A,B = map(int,input().split())
now = 1
ans = 0
for i in range(10**5):
    if now >= B:
        print(ans)
        break
    else:
        now += A-1
        ans += 1

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = list(map(int, input().split()))

for x in range(10):
	if (A-1)*x + 1 >= B:
      print(x)
      break


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

for x in range(10):
	if (A-1)*x + 1 == B:
      print(x)
      break


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

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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())
if(B == 1):
    print(0)
elif((B-1)%(A-1) == 0):
    print((B-1)//(A-1)
else:
    print(B//A+1)

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
number = input().split(" ")
A = int(number[0])
B = int(number[1])
if B == 1:
    print(0)
elif A >= B:
    print(1)
else:
    x = (B-A)//(A-1)
    if x == 0:
        print(x+1)
    else:
        print(x+2)

number = input().split(" ")
A = int(number[0])
B = int(number[1])
if B == 1:
    print(0)
elif A >= B:
    print(1)
else:
    x = (B-A)//(A-1)
    y = (B-A)%(A-1)
    if y == 0:
        print(x+1)
    else:
        print(x+2)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int, input().split())
if B == 1:
  print("0")
else:
  ans = 0
  while (A-1)*ans + A << B:
    ans += 1
  print(ans)  

A,B = map(int, input().split())
print((b-1)//(a-1))

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


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

Verdicts: Time Limit Exceeded

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split())

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

a,b = map(int,input().split())
soc=1
for i in range(1,21):
	if i*(a-1)+1 >= b:
		soc = i
		break
if b==1:
	soc=0

print(soc)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int,input().split())
ans = 0
while ((a-1)*ans < b):
  ans++
print(ans)

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


a, b = map(int,input().split())
ans = 0
plug = 1
while (plug < b):
  plug += a-1
  ans += 1
print(ans)


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A = int(input())
B = int(input())

x,cnt =1,0

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

print(cnt)



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

x,cnt =1,0

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

print(cnt)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
 
k = a
ans = 0
 
if b == 1:
  print(0)
else:
  while k<b:
    k += a-1
    ans += 1
  print(ans)

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int,input().split())

x = 1

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

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

    


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int, input().split())
count = 0
if b == 1:
  print(0)
else:
  while True:
    if b <= (a-1)*count + a:
      break
    count += 1
  print(count)


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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import math

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

import math

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int, input().split())
c = int(b/a)
print(c)

a,b = map(int, input().split())
plag = 1
count = 0

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

print(count)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int, input().split())

outlet = A

if A == B:
    print(1)
    
else:
    count = 1
    while outlet <= B:
        count += 1
        outlet += A-1
        ans = count
        break
    print(ans)

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

if A == B:
    anss=1
    print(anss)
    
else:
    count = 0
    outlet = A
    while outlet < B + A -1 :
        count += 1
        outlet += A-1
    print(count)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B=map(int,input().split())
n=0
while n<B:
    if n==0:
        n+=A
    else:
        n+=A-1
print(n)


A,B=map(int,input().split())
n=1
f=0
while n<B:
    n+=A-1
    f+=1
print(f)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = input()
a = int(a)
b = int(b)

x = 1
num = 0
while True:
    x += a - 1
    num += 1
    if x >= b:
        break
        
print(num)

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

x = 1
num = 0
while True:
    if b == 1:
        num = 0
        break
    x += (a - 1)
    num += 1
    if x >= b:
        break
        
print(num)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import math
a,b = list(map(int, input().split())
if a > b:
	print(1)
else:
	print(math.ceil(b/a))

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import math
A, B = [int(i) for i in input().split()]
c = (B / A) + 1
print(math.floor(c) - 1)

import math
A, B = [int(i) for i in input().split()]
ans = 0
outlet = 1
while (outlet < B):
  outlet -= 1
  outlet += A
  ans += 1
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
l=list(map(int,input().split()))
a=l[0]
b=l[1]
nums=[i for i in range(20)]
for n in nums:
  if(b<=a*(i+1)-i):
    print(i+1)
    break
  

l=list(map(int,input().split()))
a=l[0]
b=l[1]
c=a-1
cnt=1
if(a>b and b==1):
  print(0)
else:
  while a<b:
    a=a+c
    cnt+=1
  print (cnt)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n, m = map(int, input().split())
cnt = 1
s = n
while(n < m):
  s += n-1
  cnt += 1
print(cnt)

a, b = map(int, input().split())
now = 1
ans = 0
while(now < b):
  now += a-1
  ans += 1
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
answer = 0
plug = 1
while plug > b:
  plug += a - 1
  answer += 1
print(answer)
  

a, b = map(int, input().split())
answer = 0
tap = 1
while t < b:
    t += a - 1
    answer += 1

print(answer)

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n1 = list(map(int, input().split()))
n2 = n1[1]//(n1[0] - 1)
n3 = n1[1]%(n1[0] - 1)
if n2 >= n3:
    a1 = 1
elif n3 < 2:
    a1 = n2
else:
    a1 = n2 + 1
print(a1)

n1 = list(map(int, input().split()))
n2 = (n1[1] - 1)//(n1[0] - 1)
n3 = (n1[1] - 1)%(n1[0] - 1)
if n3 > 0:
    a1 = n2 + 1
else:
    a1 = n2
print(a1)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
cnt = 1
tp = a

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

print(cnt)


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

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

print(cnt)

a, b = map(int, input().split())
cnt = 0
tp = 0

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

print(cnt)


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

t = 1
cnt = 0

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


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
count=0
if b%a==0:
  print a//b
else:
  print a//b+1


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

a,b=map(int,input().split())
count=0
ans=1
if b=1:
  print("0")
else:
  while ans<b:
    ans=ans+a-1
    count+=1
  
  print(count)


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B=map(int,input().split())

count=0

while count*A+A-1<B:
    count+=1

print(count)

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

count=0

while count*A-count+1<B:
    count+=1

print(count)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split())

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

print(count)


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

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

print(count)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())

if B == 1:
  return 0

if B <= A:
  return 1

B -= A
ans = 1

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


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

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

if B <= A:
  print(1)
  exit()

B -= A
ans = 1

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


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

if B == 1:
  return 0

if B <= A:
  return 1

B -= A
ans = 1

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


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

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

if B <= A:
  print(1)
  exit()

B -= A
ans = 1

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


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
c = a-1
d = b-1
x = c//d
if c%d != 0:
    print(x+1)
else:
    print(x)

a, b = map(int, input().split())
c = a-1
d = b-1
x = d//c
if d%c != 0:
    print(x+1)
else:
    print(x)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B=map(int,input().split());tmp=0;c=1

tmp+=A
for i in range(0,20):
    tmp+=(A-1)*c
    if tmp>=B:
        break
    c+=1
print(c)

A,B=map(int,input().split());tmp=0;c=1

tmp+=A
for i in range(0,40):
    if tmp>=B:
        break
    tmp+=(A-1)
    c+=1
    print(A,B,tmp,c)
print(c)

A,B=map(int,input().split()); tmp=1; c=0

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A, B = map(int, input().split())

n = 1
c = 0

while n < B:
	n = n + A -1
	c = c+1
 
if B != 1:
	print(c)
else
	print("0")
  

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

n = 1
c = 0

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

print(c)

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

n = 1
c = 0

if B==1 :
  print("0")
else :
	while n < B:
		n = n + A -1
		c = c+1
    print(c)

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

n = 1
c = 0

while n < B:
	n = n + A -1
#	print(n)
	c = c+1

print(c)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted