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.
MPGH Coding Contest!
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
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
This thread is closed for replies.