|
|
вернуться в форумI use simple BFS, but I have wa4; Can anybody help me??? BFS doesn't work here, since you have edges of different lengths, that's why WA. Think of other algorithm I used BFS and got very fast AC OpenGL, can you check my solution, if yes - give me your mail. 2 OpenGL: if you use BFS with dequeue - then yes, it's OK. But usual BFS with queue - it's WA |
|
|