Rosetta Problems

Rotating Cutter Bits

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