Problem2081--提瓦特勇士

2081: 提瓦特勇士

Time Limit: 1 Sec  Memory Limit: 256 MB
Submit: 83  Solved: 16
[Submit] [Status] [Web Board] [Creator:]

Description

Input

Output

Sample Input Copy

2
5 3
1 2 3 2 3
4 1
1 1 2 2

Sample Output Copy

0 3 6 0 3
0 0 1 0

HINT

Source/Category