Rosetta Problems

机器人的运动范围

https://www.acwing.com/problem/content/22