Rosetta Problems

Star Gazer

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