码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
Codeforces Round #344 (Div. 2) C. Report 水题
#include<bits/stdc++.h> #define REP(i,a,b) for(int i=a;i<=b;i++) #define MS0(a) memset(a,0,sizeof(a)) #define rep(i,a,b) for(int i=a;i>=b;i--) #define
分类:其他好文   时间:2016-03-04 19:08:09    阅读次数:155
bzoj1588: [HNOI2002]营业额统计 treap
原来treap这么简单。。。比splay简单多了。。。。 #include<bits/stdc++.h> #define REP(i,a,b) for(int i=a;i<=b;i++) #define MS0(a) memset(a,0,sizeof(a)) using namespace std
分类:其他好文   时间:2016-03-03 14:30:09    阅读次数:132
[oracle] 解决X64操作系统PL/SQL连接报错问题 make sure you have the 32 bits oracle client installed
Windows 64位下装Oracle 11g 64位,PLSQL Developer使用出现以下问题: 1、Database下拉框为空: 2、强制输入用户名、密码及Database,登录弹出: Initialzation error Could not initialize "...." Make
分类:数据库   时间:2016-02-29 16:35:52    阅读次数:129
DP(记忆化搜索) + AC自动机 LA 4126 Password Suspects
题目传送门 题意:训练指南P250 分析:DFS记忆化搜索,范围或者说是图是已知的字串构成的自动机图,那么用 | (1 << i)表示包含第i个字串,如果长度为len,且st == (1 << m) - 1则是可能的。打印与之前相似。 #include <bits/stdc++.h> using n
分类:其他好文   时间:2016-02-26 21:55:34    阅读次数:228
并查集 + 线段树 LA 4730 Kingdom
题目传送门 题意:训练指南P248 分析:第一个操作可以用并查集实现,保存某集合的最小高度和最大高度以及城市个数。运用线段树成端更新来统计一个区间高度的个数,此时高度需要离散化。这题两种数据结构一起使用,联系紧密。 #include <bits/stdc++.h> using namespace s
分类:其他好文   时间:2016-02-26 20:38:23    阅读次数:237
C++ Super-FAQ 『Constructor』
什么是构造函数 Constructors build objects from dust. They turn a pile of arbitrary bits into a living object. List x, List x()与List x(Bar()) List x,声明一个类型为Li
分类:编程语言   时间:2016-02-26 12:18:44    阅读次数:195
bzoj 3439
先把所有词扔进tire,然后dfs序弄出区间,然后就是区间最大值了 主席树各种写挂QAQ 1 #include<bits/stdc++.h> 2 #define inc(i,l,r) for(int i=l;i<=r;i++) 3 #define dec(i,l,r) for(int i=l;i>=
分类:其他好文   时间:2016-02-25 19:40:24    阅读次数:219
lintcode-easy-Flip Bits
Determine the number of bits required to flip if you want to convert integer n to integer m. Example Given n = 31 (11111), m = 14 (01110), return 2. N
分类:其他好文   时间:2016-02-24 19:29:44    阅读次数:228
F - The Fun Number System(第二季水)
Description In a k bit 2's complement number, where the bits are indexed from 0 to k-1, the weight of the most significant bit (i.e., in position k-1)
分类:其他好文   时间:2016-02-23 20:50:49    阅读次数:497
ZOJ 3706 Friends
Link 暴力 Code: 1 #include<bits/stdc++.h> 2 3 void solve(); 4 int __search(int a,int b,int c); 5 6 int f[128][128][128]; 7 8 int main(){ 9 int t; 10 sca
分类:其他好文   时间:2016-02-23 20:34:53    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!