|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияWhat to do if it doesn't help? Help anybody!!! I have WA8! Give me some helpful tests. Need I use Topological Sort if I use shortest path in DAG; Now I just use Sort by beginning of the edge. Edited by author 02.11.2009 01:59 Edited by author 02.11.2009 01:59 Oh, it was stupid mistake!!! I just increased const INFINITY in the array if distances and got AC. I really hate it when I have to resubmit just because this judge doesn't support "%lld" operator... Very strange, with typedef long long I; I get AC with #define H I(10000000000000000LL) but WA8 with # define H I(1e16) |
|
|