5542: Pty with card
内存限制:512 MB
时间限制:8.000 S
评测方式:文本比较
命题人:
提交:1
解决:1
题目描述
输入
输出
There are T lines in total.
For each testcase, you should output M numbers in one line. The i-th number means the answer to City i.
For each testcase, you should output M numbers in one line. The i-th number means the answer to City i.
样例输入 复制
1
5
1 2 3 4 5
1 2
3 2
3 5
5 4
样例输出 复制
12 12 0 0 0