What is the proof of Editorial Solution of this problem? http://community.topcoder.com/stat?c=problem_statement&pm=13090&rd=15848
Topcoder SRM 615 Div1 Medium
What is the proof of Editorial Solution of this problem? http://community.topcoder.com/stat?c=problem_statement&pm=13090&rd=15848