码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
297. Serialize and Deserialize Binary Tree
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:其他好文   时间:2016-10-31 13:42:31    阅读次数:186
c++ 读入的测试
处理器Intel 酷睿i5 6300U 1.cin 测试对象:1000W个int类型数 #include <bits/stdc++.h> int main(){ freopen("num.txt","r",stdin); int a; for(int i=1;i<=10000000;i++) std ...
分类:编程语言   时间:2016-10-28 20:18:03    阅读次数:158
bzoj1688: [Usaco2005 Open]Disease Manangement 疾病管理
思路:状压dp,枚举疾病的集合,然后判断一下可行性即可。 #include<bits/stdc++.h> using namespace std; #define maxs 400000 #define maxn 1900 int n,d,k; int a[maxn],f[maxs],num[max ...
分类:其他好文   时间:2016-10-23 20:40:41    阅读次数:196
Codeforces Round #377 (Div. 2) 732A B C D E
蒟蒻只能打div 2 A题水,10和个位数的使用互不影响,所以直接在模10意义下做 1 #include<bits/stdc++.h> 2 using namespace std; 3 int k,r; 4 int main(){ 5 scanf("%d%d",&k,&r); 6 k=k%10; 7 ...
分类:其他好文   时间:2016-10-20 11:50:12    阅读次数:208
Codeforces #Round 376 部分题解
A: 题目传送门:http://codeforces.com/problemset/problem/731/A 直接根据题意模拟即可 1 #include "bits/stdc++.h" 2 3 using namespace std ; 4 typedef long long QAQ ; 5 6 ...
分类:其他好文   时间:2016-10-18 02:00:19    阅读次数:172
做题头文件
1 #include<bits/stdc++.h> 2 using namespace std; 3 #define ll long long 4 #define inf 0x3f3f3f3f 5 #define mod 1000000007 6 #define lson 2*n 7 #define ...
分类:其他好文   时间:2016-10-13 19:29:16    阅读次数:159
2016弱校联盟十一专场10.2部分题解
1/10 J. Matrix Transformation 1 /*zhen hao*/ 2 #include <bits/stdc++.h> 3 using namespace std; 4 5 #define lson l, m, rt*2 6 #define rson m + 1, r, rt ...
分类:其他好文   时间:2016-10-13 02:11:41    阅读次数:210
hihoCoder 1394 : 网络流四·最小路径覆盖 (网络流学习#4 记录)
题目链接:http://hihocoder.com/problemset/problem/1394 代码: #include<bits/stdc++.h> using namespace std; const int N=505*2+10,M=20005,INF=0x3f3f3f3f; int n, ...
分类:其他好文   时间:2016-10-13 01:30:37    阅读次数:288
hihoCoder 1378 网络流二·最大流最小割定理 (网络流学习#2 记录)
题目链接:http://hihocoder.com/problemset/problem/1378 代码: #include<bits/stdc++.h> using namespace std; const int maxn=505; int c[maxn][maxn],pre[maxn],flo ...
分类:其他好文   时间:2016-10-12 22:18:47    阅读次数:164
复习2
190. Reverse Bits:原数向右移动,如果bit是1,就给结果在相应的位置加上1. 46. Permutations:最适合这道题的dfs搜索顺序是把加一个限制条件:搜索过的数字跳过。脑子里面有个tree的模型然后去想应该搜索的顺序和条件。 100. Same Tree: 递归:检查是不 ...
分类:其他好文   时间:2016-10-09 07:21:39    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!