cf/mirror

Game with Two Trees

CF
207C22200· master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
1 1 a
2 1 a
1 2 b
2 1 b
2 3 a
Output
1
3
3
4
7
207C2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)