cf/mirror

Recursive Queries

CF
932B1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
22 73 9
45 64 6
47 55 7
2 62 4
Output
1
4
0
8
Sample 2of 2
Input
4
82 94 6
56 67 4
28 59 9
39 74 4
Output
3
1
1
5
932B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…