How Many Squares?

Problem Name:
How Many Squares?
Site:CodeForces
Links:
Tags:
Problem setters: