How answers are checked?

Write here if you have problems with your Pascal source code

Moderator: Board moderators

Post Reply
kwedeer
New poster
Posts: 44
Joined: Thu Dec 15, 2005 11:28 pm

How answers are checked?

Post by kwedeer » Sun Dec 18, 2005 8:30 pm

as I can guess - by simple comparison of output from submitted program to expected result on some input test data, but - how accurately this comparison is done - e.g. - is it important that output of my program ends with newline (and - from the content of task it is hard to guess whether such newline is expecte or not) or not?

misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Post by misof » Mon Dec 19, 2005 1:05 am

If not stated otherwise in the problem description, you have to produce a char-by-char identical output as the author's program. Most important issues:
- each line ends with a newline (use writeln)
- no unnecessary spaces at the beginning/end of the lines

Post Reply

Return to “Pascal”