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

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

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

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

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

B -= A
cnt = 1

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

print(cnt)

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

if B == 1:
	cnt = 0
else: cnt = 1

B -= A


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

print(cnt)

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(11):
    c = c-1 + a
    if c >= b:
      ans = i
      break
print(ans)

a,b = map(int, input().split())
c = 1
ans = 0
if b == 1:
  ans = 0
else:
  for i in range(21):
    c = c-1 + a
    if c >= b:
      ans = i + 1
      break
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):
#include <bits/stdc++.h>

using namespace std;

int main() {
	int A, B; cin >> A >> B;
	int ans = 0;
	int outlet = 1;
	while (outlet < B) {
		--outlet;
		outlet += A;
		++ans;
	}
	cout << ans << endl;
}

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=input().strip().split(' ')
a,b=[int(a),int(b)]
print((a//b)+1)

a,b=input().strip().split(' ')
a,b=[int(a),int(b)]
print((a+b-3)//(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 = int(input())
b = int(input())
if a>= b:
  ans=1
else:
  c = b-a
  d=c//a+1
  ans=d+1
print(ans)

a,b = map(int, input().split())
c=a-1
d=b-1
if d%c==0:
    ans=d//c
else :
    ans=d//c +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):
a, b = map(int, input().split())
for i in range(a):
  if (4 + 3 * i) >= b:
    ans = i
    break
print(i)

a, b = map(int, input().split())
if b ==1:
  print(0)
else:
  for i in range(100):
    if (a + (a-1) * i) >= b:
      break
  print(i+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())

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

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

d = a-1
ans = 0
while d*ans + 1 < b: 
    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):
# -*- coding: utf-8 -*-

def main():
    a,b=map(int, input().split())  
    ans = 1
    if b == 1:
        print(0)
        break
    else:
        while(True):
            elif a < b:
                b = b - a
                ans += 1
            else:
                print(ans)
                break     

if __name__ == '__main__':
    main()

# -*- coding: utf-8 -*-

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

if __name__ == '__main__':
    main()

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())
x = 1
while True:
    if (a - 1) * (x -  1) + a <= b:
        x += 1
    else:
        print(x)
        break

a,b = map(int, input().split())
x = 0
while True:
    if (a - 1) * (x -  1) + a < b:
        x += 1
    else:
        print(x)
        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, B = map(int,input().split())
Socket = 0
kuchi = 1

while kuchi < B:
    Socket += 1
    kuchi += (A - 1)

print(kuchi)

A, B = map(int,input().split())
Socket = 0
kuchi = 1

while kuchi < B:
    Socket += 1
    kuchi += (A - 1)

print(Socket)

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
kuti=a

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

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

cnt=1
kuti=a

while kuti<b:
    cnt+=1
    kuti += a-1
   
if b==1:
    cnt=0

print(cnt)

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 = map(int, input().split())
print(math.ceil((B - A) / (A - 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().strip().split())

outlet = 1
taps = 0
while outlet < b:
    taps += 1
    outlet += a - 1

print(outlet)


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

outlet = 1
taps = 0
while outlet < b:
    taps += 1
    outlet += a - 1


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

outlet = 1
taps = 0
while outlet < b:
    taps += 1
    outlet += a - 1

print(taps)


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())
ans = int((b-1)/(a-1))+1
print(ans)


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


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


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

a,b = (int(i) for i in input().split())
print((b-2)//(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):
# -*- coding: <encoding name> -*-

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

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

import math
a, b = map(int, input().split())
# range = d * 2 + 1
# c == 1 + a * n - n >= b
print(math.ceil((b - 1) / (a - 1))

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

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

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

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

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

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

Verdicts: Wrong Answer

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

if A >= B:
    ans = 1
else:
    if B % A > 0:
        ans = B // (A - 1) + 1
    else:
        ans = B // (A - 1)

print(ans)

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

if A >= B:
    ans = 1
else:
    if B % (A - 1) > 0:
        ans = B // (A - 1) + 1
    else:
        ans = B // (A - 1)

print(ans)

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

if B == 1:
    ans = 0
elif A >= B:
    ans = 1
else:
    if (B - 1) % (A - 1) > 0:
        ans = (B - 1) // (A - 1) + 1
    else:
        ans = (B - 1) // (A - 1)

print(ans)

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())
for i in range(100):
    if (A*i-i)>=B:
        print(i)
        break

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

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

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())
i = 1
n = 0
while(i>b):
  i=i-1+a
  n+=1
print(n)

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

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

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

import math
a,b = map(input().split())
print(math.ceil(b%a))

# B - Power Socket
def main():
    a, b = map(int, input().split())
    cnt = 1
    ans = 0
    for i in range(20):
        if cnt >= b:
            print(ans)
            exit()
        else:
            cnt = a + (a-1) * i
            ans += 1

if __name__ ==  "__main__":
    main()

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())
     
    if A >= B:
      print(1)
      
    else:
     
      for i in range(1,21):
        if ((A-1) * i + A ) >=  B:
          print(i+1)
          break

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


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())
A=5
B=2
cnt=1
cycle=0
while (cnt < B):
  cnt -= 1
  cnt += A
  cycle += 1
