Блог пользователя code60

Автор code60, 12 лет назад, По-английски

Consider the n rows and m columns as n+m nodes in a graph. The cell (i,j) with regular (non-magic column) means there is an edge connecting node i to node n+j. A magic column at cell (i,j) means the path goes through the i->(n+j) edge. Now the problem is to find the shortest path from node 1 to node n.

  • Проголосовать: нравится
  • -20
  • Проголосовать: не нравится