码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
2019 年华东师范大学机试
找规律后可以找到这个。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll inf = 0x3f3f3f3f; const double eps = 1e-6; const ll N = 1e5+7 ...
分类:其他好文   时间:2021-01-27 13:56:17    阅读次数:0
E 牛牛数数 线性基+二分
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 #define ENDL "\n" 5 typedef long long ll; 6 typedef pair<int, int> pii; 7 const int inf = 0x7fff ...
分类:其他好文   时间:2021-01-26 12:07:05    阅读次数:0
Codeforces Round #695 (Div. 2)
A 9,98,989,9890...... #include <bits/stdc++.h> #define rep(i,j,k) for (int i = j; i <= k; i++) #define dow(i,j,k) for (int i = j; i >= k; i--) #define ...
分类:其他好文   时间:2021-01-22 12:10:17    阅读次数:0
KMP算法模板
概述 模板出自kuangbin的博客 典型应用: 给你两个字符串,寻找其中一个字符串是否包含另一个字符串,如果包含,返回包含的起始位置。 (1) 头文件 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1e5+10; ...
分类:编程语言   时间:2021-01-21 10:42:47    阅读次数:0
Codeforces Round #689 (Div. 2, based on Zed Code Competition)D. Divide and Summarize(分治+dfs)
D. Divide and Summarize 题意 给你n个数,q次询问,问你能否具有满足和为s的序列。 思路 再求其有多少种和时需要使用$mid = max + min >> 1$来寻找有多少种和。 然后dfs,但是需要判断一下左面或者右面全部相等情况,否则会爆栈 #include<bits/s ...
分类:其他好文   时间:2021-01-19 12:24:43    阅读次数:0
Educational Codeforces Round 102 (Rated for Div. 2) E. Minimum Path
最短路变形:用一条最小边替换一条最大边意义下的最短路 分层图,dis[i][0/1][0/1]表示点i,是否经过最小边,是否经过最大边 最小边两倍贡献,最大边0贡献 /* * Author : GhostCai * Expecto Patronum */ #include<bits/stdc++.h ...
分类:其他好文   时间:2021-01-19 11:43:34    阅读次数:0
CodeForces - 1461B Find the Spruce(递推)
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:其他好文   时间:2021-01-19 11:39:58    阅读次数:0
李超线段树
参考: https://oi-wiki.org/ds/li-chao-tree/ 例题: P4097 [HEOI2013]Segment #include<bits/stdc++.h> #define db double const int p=39989; using namespace std; ...
分类:其他好文   时间:2021-01-18 11:39:35    阅读次数:0
CF1361B
#include<bits/stdc++.h> using namespace std; const long long mod=1e9+7; const long long mod2 = 1e8+7; const long long N =1e6+10; void in(long long &x) ...
分类:其他好文   时间:2021-01-15 12:03:41    阅读次数:0
DIV3E 基环树
#include<bits/stdc++.h> using namespace std; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 #define rush! ios::sync_with_stdio(false);cin.tie(0); c ...
分类:其他好文   时间:2021-01-13 11:33:41    阅读次数:0
3873条   上一页 1 ... 13 14 15 16 17 ... 388 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!