摘要: 题意:小Q被邪恶的大魔王困在了迷宫里,love8909决定去解救她。 迷宫里面有一些陷阱,一旦走到陷阱里,就会被困身亡:(,迷宫 里还有一些古老的传送阵,一旦走到传送阵上,会强制被传送到 传送阵的另一头。 现在请你帮助love8909算一算,他至少需要走多少步才能解 救到小Q?思路:bfsView Code 1 #include <stdio.h> 2 #include <string.h> 3 struct node 4 { 5 int x1,y1,x2,y2; 6 }belt[26]; 7 struct 8 { 9 int x0,y0,count; 1... 阅读全文