摘要:
https://cn.vjudge.net/problem/HDU-3567 #include <stdio.h>#include <math.h>#include <queue>#include <stack>#include <string.h>using namespace std; stru 阅读全文
摘要:
https://cn.vjudge.net/problem/HDU-3567 #include <stdio.h>#include <math.h>#include <queue>#include <stack>#include <string.h>using namespace std; stru 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1043 由于HDU这里的涉及多组数据,而每组数据按照一般的bfs()做法,即遍历每一种可行方案都保存一次路径,直到找到解就停下来,需要100+ms,这种做法放在多组数据中可能会超时,因此,不如我们只花100+ms来 阅读全文
|