diff --git a/src/10/1/P3956.cpp b/src/10/1/P3956.cpp index 31124fd..d5569ac 100644 --- a/src/10/1/P3956.cpp +++ b/src/10/1/P3956.cpp @@ -111,23 +111,7 @@ int bfs() { else if (nxtColor == -1 && !used) { int magicCost = 2; for (int magicColor = 0; magicColor <= 1; magicColor++) { - int addCost = 0; - if (lastColor != magicColor) { - addCost = 1; - } - int totalCost = cost + addCost + magicCost; - int newLastColor = magicColor; - bool newused = true; - if (totalCost < dist[nx][ny][newused][newLastColor]) { - dist[nx][ny][newused][newLastColor] = totalCost; - Node nxt; - nxt.x = nx; - nxt.y = ny; - nxt.cost = totalCost; - nxt.lastColor = newLastColor; - nxt.used = newused; - pq.push(nxt); - } + } } } diff --git a/src/10/1/P4162.cpp b/src/10/1/P4162.cpp new file mode 100644 index 0000000..294989d --- /dev/null +++ b/src/10/1/P4162.cpp @@ -0,0 +1,3 @@ +int main(){ + +} \ No newline at end of file