cf/mirror

Full Binary Tree Queries

CF
960D2100· master4s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5
3 12
1 2 1
3 12
2 4 -1
3 8
Output
12 6 3 1
12 6 2 1
8 4 2 1
Sample 2of 2
Input
5
3 14
1 5 -3
3 14
1 3 1
3 14
Output
14 7 3 1
14 6 3 1
14 6 2 1
960D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…