随笔分类 -  基础算法-搜索

摘要:1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 inline ll re_ad() { 5 char ch=getchar(); ll x=0,f=1; 6 while(ch<'0' || ch>'9 阅读全文
posted @ 2021-10-03 22:35 上官书房 阅读(49) 评论(0) 推荐(1)
摘要:题目链接:https://www.luogu.com.cn/problem/P4014 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=211,M=4e4+11,inf=1<<29; 4 int n,a[N][N],st, 阅读全文
posted @ 2021-08-18 17:48 上官书房 阅读(33) 评论(0) 推荐(0)
摘要:题目链接:https://www.luogu.com.cn/problem/P2761 1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const int N=2e6+11; 5 const ll i 阅读全文
posted @ 2021-08-17 15:02 上官书房 阅读(32) 评论(0) 推荐(0)
摘要:题目链接:https://www.luogu.com.cn/problem/P4011 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=21,M=1<<15; 4 const int dx[11]={1,-1,0,0},d 阅读全文
posted @ 2021-08-17 11:48 上官书房 阅读(55) 评论(0) 推荐(0)