ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1226. esreveR redrO

2 adminz
Posted by Sergey-vt 2 Feb 2009 21:20
This is the way I made output for this task:
(for each string)

for(j=0;j<len;j++)
     printf("%c",a[i][j]);
if(len>0||i<n-1) printf("\n");

where "len" is the length of the string, "n" is it's number.
And such strange output is only AC variant I could find. Is that fair? Why banal gets() or \n after each line doesn't work? This ways of output can process empty lines correctly, but they get WA.

PS. Sorry for code, delete it, if it's forbidden.