SmartCoders(1.2)

Apparently, there was this contest today, in which the following code gave a SIGXSZF, and later a TLE. CodeChef: Practical coding for everyone

The setter’s solution was in no way different apart from the above solution, and was naturally accepted. CodeChef: Practical coding for everyone

Now all I want to ask, especially from the host, is that why are such contests even held, where having changes in presentation results in TLE, while a similar code gets accepted.

Your code doesn’t even have a return statement. Stop blaming the host and first rectify all the faults from your own side.

Yeah right, since that is making a heck load of difference.
http://www.codechef.com/viewsolution/5905528
No return statement, yet accepted. The problem does not lie in the return statement. Please verify your facts before commenting.