Title |
User |
Message |
Date Posted |
Re: Last Test case is strange.. |
bbi5291 |
I also rejudged all of dopa0509's submissions |
Aug 10, 2014 - 3:22:04 am UTC |
Re: Last Test case is strange.. |
Alex |
Fixed |
Aug 10, 2014 - 3:19:45 am UTC |
Re: Last Test case is strange.. |
dopa0509 |
Thanks for confirming the testcase:) |
Aug 10, 2014 - 1:14:57 am UTC |
Re: Last Test case is strange.. |
dopa0509 |
I mean my first WA submission and the last AC submission. |
Aug 10, 2014 - 1:14:32 am UTC |
Re: Last Test case is strange.. |
xiaowuc1 |
I confirm that the last test case is invalid, because the last test case says that city 1 is a destination city, but that is disallowed in the constraints. |
Aug 09, 2014 - 5:25:49 pm UTC |
Re: Last Test case is strange.. |
bbi5291 |
Which two submissions are you talking about? |
Aug 09, 2014 - 4:21:59 pm UTC |
Last Test case is strange.. |
dopa0509 |
My first code and AC code is not different at all. I searched the last data and ran in both programs, then I got the same output '0'. Please check this out. |
Aug 09, 2014 - 2:58:39 pm UTC |
Re: Test cases 1 and 2 |
wangzilv1998 |
Thanks for the help! that was the problem |
Jun 15, 2014 - 8:14:59 pm UTC |
Re: Test cases 1 and 2 |
Alex |
Your program has undefined behaviour. See this. Whenever you make a non-global array, it is by default uninitialized and will very likely have garbage values in memory, so you'll need to initialize it... |
Jun 15, 2014 - 8:06:06 pm UTC |
Test cases 1 and 2 |
wangzilv1998 |
the judge shows WA for the first two data sets though they return the right values on my computer. I had to hard code the first two to get them to pass. What's the problem? |
Jun 15, 2014 - 3:30:34 pm UTC |