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

Username:   Password: 
 RegisterRegister   
 dwite 5, 2008
Index -> CompSci.ca, Contests -> DWITE
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
javaster




PostPosted: Mon Oct 27, 2008 4:08 pm   Post subject: dwite 5, 2008

Does anyone have the solution to the problem? I have never been able to solve optimization problems like this one and I want to learn the idea behind the solution.

If you have the solution, could you post it here? Thanks a lot.
Sponsor
Sponsor
Sponsor
sponsor
A.J




PostPosted: Tue Oct 28, 2008 3:54 pm   Post subject: Re: dwite 5, 2008

Hanson, of woburn collegiate institute, solved it.

He only got 1/5 testcases, eventhough it works for everything!!!

I have no idea why!

(u can look at his code for #5. his team name is 'hanson')
javaster




PostPosted: Mon Nov 24, 2008 4:39 pm   Post subject: RE:dwite 5, 2008

Thanks a lot!
Dan




PostPosted: Mon Nov 24, 2008 5:32 pm   Post subject: Re: dwite 5, 2008

A.J @ 28th October 2008, 3:54 pm wrote:

He only got 1/5 testcases, eventhough it works for everything!!!


It looks like he got 5/5 to me, unless you mean one of his submsions got 1/5 and then he fixed it to get 5/5.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
DanielG




PostPosted: Mon Nov 24, 2008 6:16 pm   Post subject: RE:dwite 5, 2008

Hanson didn`t get perfecd on the October dwite, he would have if he had removed the cin.ignore().
Dan




PostPosted: Mon Nov 24, 2008 7:37 pm   Post subject: RE:dwite 5, 2008

Ah sorry for some reason i thought this was about the november contest. My bad.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
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  [ 6 Posts ]
Jump to:   


Style:  
Search: