Show all threads Hide all threads Show all messages Hide all messages |
Any help for Test case 4 | Mayank Tiwari | 1314. Chase in Subway | 6 Feb 2022 17:13 | 3 |
If you have WA test 4, try below test: 1 8 1 2 3 4 5 7 6 1 3 1 6 7 Answer: 5 7 I have WA4, tried your test and got the correct answer: 5 7 Do you have another test to check WA4? |
if u have wa in test 3 | Abid29 | 1314. Chase in Subway | 20 Apr 2021 14:46 | 1 |
try this one input: 3 2 61 62 5 75 20 85 50 61 3 10 20 30 1 5 output: 5 |
Can someone give me answer to this testcase? | Danica Porobic | 1314. Chase in Subway | 20 Apr 2021 14:07 | 7 |
4 3 75 85 20 2 61 62 5 75 20 85 50 61 3 10 20 30 3 30 20 85 Will answer include 75 or not? Why 75 does not fall into answer? Because no shortest route from 30 to 75 begins with 30,20,85 30->20->85->75 is one. Because no shortest route from 30 to 75 begins with 30,20,85 30->20->75 is shortest not your one Edited by author 20.04.2021 14:07 Edited by author 20.04.2021 14:07 |
I think testset for this problem isn't right | Maxim Kiryushin | 1314. Chase in Subway | 30 Apr 2020 13:46 | 3 |
My AC program give answer 3 for a following test: 2 4 1 2 3 4 4 1 2 5 4 3 1 2 3 But I think answer must be: 3 4 Am I right? Yes. I think you are lucky you got AC. NO! My AC program give answer 3 for a following test: 2 4 1 2 3 4 4 1 2 5 4 3 1 2 3 But I think answer must be: 3 4 Am I right? |
What does this sentence mean? | Failed Peter | 1314. Chase in Subway | 30 Apr 2020 13:37 | 6 |
the length of a route is determined by the number of spans only But what's span?! Read following few words - definition of span is there (in the subway, a span is a tunnel between two adjacent stations). but i still don't know... Span are edges!(I have no word to say~~~) (in the subway, a span is a tunnel between two adjacent stations). but i still don't know... |
To admins: incorrect 'Compilation Error' verdict with Visual C++ 2017 compiler | Smilodon_am [Obninsk INPE] | 1314. Chase in Subway | 4 Dec 2018 01:57 | 1 |
Hello. I have received strange 'Compilation Error' verdict for my solution on the 1314 task under Microsoft Visual C++ 2017 compiler. Compilation log is as follows: ///////////////////////////////////////// lg1vr1-w2nnli(24): error C2062: type 'float' unexpected lg1vr1-w2nnli(84): warning C4244: 'argument': conversion from 'float' to 'const int', possible loss of data lg1vr1-w2nnli(94): warning C4018: '<': signed/unsigned mismatch ///////////////////////////////////////// Lines 23 and 24 of my code are: ///////////////////////////////////////// const int MAX_STATION_ID = 32767L; const int INFINITY = 10L * MAX_STATION_ID; ///////////////////////////////////////// Commits with CE are 8162255, 8162250, 8162248. But there is successful (Accepted) commit 8162257 (the same code as 8162255) under G++7.1 commit. Could you check if the CE message was correct or not? Best regards. Edited by author 04.12.2018 02:01 |
Test question | MOPDOBOPOT (USU) | 1314. Chase in Subway | 22 Feb 2016 20:07 | 2 |
Need help, WA9! 2 2 1 2 2 3 4 1 1 Is this test possible or not? |
How solve this problem faster 0.1 sec? (I got AC) | Felix_Mate | 1314. Chase in Subway | 4 Sep 2015 19:45 | 1 |
|
WA on #3, can someone give me some tests or some hints? | Danica Porobic | 1314. Chase in Subway | 5 Apr 2011 00:55 | 4 |
If someone wants to try to debug my code or give me a hint or help me some other way, send me a mail on dporobic@eunet.yu Hint (+) Danica Porobic 5 Sep 2004 15:44 Detail that made my WA #3 to AC : If the line is defined as follows: 3 1 2 3 then spans are 1-2 and 2-3, and not 1-3!!! Line aren't cycles.... When I had WA#3, this test helped: 1 1 1 1 1 The right answer is 1 That isn't a valid test case, though, because the K >= 2. You cannot have a line with only one station. |
WA10 | Crescent Moon | 1314. Chase in Subway | 8 Nov 2008 11:25 | 1 |
WA10 Crescent Moon 8 Nov 2008 11:25 Anyone had WA10? I can't understand :( I do BFS twice, and I think it's correct algorithm Edited by author 08.11.2008 11:27 |
Need explanation | Sa Lang Hae | 1314. Chase in Subway | 1 Aug 2008 05:11 | 2 |
if there is a route like below: 3 1 2 3 Can I go from station 3 to station 1 directly? I mean, is the route a circle? |
any hints? | Tim Green | 1314. Chase in Subway | 1 Aug 2008 05:05 | 8 |
I used two SSSP algo (BFS + DFS) to solve the problem. Can it be done with only one ? how to determinate the shortest route??? Why in the test input the criminal goes to 85 and not to 10 or 75???? I too Edited by author 21.04.2004 00:39 Just 2 BFSs. Maigo Akisame (maigoakisame@yahoo.com.cn) 28 Oct 2004 08:34 First do BFS with the first node in the criminal's route. Save the result in the array d1. Do another BFS with the last node in the criminal's route, and save the result in the array d2. For any node i, if d1[i]-d2[i]=m-1, then i is an answer. The graph is always connected. I build BFS traversal tree by giving priorities to points on the route (i.e. advance them first). Children of the last route node gain privelege for the rest of traversal (if you process nodes in the order they were first visited, this condition is automatic because they will be added prior to any other nodes during last privileged propagation). After BFS tree is ready, nodes reachable from last node on the route inside that tree form the answer. Edited by author 01.08.2008 05:09 |
Give me more tests, please!!!! (WA#2) | Artem Fursenko | 1314. Chase in Subway | 4 Dec 2007 18:03 | 2 |
My program works correct with ALL tests, that were above. But there is WA2 on check. oh.. try to use Floyd-Uorshell's algoritm.. its may to help you. |