cf/mirror

Let's Play the Hat?

CF
1619F2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
5 2 2
8 3 1
2 1 3
Output
3 1 2 3
2 4 5
3 4 5 2
2 1 3
 
2 6 2
3 3 5 1
3 4 7 8
 
2 2 1
2 2 1
2 2 1
1619F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)