cf/mirror

Bitwise Paradox

CF
1936D3100· legendary gm5s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
3 7
2 1 3
2 2 3
4
2 1 3
1 2 5
2 2 3
2 1 3
4 5
5 1 2 4
4 2 3 3
6
2 1 4
1 3 15
2 3 4
2 2 4
1 2 13
2 1 4
1 5
6
4
1
2 1 1
Output
-1 3 2
5 2 2 1
-1
1936D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)