Qiuqiqiu |
|
||
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步! |
2011年12月7日
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2757BFS+优先队列我的代码 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 const int N=1010,INF=10000; 6 struct sta 7 { 8 int x,y,d; 9 };10 struct qcmp11 {12 bool operator() (const sta a,const sta b)13 {14 retur.. 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1026BFS+优先队列我的代码 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 typedef pair<int,int> pii; 6 priority_queue<pii,vector<pii>,greater<pii> >q; 7 const int N=110; 8 const int dx[4]= 阅读全文
|
Copyright © 2024 Qiuqiqiu
Powered by .NET 8.0 on Kubernetes |