cf/mirror

Xor-Paths

CF
1006F2100· master3s256 MB⌨ stdin/stdout

Examples

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