Computer Science Canada Answer to J5/S3 Floor Plan (2003) CCC?????? |
Author: | nate [ Fri Feb 20, 2004 7:19 pm ] |
Post subject: | Answer to J5/S3 Floor Plan (2003) CCC?????? |
I was wondering, being so close to writting the CCC does anyone have a working answer to J5/S3 Floor Plan (2003) CCC, in java or turing. It would be really helpful if i could understand. Tony tried to help me but if you had code that would be much easy. Thanks |
Author: | Andy [ Sat Feb 21, 2004 11:57 am ] |
Post subject: | |
i did it using whatdotcolor.... check it out here http://www.compsci.ca/v2/viewtopic.php?t=2381 |
Author: | nate [ Sat Feb 21, 2004 3:26 pm ] |
Post subject: | |
i read your comments but could u really explain how you are figuing out how many rooms there are? thanks |
Author: | zylum [ Sat Feb 21, 2004 7:40 pm ] | ||
Post subject: | |||
here's my way sorry i dont have time to comment it, i'll put a commented version up tomorrow.. and it's a bit messy, sorry for that too...
|
Author: | Andy [ Sun Feb 22, 2004 1:53 pm ] |
Post subject: | |
wow that is so much longer... for my way, i just draw fill then count how many different color there are |
Author: | zylum [ Sun Feb 22, 2004 8:23 pm ] |
Post subject: | |
i MUST admit, good effort on your part but you'd only get 12/15 where as i'd get full marks... what i mean is that your output for test 3 is 8 rooms 2 square meters left over while the answer is 5 rooms 2 square meters left over... -zylum |
Author: | AsianSensation [ Tue Feb 24, 2004 7:52 am ] |
Post subject: | |
or since this is almost a standard maze question, we could all just use recursion and forget about whatdotcolor? |
Author: | zylum [ Tue Feb 24, 2004 3:57 pm ] |
Post subject: | |
good idea |