cf/mirror

Anji's Binary Tree

CF
1900C1300· pupil2.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3
LRU
2 3
0 0
0 0
3
ULR
3 2
0 0
0 0
2
LU
0 2
0 0
4
RULR
3 0
0 0
0 4
2 0
7
LLRRRLU
5 2
3 6
0 0
7 0
4 0
0 0
0 0
Output
0
1
1
3
1
1900C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…