Hide
Problem A
Chinese Remainder
Input
The first line of input consists of an integers
Output
For each test case, output two integers
Sample Input 1 | Sample Output 1 |
---|---|
2 1 2 2 3 151 783 57 278 |
5 6 31471 217674 |