Why the compiler is giving wrong answer?

//code deleted

I’ve checked for several test cases all giving right answers.
Link: http://www.codechef.com/NOV13/problems/SDSQUARE

You are not allowed to ask questions during the contest. Please wait till contest is over

1 Like
//