Page 1 of 1

Re: 12430 - Grand Wedding

Posted: Fri Aug 21, 2015 7:05 pm
by forthright48
Apparently we need to print -1 when we have to remove all roads. I couldn't figure this out by reading the statement. Not to mention, the statement doesn't have any constraints! I assumed both N and M to be less than 10^6. Hope this helps.