Some bad links on Problemset page

Post here if you don't find any other place for your post. But please, stay on-topic: algorithms, programming or something related to this web site and its services.

Moderator: Board moderators

Post Reply
Cahoun
New poster
Posts: 13
Joined: Mon Jan 03, 2005 2:34 pm
Location: Czech Republic
Contact:

Some bad links on Problemset page

Post by Cahoun »

I found some bad links on Problemset page http://acm.uva.es/problemset/ in section HOWTOs:

Submit
Submit by eMail
Submit Pascal
Submit Java
OJ Answers
Write Source Code

I think that links are from old board. Could anybody(admin) change these links please? It's very good links for beginners and newcomers.
Thanks.
Learn, learn, learn.
Cahoun
New poster
Posts: 13
Joined: Mon Jan 03, 2005 2:34 pm
Location: Czech Republic
Contact:

Post by Cahoun »

I dont know if anyone will help beginners and newcomers with section Howtos, because many of them dont know how to send problems.
I think it is very important problem!!!

Thanks for no answer. :evil:
Learn, learn, learn.
DavidPayne
New poster
Posts: 2
Joined: Mon Jan 17, 2005 8:56 pm

humm

Post by DavidPayne »

Yes, some fixed links would be very good. A) Where does input come from, making a guess from posts in the forum stdin and stdout but don't know for shure b) How exactly do I submit?

David Payne
DavidPayne
New poster
Posts: 2
Joined: Mon Jan 17, 2005 8:56 pm

Post by DavidPayne »

I solved that problem (had someone help me). But I got another question. My code was accepted but it said in a real competition I would have receved a PE. I tested many different cases and I can't figure out how it looks any different save for this one fact. What about extra white space after the program terminates? Maybe that caused it. Or another part might be if a line wrapes around (it said that the output would not excede more than 80 characters but if it goes right up to 80 characters and wraps to the next line, even tough nothing is printed might that count as two white space lines thus giving me a PE error. I don't know, I might just be rambiling.

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

Post by misof »

You were right in your first guess, the extra whitespace is the problem. Usually you are required to format your output EXACTLY in the way described in the problem statement. Presentation error usually means: your answer is correct, but presented in a wrong way.

About what's the right way of formatting the output:
Imagine that your output is saved to a file. Don't worry about lines with 80+ characters, the file can handle it easily.
Each line including the last one MUST be terminated by a newline (i.e. writeln in pascal, \n in C, endl in C++ streams).
Usually, elements on a line must be separated by a SINGLE space, with NO spaces before the first one and after the last one.
Note the difference between "print a blank line after each test case" and "separate the output for different test cases by a blank line", in the second case you shouldn't print the empty line after the last test case.

If this didn't help, check the board for the problem you are solving.
Post Reply

Return to “Other words”