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

Username:   Password: 
 RegisterRegister   
 Dwite problem 3
Index -> CompSci.ca, Contests -> DWITE
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
saltpro15




PostPosted: Wed Mar 24, 2010 2:56 pm   Post subject: Dwite problem 3

For each line in the problem will there ever be more than one match up?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Mar 24, 2010 3:04 pm   Post subject: RE:Dwite problem 3

No, each key (string part) is unique per file, so it can have at most 1 match.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Insectoid




PostPosted: Wed Mar 24, 2010 3:16 pm   Post subject: RE:Dwite problem 3

Is the difference between values the absolute difference or the literal file 1 value - file 2 value, which can result in a negative difference?
Tony




PostPosted: Wed Mar 24, 2010 3:17 pm   Post subject: RE:Dwite problem 3

It's absolute of the difference (so always non-negative)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
saltpro15




PostPosted: Wed Mar 24, 2010 3:23 pm   Post subject: RE:Dwite problem 3

gahhhh 4/5 again
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  [ 5 Posts ]
Jump to:   


Style:  
Search: