Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 2009-2010 Question #3
Index -> CompSci.ca, Contests -> DWITE
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
PropagandaPanda




PostPosted: 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
Sponsor
sponsor
Insectoid




PostPosted: 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




PostPosted: 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




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> CompSci.ca, Contests -> DWITE
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: