上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 63 下一页
摘要: ``` #include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; const int inf = 0x3f3f3f3f; const int N = 2e3 + 10; string ss[10] = {"1110111", "0010 阅读全文
posted @ 2020-04-27 20:24 晴屿 阅读(89) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; const int N = 1010; int k, n, m, S, E; //距离 int g[N][N]; int res[N][N]; void mul(int c[][N], int a[][N], int b[][N]) { static int temp[N][N 阅读全文
posted @ 2020-04-26 20:50 晴屿 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ``` //无论a到b 和 b到c 有没有重合 //都可以写为 //a->x->b->x->c #include #include #include #include #include using namespace std; typedef long long ll; char buf[1'9') { if(ch=='-')f=-1; ch=getc(); } while(ch>='0'&&ch 阅读全文
posted @ 2020-04-26 10:00 晴屿 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://www.luogu.com.cn/blog/Sooke/solution p5017 阅读全文
posted @ 2020-04-25 12:50 晴屿 阅读(97) 评论(0) 推荐(0) 编辑
摘要: ```#include #include #include #include #include #include using namespace std;const int N = 2e3;int n, arr[N + 5], cnt[N + 5], maxv;vector> res;vector ans;//现在多少数//最大是多少void solve(int u, int maxnow){ i... 阅读全文
posted @ 2020-04-21 09:36 晴屿 阅读(259) 评论(0) 推荐(0) 编辑
摘要: ```#includeusing namespace std;int a[8][8],len[12],cnt;int d[4][2]= {{1,0},{-1,0},{0,1},{0,-1}};bool vis[8][8];bool check(int x,int y){ return x>=1&&x=1&&ymxdep) return false; //如果长度恰好等于股价函数 ,也就是到了边缘... 阅读全文
posted @ 2020-04-21 09:34 晴屿 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 补题,参考博客:https://blog.csdn.net/qq_43676357/article/details/105559491?fps=1&locationNum=2 阅读全文
posted @ 2020-04-16 20:49 晴屿 阅读(100) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; const int N = 2e5+10; typedef long long ll; ll t, n1, n2, n3; ll a[N], b[N], c[N]; //分别固定一个数 设为a[i] //然后从 b 和 c 中找一个小于等于他的 和 一个大于等于他的 //然后枚 阅读全文
posted @ 2020-04-16 20:48 晴屿 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 补题 参考:https://blog.csdn.net/weixin_45750972/article/details/105523046 阅读全文
posted @ 2020-04-16 13:45 晴屿 阅读(101) 评论(0) 推荐(0) 编辑
摘要: ``` //#include #include #include #include #include #include #include #define int long long using namespace std; #define rep_1(i,m,n) for(int i=m;i='0'&&ch='0'&&ch pii; typedef unsigned long long ull; 阅读全文
posted @ 2020-04-13 11:01 晴屿 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 63 下一页