MPGH Coding Contest!

Posts 61–62 of 62 · Page 5 of 5
its better to have one cord 2 feet long and 2 cord 0 feet long then 2 cords 2 feet long and 1 cord 0 feet long.
Meaning the totol distance from the server to the client.

If you have the clients 0 and 2, and the server was at one:
The distance from 0 to 1 = 1
distance from 2 to 1 = 1
total distance is 2.

i should have made you output the minimum distance because there are multiple answers. You could also put the server at 0 and 2.

Im extremly sorry for my low specifcations as it is the first contest i have organized and next time it will a lot better. im pretty sure i did specify it was 5 test cases per text file somewhere in the first paragraph but it was pretty unclear. having all the test cases in one file makes it a lot easier to mark xD

so sorry for all the inconveniences and resend your code if you did it wrong. good luck =D
Posts 61–62 of 62 · Page 5 of 5
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us