2021 was approaching and the world was about to end. So 2 gods Saurabhx and Saurabhy (from Celesta) created the Cyberverse. But this time disappointed with humans both the gods decided not to have humans in this world. So they created a world of cyborgs. A world without humans. Isn’t it interesting? So let us dive into the cyberverse and have a look at their problems.
There are $N$ kid cyborgs with Chief Cyborg '100gods' and he has $K$ weapons with him. He wants to distribute those $K$ weapons among $N$ kid cyborgs. Since all the kid cyborgs are very good friends, so they set a rule among themselves for taking those weapons. The rule states that the difference between kid cyborg having the maximum weapons and the kid cyborg having minimum weapons should be less than or equal to $1$.

Find the value of the minimum number of weapons a kid cyborg can have when all the $K$ weapons are distributed among them.

-----Input:-----
- The first line contains an integer $T$, denoting the number of test cases.
- Each of the next $T$ lines will contain two space-separated integers denoting $N$ and $K$ respectively.

-----Output:-----
- For each test case ,output a single line containing an integer $X$ denoting the minimum number of weapons a kid cyborg can have in that test case.  

-----Constraints:-----
- $1 \leq T \leq 10^5$
- $1 \leq N \leq 10^5$
- $1 \leq K \leq 10^9$

-----Sample Input:-----
1
5 8

-----Expected Output:-----
1

-----Explanation-----
- There are $5$ kids and $8$ weapons.  
- Hence we will distribute the weapons such that $3$ kids have $2$ weapons each and the remaining $2$ kids have $1$ weapon each.  
- Hence the minimum number of weapons a kid cyborg has is $1$. (  That is, $min(1,2)$ = $1$ )

Difficulty: interview

Starter code:

Solutions:
# cook your dish here
t=int(input())
for i in range(t):
 (n,k)=tuple(map(int,input().split()))
 print(k//n)

# cook your dish here
t=int(input())
for _ in range(t):
 n,k=map(int,input().split())
 print(k//n)

# cook your dish here
t=int(input())
for i in range(0,t):
 s=input().split(" ")
 k=list(map(int,s))
 print(k[1]//k[0])

for i in range(int(input())):
 x,y=list(map(int,input().split()))
 print(y//x)


for _ in range(int(input())):
 n,k=list(map(int,input().split()))
 print(k//n)


t=input()
t=int(t)
while t!=0 :
 inp=input().split(" ")
 inp=[int(x) for x in inp]
 print(int(inp[1]/inp[0]))
 t-=1

# cook your dish here
for i in range(int(input())):
 k,w=map(int,input().split())
 if k>w:
  print(0)
 else:
  print(w//k)

for i in range(int(input())):
 k,w=list(map(int,input().split()))
 c=0
 if k>w:
  print(0)
 
 else:
  print(w//k)


for _ in range(int(input())):
 N, K = map(int, input().split())
 print(K // N)

# cook your dish here
for t in range(int(input())):
 n,k=[int(x)for x in input().rstrip().split()]
 print(k//n)


import math
t=int(input())
for i in range(t):
 n,x=map(int,input().split())
 print(math.floor(x/n))

t=int(input())
for a in range(t):
 (a,b)=map(int,input().split())
 import math
 print(math.floor(b/a))

t=int(input())
for a in range(t):
 (a,b)=map(int,input().split())
 import math
 print(math.floor(b/a))

# cook your dish here
for i in range(int(input())):
 NUMBER=input().split()
 CYBER_KIDS=int(NUMBER[0])
 WEAPONS=int(NUMBER[1])
 count=0
 if WEAPONS<CYBER_KIDS:
  print(count)
 else:
  count=WEAPONS//CYBER_KIDS
  print(count)

# cook your dish here
for t in range(int(input())):
 n,k = map(int,input().split())
 print(k//n)

# cook your dish here
for _ in range(int(input())):
 n,k=map(int,input().split())
 print(k//n)

# cook your dish here
t=int(input())
for _ in range(t):
 a,b=list(map(int,input().split()))
 print(int(b/a))


for k in range(int(input())):
 a,b=map(int,input().split())
 print(b//a) 

T = int(input())
for i in range(T):
 N,K = (int(x) for x in input().split())
 if N>K:
  print(0)
 else:
  print(K//N)
 


for _ in range(int(input())):
 n,k=map(int,input().split())
 if n<=k:
  div=k//n
  rem=k%n
  if rem: 
   maxx=div+1
   minn=div
  else: 
   maxx=div
   minn=div
 else:
  maxx=1
  minn=0
 print(minn)

for _ in range(int(input())):
 n,k=map(int,input().split())
 if n<=k:
  div=k//n
  rem=k%n
  if rem: 
   maxx=div+1
   minn=div
  else: 
   maxx=div
   minn=div
 else:
  maxx=1
  minn=0
 print(minn)

# cook your dish here
for _ in range(int(input())):
 n,k=map(int,input().split())
 k1=k//n 
 print(k1)

# cook your dish here
t=int(input())
for _ in range(t):
 n,k=map(int,input().split())
 k1=k//n 
 print(k1)

# cook your dish here
t=int(input())
for _ in range(t):
 n,k=list(map(int,input().split()))
 k1=k//n 
 print(k1)


# cook your dish here
t=int(input())
for _ in range(t):
 n,k=list(map(int,input().split()))
 k1=k//n 
 k2=k-(k1*n)
 print(k1)