Rosetta Problems

90 and 270

https://atcoder.jp/contests/cf16-exhibition-final/tasks/cf16_exhibition_final_i