본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 26565번 Time Limits

by 현장 2024. 2. 1.

-Code

from math import ceil
for _ in range(int(input())):
    n, s = map(int, input().split())
    s_max = max(list(map(int, input().split())))

    print(ceil((s_max * s) / 1000))