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.
Some bad links on Problemset page
Moderator: Board moderators
Some bad links on Problemset page
Learn, learn, learn.
-
- New poster
- Posts: 2
- Joined: Mon Jan 17, 2005 8:56 pm
humm
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
David Payne
-
- New poster
- Posts: 2
- Joined: Mon Jan 17, 2005 8:56 pm
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
David Payne
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.
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.