摘要: #include <bits/stdc++.h>#define MAX_V 0x7f7f7f#define inf 100100using namespace std;struct{ int from; int to; int cost;}es[MAX_V];int n,m,s,d[21474836 阅读全文
posted @ 2018-12-04 12:23 spytc 阅读(161) 评论(0) 推荐(0) 编辑
摘要: day 1{ 一大堆学习方法及规划(其中告诉我可以无所忌惮的看题解哦) 1广搜bfs { 重点: 参照 马的遍历bfs{ 记得判重(不同于spfa) 模板: #include <queue> queue < int > q; int main() { q.push( s ) , vis[s] = 1 阅读全文
posted @ 2018-12-01 21:10 spytc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h>#define inf 0using namespace std;int n,m,ct,x,y,w[5000][5000],ai,bi;bool d[inf][inf];int main(){ cin>>n>>m>>ct;//n为点数,m为边数,ct为 阅读全文
posted @ 2018-11-29 23:36 spytc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: //这是我迈出oi大神的第一步,我相信,兴趣+努力就有成就//这道题调代码调了很长时间,但还是调出来了,很开心!!! #include <bits/stdc++.h>#define inf 500using namespace std;queue <int> q1;queue <int> q2;in 阅读全文
posted @ 2018-11-27 12:02 spytc 阅读(335) 评论(0) 推荐(0) 编辑