|
|
back to boardShow all messages Hide all messagesSorry, I got AC. Haven't noticed a slight trick. Well, it's a DAG. Therefore you can simply use DFS, that's all. What trick???? I have WA 10 too....... Could anybody give me a test to solve this problem? My program works correctly whith MY tests and whith the first 9 timus tests)... Why you trying to razvesti us? It's not a DFS, it's Deykstra algo or maybe Floid-Warshal Lol. So, try to solve problem with your algo especially for N<=500. |
|
|