Rosetta Problems

Ribbons On Perfect Binary Tree

https://onlinejudge.u-aizu.ac.jp/problems/3190