Rosetta Problems

Alice and Bob

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