This page is still under construction.

Parts of this page are still being built. What you see may change.

Time Limits

Interview

Time limit1sMemory limit1024 MB

Summary
For each dataset, find the smallest whole-second time limit that is at least s times the slowest model solution's time in milliseconds.
Level

Easy2 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

A contest setter wants to set the time limit for a problem. There are nn model solutions, and model solution kk takes tkt_k milliseconds to run on the test data. The time limit must be an integer number of seconds and must be at least ss times the running time of the slowest model solution. Compute the minimum time limit the setter can choose.

Input

The first line contains a single integer mm, the number of datasets. Each dataset has two lines. The first line contains two space-separated integers nn and ss (1≤n≤1001 \le n \le 100, 1≤s≤201 \le s \le 20). The second line contains nn space-separated integers t1,…,tnt_1, \ldots, t_n (1≤tk≤20001 \le t_k \le 2000 for all k=1,…,nk = 1, \ldots, n).

Output

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

Examples1

  1. Example 1

    Input
    2
    2 5
    200 250
    3 4
    47 1032 1107
    
    Expected output
    2
    5