12319 - Edgetown's Traffic Jams

All about problems in Volume 123. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Repon kumar Roy
Learning poster
Posts: 96
Joined: Tue Apr 23, 2013 12:54 pm

Re: 12319 - Edgetown's Traffic Jams

Post by Repon kumar Roy »

In the description of the blocks in the proposal should be understood that the blocks are oriented going out from the first element in the line to each of the adjacent elements (the same fact applies to the old configuration).
Don't miss this point , The First input roads are not all bi - directional
Don't Use memset_value too high ( I used 10^8 & Floyd-Warshall)
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12319 - Edgetown's Traffic Jams

Post by brianfry713 »

http://www.cplusplus.com/reference/cstring/memset/

the function fills the block of memory using the unsigned char conversion of the second argument, so it should be between 0 and 255.
Check input and AC output for thousands of problems on uDebug!
Post Reply

Return to “Volume 123 (12300-12399)”