Page 2 of 2

Re: 662 - Fast Food

Posted: Thu Feb 27, 2014 7:14 pm
by hachi
I get the following for the input listed above by chuzpa, but I still get a WA. Is there something wrong with my formatting or my answers? Some answers are different from others but they are still optimal.

Code: Select all

Chain 1
Depot 1 at restaurant 2 serves restaurants 1 to 3
Depot 2 at restaurant 5 serves restaurants 4 to 5
Depot 3 at restaurant 6 serves restaurant 6
Total distance sum = 8

Chain 2
Depot 1 at restaurant 1 serves restaurant 1
Total distance sum = 0

Chain 3
Depot 1 at restaurant 2 serves restaurants 1 to 2
Total distance sum = 10000

Chain 4
Depot 1 at restaurant 1 serves restaurant 1
Depot 2 at restaurant 2 serves restaurant 2
Depot 3 at restaurant 4 serves restaurants 3 to 4
Total distance sum = 1

Chain 5
Depot 1 at restaurant 1 serves restaurant 1
Depot 2 at restaurant 2 serves restaurant 2
Depot 3 at restaurant 3 serves restaurant 3
Total distance sum = 0

Chain 6
Depot 1 at restaurant 2 serves restaurants 1 to 2
Depot 2 at restaurant 4 serves restaurants 3 to 5
Total distance sum = 3

Chain 7
Depot 1 at restaurant 2 serves restaurants 1 to 2
Depot 2 at restaurant 4 serves restaurants 3 to 5
Total distance sum = 3

Chain 8
Depot 1 at restaurant 3 serves restaurants 1 to 5
Total distance sum = 6

Re: 662 - Fast Food

Posted: Thu Feb 27, 2014 11:43 pm
by brianfry713
My AC code is identical to your output. Are you printing a blank line after the last test case?

Re: 662 - Fast Food

Posted: Fri Feb 28, 2014 6:24 am
by hachi
I've tried with the blank and without it, but it still gives a wrong answer.

Re: 662 - Fast Food

Posted: Fri Feb 28, 2014 11:29 pm
by brianfry713
Post or PM me your code.

662 - Fast Food help me

Posted: Tue Mar 04, 2014 8:45 am
by hxlll
Hi here is my code and I got RE please help me with that

Re: 662 - Fast Food help me

Posted: Tue Mar 04, 2014 10:57 pm
by brianfry713
Output a blank line after each test case, including the last one.

Re: 662 - Fast Food help me

Posted: Wed Mar 05, 2014 5:43 pm
by hxlll
yes I did

Re: 662 - Fast Food help me

Posted: Wed Mar 05, 2014 10:41 pm
by brianfry713
Output a blank line after each test case, including the last one. You're printing a blank line in between test cases.