cf/mirror

Assembly via Remainders

CF
1968C1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
4
2 4 1
3
1 1
6
4 2 5 1 2
2
500
3
1 5
Output
3 5 4 9
2 5 11
5 14 16 5 11 24
501 500
2 7 5
1968C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)