Rosetta Problems

One Square in a Triangle

https://atcoder.jp/contests/arc167/tasks/arc167_e