r802. B. The Phase-Swapped Labyrinth
標籤 : Zaim
通過比率: 1人/ 1人 ( 100%) [非即時]
評分方式:
Tolerant

最近更新 : 2025-12-18 21:54

內容

This labyrinth exists in two overlapping phases.
Each cell may be open or blocked depending on the current phase.

You start in phase 0.
Some cells force an instant phase switch when entered.

Your goal is to reach the exit in the minimum number of steps.

輸入說明

A grid of characters describing walls, open paths, and phase-switch tiles.

  • 1 ≤ n, m ≤ 200
輸出說明

Output the minimum number of steps needed to reach the exit, or -1.

範例輸入 #1
3 4
..S.
##.#
..#.
範例輸出 #1
-1
測資資訊:
記憶體限制: 128 MB
不公開 測資點#0 (10%): 1.0s , <1K
不公開 測資點#1 (10%): 1.0s , <1M
不公開 測資點#2 (10%): 1.0s , <1M
不公開 測資點#3 (10%): 1.0s , <1M
不公開 測資點#4 (10%): 1.0s , <1M
不公開 測資點#5 (10%): 1.0s , <1M
不公開 測資點#6 (10%): 1.0s , <1M
不公開 測資點#7 (10%): 1.0s , <1M
不公開 測資點#8 (10%): 1.0s , <1M
不公開 測資點#9 (10%): 1.0s , <1M
提示 :
標籤:
Zaim
出處:
[管理者: chenwei98050 ... (陳維(Z)) ]

本題狀況 本題討論 排行

編號 身分 題目 主題 人氣 發表日期
沒有發現任何「解題報告」