cf/mirror

Analysis of Pathes in Functional Graph

CF
702E2100· master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
7 3
1 2 3 4 3 2 6
6 3 1 4 2 2 3
Output
10 1
8 1
7 1
10 2
8 2
7 1
9 3
Sample 2of 3
Input
4 4
0 1 2 3
0 1 2 3
Output
0 0
4 1
8 2
12 3
Sample 3of 3
Input
5 3
1 2 3 4 0
4 1 2 14 3
Output
7 1
17 1
19 2
21 3
8 1
702E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…