There are �n pla
A moderator will give each pla
Everybody will shut their eyes. Then the moderator will call out each pla
The pla
The first line contains an integer �T, denoting the number of testcases.
Each testcase contains two integers �,�n,m, separated by a space.
The input guarantees that 2≤�≤�,��≤2.1×106,∑��≤1.4×1072≤m≤n,mn≤2.1×106,∑mn≤1.4×107.
For each testcase, output �n lines, line �p denoting the strategy of pla
Denote a sequence �s valid if and only if �s is a non-descending sequence of length �−1n−1 and contains integers in [1,�][1,m]. Denote the count of valid sequence �c, then output �c integers between 11 and �m, the �k-th integer representing what the pla
1
2 2
1 2
2 1