#K. JIXMPII5JUgTXH0#)&+
JIXMPII5JUgTXH0#)&+
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Statement
You are given an array . Your task is to find any array , where:
- for all .
- for all .
Here denotes the remainder of the division of the integer by the integer . For example , , .
Note that if there is more than one which satisfies the statement, you are allowed to find any.
Format
Input
The first line contains a single integer — the number of test cases.
The first line of each test case contains a single integer — the number of elements in .
The second line of each test case contains integers — the elements of .
It is guaranteed that the sum of values over all test cases does not exceed .
Output
For each test case output any ( ) which satisfies the statement.
Sample
5
4
2 4 1
3
1 1
6
4 2 5 1 2
2
500
3
1 5
3 5 4 9
2 5 11
5 14 16 5 11 24
501 500
2 7 5
ShanghaiTech ACM 炸鱼杯
- 状态
- 已结束
- 规则
- OI
- 题目
- 46
- 开始于
- 2024-12-10 23:00
- 结束于
- 2024-12-15 13:00
- 持续时间
- 110 小时
- 主持人
- 参赛人数
- 112