Skip to content

Baekjoon 9550

1. Problem

문제 확인하기

2. Solution

T = int(input())
for case in range(T):
    N, K = map(int, input().split(' '))
    candies = list(map(int, input().split(' ')))
    kid = 0
    for candy in candies:
        kid += candy // K
    print(kid)