码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
Codeforces Round #399 (Div. 1 + Div. 2, combined) 解题报告
A.Oath of the Night's Watch 简单的排序 1 #include <iostream> 2 //#include<bits/stdc++.h> 3 #include <stack> 4 #include <queue> 5 #include <map> 6 #include ...
分类:其他好文   时间:2017-02-21 11:44:24    阅读次数:235
今天的注意点
#include<bits/stdc++.h>包含了目前c++所包含的所有头文件!!!!开挂般的奇迹人生 while(scanf("%d",&n)!=EOF) qsort函数qsort(a,n+m,sizeof(a[0]),cmp);int cmp(void const *a,void const ...
分类:其他好文   时间:2017-02-20 19:45:48    阅读次数:129
hdu5728
详细题解: http://blog.csdn.net/wust_zzwh/article/details/51966450 ……化简公式的能力还不够啊…… 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 typedef long long l ...
分类:其他好文   时间:2017-02-19 16:03:12    阅读次数:200
c++括号匹配和网页跳转
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 #include <stdlib.h> 5 #include <bits/stdc++.h> 6 using namespace std; 7 8 int main( ...
分类:编程语言   时间:2017-02-19 14:21:55    阅读次数:215
PAT 乙级 (将剩下的做了)
为了提高准确率,不测试结果直接交。 1053 模拟。第二个条件注意看清楚.... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 #include <bits/stdc++.h> using nam ...
分类:其他好文   时间:2017-02-18 21:08:15    阅读次数:286
巴士博弈
1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int main() 5 { 6 int T; 7 cin >> T; 8 for(int t = 1; t <= T; t++) 9 { 10 l ...
分类:其他好文   时间:2017-02-18 12:06:24    阅读次数:184
342. Power of Four
Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example:Given num = 16, return true. Given num = 5, return fal... ...
分类:其他好文   时间:2017-02-18 12:03:33    阅读次数:167
hdu 1588 Gauss Fibonacci(等比矩阵二分求和)
题目链接:hdu 1588 Gauss Fibonacci 题意: g(i)=k*i+b; f(0)=0f(1)=1f(n)=f(n-1)+f(n-2) (n>=2) 让你求:sum(f(g(i)))for 0<=i<n 题解: 这里用到二分等比求和 1 #include<bits/stdc++.h ...
分类:其他好文   时间:2017-02-17 14:50:40    阅读次数:209
BZOJ 1012 线段树或单调队列
1012: [JSOI2008]最大数maxnumber 题意:两种操作:1、查询当前数列中末尾L个数中的最大的数;2、当前数列末尾插入一个数。 tags:水题 线段树 #include<bits/stdc++.h> using namespace std; #pragma comment(link ...
分类:其他好文   时间:2017-02-16 22:34:03    阅读次数:195
hdu5823
官方题解:直接状压dp就行了,f[S]表示点集S的色数,枚举子集转移(子集是独立集)。这样是3^n的。 这样就可以过了……(独立集就是点互相没有连边) 学到了一个穷举子集的简便写法 for (int j=i; j; j=(j-1)&i) 1 #include<bits/stdc++.h> 2 3 u ...
分类:其他好文   时间:2017-02-15 00:33:41    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!