Apparently, there was this contest today, in which the following code gave a SIGXSZF, and later a TLE.

The setter’s solution was in no way different apart from the above solution, and was naturally accepted.

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.
No return statement, yet accepted. The problem does not lie in the return statement. Please verify your facts before commenting.