Rosetta Problems

Counting Squares

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1525