[Solution] Z mod X = C Codeforces Solution | Codeforces Problem Solution 2022
B. Z mod X = C
time limit per test
1 secondmemory limit per test
256 megabytesinput
standard inputoutput
standard outputYou are given three positive integers , , (). You have to find three positive integers , , such that:
Here denotes the remainder from dividing by . It is possible to show that for such
Solution Click Below:- CLICK HERE
constraints the answer always exists.
Input
The input consists of multiple test cases. The first line contains a single integer () — the number of test cases. Description of the test cases follows.
Each test case contains a single line with three integers , , ().
Output
For each test case output three positive integers , , () such that , , .
You can output any correct answer.
No comments:
Post a Comment