Ugh, it was a hard contest. I spent a huge amount of time on both 2222D - Permutation Construction and 2222F - Building Tree, but couldn't crack them.
Ugh, it was a hard contest. I spent a huge amount of time on both 2222D - Permutation Construction and 2222F - Building Tree, but couldn't crack them.