2009-2010 Question #3
Author |
Message |
PropagandaPanda

|
Posted: Wed Dec 16, 2009 6:42 pm Post subject: 2009-2010 Question #3 |
|
|
Hello.
I had submitted an solution for this question, and recieved a score of 1/5, though I'm not sure where the mistake was.
I used Python, and the link to my solution is here:
http://dwite.org/uploads/5e8HewEV4h/783/85/0/answer3.py
My team name is PropagandaPanda on DWITE as well.
I just checked, and the result produced appears to be the same as the answer. The only possible explanations I can come up with are that the judge was using a different version of Python (I just checked with 2.5.1), or if the input file had a proceeding/trailing space somewhere.
I would appreciate clarification on this.
Thanks. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Insectoid

|
Posted: Wed Dec 16, 2009 6:46 pm Post subject: RE:2009-2010 Question #3 |
|
|
Would it be a problem with trailing spaces?
ie 'blah blah blah____' instead of 'blah blah blah' |
|
|
|
|
 |
PropagandaPanda

|
Posted: Thu Dec 17, 2009 4:35 pm Post subject: RE:2009-2010 Question #3 |
|
|
Yes, I think trailing spaces are the issue.
I had split the data by line breaks, rather than by any white space. I'll take note of that for next time.
Thanks. |
|
|
|
|
 |
Tony

|
Posted: Thu Dec 17, 2009 6:10 pm Post subject: RE:2009-2010 Question #3 |
|
|
Oh right, since the judge runs on a Windows VM (because a bunch of people use Turing, and some use VB), newlines are \r\n
The judging environment has been, and is described at http://dwite.org/judge |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
|
|