<filename>codeforces/A/36-673-Div-2-A-Copy-paste.py
"""
URL: https://codeforces.com/problemset/problem/1417/A
Author: <NAME> [safiulanik at gmail.com]
Tags: greedy, math, *800
"""

t = int(input())

for _ in range(t):
    n, k = map(int, input().split())
    a = list(map(int, input().split()))
    a.sort()
    count = 0
    for i in range(1, n):
        if a[i] <= k:
            while a[0] + a[i] <= k:
                a[i] += a[0]
                count += 1
    print(count)

<filename>codeforces/A/36-673-Div-2-A-Copy-paste.py
"""
URL: https://codeforces.com/problemset/problem/1417/A
Author: <NAME> [safiulanik at gmail.com]
Tags: greedy, math, *800
"""

t = int(input())

for _ in range(t):
    n, k = map(int, input().split())
    a = list(map(int, input().split()))
    a.sort()
    count = 0
    for i in range(1, n):
        if a[i] <= k:
            while a[0] + a[i] <= k:
                a[i] += a[0]
                count += 1
    print(count)

URL: https://codeforces.com/problemset/problem/1417/A Author: <NAME> [safiulanik at gmail.com] Tags: greedy, math, *800