print(cycle)


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


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
while(B>A*(N-1)+1):
  N+=1

print(N)
#B<=A*(N-1)+1

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

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

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

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())
t = 0
s = 1
while b <= s:
    s += a-1
    t+=1

print(t)


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

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 = map(int, input().split())
print(math.ceil(b-1)/(a-1))

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

import math
a, b = map(int, input().split())
print(math.ceil((b-1)/(a-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):
a, b = map(int,input().split())
print((b-2)//7 + 1)

a, b = map(int,input().split())
print((b-2)//(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):
import math
lines = input().split(" ")
 
A = int(lines[0])
B = int(lines[1])
result = 0
count = 0

if B == 1 or B == 2:
    print(1)
elif A == 20:
    print(1)
elif A >= B:
    print(1)
else:
    while result < B:
        result = result + A - 1
        count += 1
    print(count)

import math
lines = input().split(" ")
 
A = int(lines[0])
B = int(lines[1])
C = A - 1
result = 0
 
if B == 1:
  print(0)
elif B == 2:
    print(1)
elif A == 20:
    print(1)
elif A >= B:
    print(1)
else:
    result += A
    count = 1
    while result < B:
        result += C
        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 = B % A
if A >= B:
  print(1)
  exit()
  
elif c = 0:
  print( B//A)
  
elif c >0:
  print((B//A) + 1)

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

if A>=B:
  print(1)
  exit()
else:
  print(math.floor(B//A))


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

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


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())
c = b % a
if (b > 1) && (b < a):
    print(1)
elif b == 1:
    print(0)
else:
    print(c + 1)

a,b = map(int,input().split())
c = b // a
d = b % a - 1
if ((b > 1) and (b < a)) or (a==b):
    print(1)
elif b == 1:
    print(0)
elif (b > a) and (d > 0):
    print(c + 2)
else:
    print(c + 1)

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

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):
import math
A, B = map(int, input().split())

if A >= B:
    print(1)
else:
    print(math.ceil((B - 1) / (A - 1)) + 1)
    
    

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

#  B <= 1 + (A - 1) * n
#  n >= (B - 1) / (A - 1)

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 = [int(i) for i in input().split()]
if b == 1:
    print(0)
    return
n = (b-2) / (a-1)
print(n+1)

a, b = [int(i) for i in input().split()]
if b == 1:
    print(0)
    exit()
n = int((b-2) / (a-1))
print(n+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 = (int(i) for i in input().split())
x = (b - a) % (a - 1)
if ((b - a) % (a - 1)) == 0:
    print(x + 1)

a, b = (int(i) for i in input().split())
x = 1
y = 0
while(100000):
  if b == 1:
    print(0)
    break
  if (a - 1) * y + a >= b:
    print(y + 1)
    break
  else:
    y += 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())
All_tup = 1
add_tup = 0
while All_tup<B:
    if add_tup==0:
        All_tup += 3
        add_tup += 1
    else:
        All_tup += 2
        add_tup += 1

print(add_tup)

A, B = map(int, input().split())
All_tup = 1
add_tup = 0
while All_tup<B:
    All_tup += 2
    add_tup += 1
print(add_tup)

A, B = map(int, input().split())
All_tup = 1
add_tup = 0
while All_tup<B:
    All_tup += A-1
    add_tup += 1

print(add_tup)

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())
cnt = 1

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

if a >= b:
	print(1)
	exit()

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

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

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

if a >= b:
	print(1)
	exit()

while True:
	cnt += 1
	if a + (a-1) * (cnt-1)  >= b:
		print(cnt)
		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,b=map(int, input().split())
c="必要な電源タップ数は"
d="個です。"
count=0
total=0
while True:
    total+=a
    if total<b:
        total-=1
        count+=1
    else:
        break
print(count)

a,b=map(int, input().split())
c="必要な電源タップ数は"
d="個です。"
count=0
total=0
while True:
    

    
#    if total<b:

#        count+=1
#    else:
#        break
    if total >= b:
        break
    total += (a-1)
    count+=1
print(count)

a,b=map(int, input().split())
c="必要な電源タップ数は"
d="個です。"
count=0
total=1
while True:
    

    
#    if total<b:

#        count+=1
#    else:
#        break
    if total >= b:
        break
    total += (a-1)
    count+=1
print(count)

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)
print(-((-b+1)//(a-1)))

a,b=map(int, input().split())
print(-((-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())

answer = 1
num = 0
while(answer < b):
  anwer += a - 1
    num += 1
    
print(num)

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

answer = 1
num = 0
while(answer < b):
  anwer += a - 1
  num += 1
    
print(num)


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


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

answer = 1
num = 0
while(answer < b):
  anwer += a - 1
    num += 1
    
print(num)

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

ans = 1
i = 0
while ans < B:
    ans += A - 1
    i += 1

print(i)



Verdicts: Runtime Error

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())
#A = list(map(int,input().split()))
a,b = map(int,input().split())
print((b-1)/(a-1))

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

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

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-1/A-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())
import math
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())
cnt = 0
if b <= 8:
    print(1)
else:
    while b > 0:
        b -= a
        print(b)
        cnt += 1
    print(cnt)


a, b = map(int, input().split())
if b == 1:
    print(0)
else:
    for i in range(1, 20):
            if a * i  - (i - 1) >= b:
                    print(i)
                    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):
#B
a = int(input())
b = int(input())
if b == 1:
    print(0)
elif a >= b:
    print(1)
else:
    print((b-a)//a + 2)

#B
import math
a,b = map(int,input().split())

k = math.ceil((b-1)/(a-1))

if b == 1:
    print(0)
elif a == b:
    print(1)
else:
    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(' '))
sum = 0
ans = 0
while sum =< B:
    ans +=1
    sum += A
print(ans)

A, B = map(int, input().split(' '))
sum = 1
ans = 0
while sum < B:
    ans += 1
    sum += A - 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):
n=int(input())
print(int((n-1)*n//2))



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

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())
if A == B:
    print(1)
elif B == 1:
    print(0)
else:
    print((B-1)//(A-1)+1)

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

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

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

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

Verdicts: Wrong Answer

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 A >= B:
    print(1)
else:
    Aa = A - 1
    if B % Aa == 0:
        print(int(B/Aa))
    else:
        print(int(B/Aa) + 1)

A,B = map(int, input().split())
t = 1
c = 0
while t<B:
    t += 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):
A, B = map(int, input().split())
ans = 0
t = 1
while B < t:
  ans += 1
  t += A-1
print(ans)

A, B = map(int, input().split())
ans = 0
t = 1
while t < B:
  ans += 1
  t += 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())
cnt = 1
while cnt < b:
  cnt = cnt - 1 + a
print(cnt)  


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


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


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):
s, t = map(int, input().split())
a = t-s
print(1+int(a/(s-1))

from math import ceil

s, t = map(int, input().split())
a = t-s
print(1+ceil(a/(s-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())
count = 0
socketnumber = A
while socketnumber <= B:
  socketnumber += (A-1)
  count += 1
count += 1
print (count)

A,B = map(int, input().split())
count = 0
socketnumber = A
if B != 1:
    while socketnumber < B:
      socketnumber += (A-1)
      count += 1
count += 1
if B == 1:
    count = 0
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 = int(input())
B = int(input())
B-=1
print((A+B-1)/B)

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

A, B = list(map(int, input().split()))
for i in range(20):
    if B<=1+i*(A-1):
        print(i)
        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):
print(-eval("-~"+input().replace(" ","//~")))

a,b=map(int,input().split());print(-(-~-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
input = sys.stdin.readline


a,b=(int(x) for x in input().split())
ans=0
while True:
    a+=(b-1)
    ans+=1
    if a>b:
        break

print(ans)

import sys
input = sys.stdin.readline


a,b=(int(x) for x in input().split())
ans=1
while True:
    a+=(b-1)
    ans+=1
    if a>b:
        break

print(ans)

import sys
input = sys.stdin.readline


a,b=(int(x) for x in input().split())
if b==1:
    print(0)
    exit(0)
c=a
ans=1
while True:
    if c>=b:
        break
    c+=(a-1)
    ans+=1
print(ans)

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())
now_sum = A
ans = 1
while True:
     if now_sum >= B:
         print(ans)
     now_sum += A-1
     ans += 1


A,B= map(int, input().split())
now_sum = A
ans = 1
while True:
     if B == 1:
      print(0)
      break
     
     if now_sum >= B:
         print(ans)
         break
     now_sum += 1
     ans += 1

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

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

Verdicts: Time Limit Exceeded

Wrong Answer

Time Limit Exceeded

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

a, b = map(int, input())
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))

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

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

for i in range(b):
  if a * (i + 1)  - i>= b:
    print(i)
    break;

a, b = map(int, input().split())
 
if b == 1:
  print(0)
else:
  for i in range(b):
    if a * (i + 1)  - i>= b:
      print(i + 1)
      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):


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

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



l = [input() for i in range(1)]
nums = [int(i) for i in l[0].split(' ')]
tap = nums[0]
want = nums[1]
plug = 1
num = 0
while plug < want:
    plug -= 1
    plug += tap
    num += 1
print(num)

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):
lst = list(map(int,input().split(" ")))
n = 1
while n < lst[1]:
  n = n-1+lst[0]
print("%d" % n)

lst = list(map(int,input().split("")))
n = (list[1]-1)/list[0]
print("n")

lst = list(map(int,input().split(" ")))
n = (lst[1]-1)/lst[0]
print("%d" % n )

lst = list(map(int,input().split(" ")))
n = 1
i = 1
while n < lst[1]:
  i += 1
  n = n-1+lst[0]
print("%d" % i)

lst = list(map(int,input().split(" ")))
n = 1
while n < lst[1]:
  n = n-1+lst[0]
print(n)
  

lst = list(map(int,input().split(" ")))
socket_n = 1
tap = 0
while socket_n < lst[1]:
  tap += 1
  socket_n = socket_n-1+lst[0]
print("%d" % tap)

Verdicts: Wrong Answer

Runtime Error

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 = map(int,input().split())
puragu = 1
if A >= B:
  print(1)
  exit()

result = 0

while puragu <= B:
  puragu += A-1
  result += 1

print(result)


A, B = map(int, input().split())
tap = 1
count = 0
while tap < B:
    tap += 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())
sum = 0
sum += b//a

print(sum)

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

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

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=map(int,input().split())
print(math.ceil((b-1)/a)+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())

if b == 1:
    print(0)

else:
    ans = 0
    y = 0
    while y < b:
        ans+=1
        y = ans*(a-1)+1
        print(f'y{y}')
    print(ans)

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

if b == 1:
    print(0)

else:
    ans = 0
    y = 0
    while y < b:
        ans+=1
        y = ans*(a-1)+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):
import math
A,B = map(int,input().split())
print(math.ceil(B/(A-1)))


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


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

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


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(int, input().split())
s = A
ans = 1
while s < B:
    s += A - 1
    ans = 1
print(ans)


A, B = map(int, input().split())
s = 1
ans = 0
while s < B:
    s += 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=(int(x) for x in input().split())
tap = 1
count = 0

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

>>> a,b=(int(x) for x in input().split())
tap = 1
count = 0

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



a,b=(int(x) for x in input().split())
tap = 1
count = 0

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



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())
result = 0
while result * a + 1 > b:
  result ++
print(str(result))

a, b = map(int, input().split())
result = 0
while result * a + 1 > b:
  result = result + 1
print(str(result))

a, b = map(int, input().split())
result = 0
while result * (a - 1) + 1 > b:
  result ++
print(str(result))

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

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):
import math
s = input().split()
A = int(s[0])
B = int(s[1])
y = B / (A - 1)
x = math.ceil(y)
print(x)

import math
s = input().split()
A = int(s[0])
B = int(s[1])
y = (B - 1) / (A - 1)
x = math.ceil(y)
print(x)

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 =

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


print(c)

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

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


print(c)

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())
Stop = True

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

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

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

Verdicts: Wrong Answer

Accepted