Logo
(追記) (追記ここまで)

26565번 - Time Limits 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB14012511289.600%

문제

A contest setter wants to determine the time limits for a given problem. There are n model solutions, and solution k takes tk milliseconds to run on the test data. The contest setter wants the time limit to be an integer number of seconds, and wants the time limit to be at least s times larger than the slowest model solution. Compute the minimum time limit the contest setter can set.

입력

The first line of input will contain a single integer m that indicates the number datasets to follow. Each dataset is comprised of two lines. The first line of input contains two space-separated integers n and s (1 ≤ n ≤ 100 and 1 ≤ s ≤ 20). The second line of input contains n space-separated integers t1, . . . , tn (1 ≤ tk ≤ 2000 for all k = 1, . . . , n).

출력

For each dataset print, on one line, the minimum time limit (in seconds) as a single integer.

제한

예제 입력 1

2
2 5
200 250
3 4
47 1032 1107

예제 출력 1

2
5

힌트

출처

School > PLU High School Programming Contest > PLU 2019 > Novice 9번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /