codeforces Codeforces : Theatre Square Problem Link : http://codeforces.com/problemset/problem/1/A Solution : Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook