摘要:
和上个DFS的问题一样,这次用BFS的思想,BFS没有像DFS那样专门有个step累加,是靠队列思想实现,更像一群路径竞速,最快的到达后,就break输出了#include struct node{ int x; int y; int f;//父亲在队列中的编号,本题不要求输出路径... 阅读全文
摘要:
Inglish-Number TranslatorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5162 Accepted: 2027DescriptionIn this problem, you will be given on... 阅读全文