Classical Counting Problem

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

For an upcoming contest, nn problems are proposed. Problem ii has an initial integer score of a_ia\_i points.

There are mm judges who will vote for problems they like. Each judge will choose exactly vv problems, independently from other judges, and increase the score of each chosen problem by 11.

After all mm judges cast their vote, the problems will be sorted in non-increasing order of score, and the first pp problems will be chosen for the problemset, for some pp between 11 and nn. Problems with the same score can be ordered arbitrarily (this order is decided by the contest director).

How many different problemsets are possible? Print this number modulo 998,244,353998\\,244\\,353. Two problemsets are considered different if some problem belongs to one of them but not to the other.

입력

Each test contains multiple test cases. The first line contains the number of test cases tt (1t501 \le t \le 50). The description of the test cases follows.

The first line of each test case contains three integers nn, mm, and vv, denoting the number of problems, the number of judges, and the number of problems every judge will vote for (2n1002 \le n \le 100; 1m1001 \le m \le 100; 1vn11 \le v \le n - 1).

The second line contains nn integers a_1,a_2,,a_na\_1, a\_2, \ldots, a\_n, denoting the initial scores of the problems (0a_i1000 \le a\_i \le 100).

It is guaranteed that the sum of nn over all test cases does not exceed 100100.

출력

For each test case, print the number of possible problemsets, modulo 998,244,353998\\,244\\,353.

힌트

In the first test case, all possible problemsets are 2\\{2\\}, 3\\{3\\}, 1,3\\{1, 3\\}, 2,3\\{2, 3\\}, and 1,2,3\\{1, 2, 3\\}.

In the second test case, all possible problemsets are 1\\{1\\}, 2\\{2\\}, 3\\{3\\}, 1,3\\{1, 3\\}, 2,3\\{2, 3\\}, and 1,2,3\\{1, 2, 3\\}.

In the third test case, any non-empty subset of problems is a possible problemset.