|
|
вернуться в форумWhat's WA#4 Can any one help me? I got WA#4. But I have no idea where I made a mistake. I need some tests. I might ignored something important. Thanks. Check out this test :) Test: 0 + 0 + 2 . 1 ------ Answer: 1 2 + I think you assumed that it starts working from time = 1 s. :) Re: Check out this test :) Послано SPIRiT 24 июл 2006 13:18 I've checked this case and still get WA at 4. Re: Check out this test :) Here is the 4th test : Input : 0 . 16 1 . 10 27 . 35 74 . 22 79 + 107 . 8 147 + 185 + 232 . 21 279 + 325 + 347 + 380 + 407 + 412 . 6 445 . 24 473 . 43 486 . 21 520 . 26 552 + 552 + 565 . 19 583 + 613 . 8 653 . 16 673 . 20 675 . 49 675 . 3 678 . 48 695 . 9 704 . 12 741 + 786 + 809 + 810 . 22 834 + 846 . 35 878 + 921 . 27 946 + 984 . 10 995 . 28 1001 + 1002 + 1012 + 1043 + 1079 + 1107 . 16 1150 + 1180 + 1229 + 1265 + 1279 + 1293 + 1317 . 27 1336 + 1355 + 1361 . 16 1406 + 1438 + 1470 + 1506 + 1527 + 1545 + 1545 + 1567 . 27 1591 + 1626 + 1665 . 2000 1706 + 1755 . 17 1801 + 1829 + 1840 . 44 1843 + 1873 . 42 1909 + 1955 . 14 1989 . 17 2026 + 2072 . 20 2117 . 16 2161 . 7 2177 . 31 2224 . 5 2272 . 10 2276 + 2319 + 2332 + 2376 + 2380 + 2421 + 2457 + 2484 + 2533 . 18 2569 . 34 2585 . 18 2597 + 2598 + 2598 . 12 Correct output : - - - - 1 - 2 3 - 4 5 6 7 8 + - - - - 9 10 - 11 + - - - + - + - 1 2 12 - 13 - 14 - 4 + - 5 7 6 15 16 + 17 18 8 11 3 19 - 9 1 + 2 12 13 14 20 21 22 - 4 5 - 6 - 7 8 - 10 - 3 + - 1 + - + - + + 2 4 6 9 11 12 8 13 - - - 3 14 + Good luck . Re: Check out this test :) my soln is exactly equal to what u have posted. but failing in test 2. any reason?? please help Re: Check out this test :) Послано LSBG 31 мар 2010 14:58 Try this test: 0 . 1 |
|
|