码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
HDU 5063 Operation the Sequence(暴力)
HDU 5063 Operation the Sequence 题目链接 把操作存下来,由于只有50个操作,所以每次把操作逆回去运行一遍,就能求出在原来的数列中的位置,输出即可 代码: #include #include #include using namespace std; typedef long long ll; const int N = 100005;...
分类:其他好文   时间:2014-10-12 00:30:07    阅读次数:262
hdu 2063 过山车
Problem Description RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和linle或LL做partner,PrincessSnow愿...
分类:其他好文   时间:2014-10-10 17:24:24    阅读次数:163
HDU 4355 Party All the Time 三分
题意: 给定n个x轴上的点 x w 选一个点 X 使得  for(int i = 1; i 最小 T^T看过了这么多人只能猜三分。。 凑一下数据大概能感觉出来 #include #include #include using namespace std; typedef long long ll; const int N = 50005; double a[N], ...
分类:其他好文   时间:2014-10-10 16:06:54    阅读次数:129
HDU 4777 Rabbit Kingdom(树状数组)
HDU 4777 Rabbit Kingdom 题目链接 题意:给定一些序列,每次询问一个区间,求出这个区间和其他数字都互质的数的个数#include #include #include #include using namespace std; const int INF = 0x3f3f3f3f; typedef long long ll; const ll N = 20...
分类:其他好文   时间:2014-10-10 14:41:44    阅读次数:311
使用CopyTable工具方法在线备份HBase表
CopyTable is a simple Apache HBase utility that, unsurprisingly, can be used for copying individual tables within an HBase cluster or from one HBase cluster to another. In this blog post, we’ll talk a...
分类:其他好文   时间:2014-10-10 11:34:01    阅读次数:246
HDU 4344 随机法判素数(费马小定理
#include #include #include #include using namespace std; typedef long long ll; const int N = 108; const int S = 10; ll mult_mod(ll a, ll b, ll c) { a %= c; b %= c; ll ret = 0; whi...
分类:其他好文   时间:2014-10-09 22:24:38    阅读次数:234
POJ 2391 Ombrophobic Bovines 网络流 建模
【题目大意】给定一个无向图,点i处有Ai头牛,点i处的牛棚能容纳Bi头牛,求一个最短时间T使得在T时间内所有的牛都能进到某一牛棚里去。(1 #include #include #include #include #include #define LL long long#define INF 1LL...
分类:其他好文   时间:2014-10-09 17:45:47    阅读次数:153
Light OJ 1341 Aladdin and the Flying Carpet Pollard_rho整数分解+DFS
输入a b 求有多少对p, q 使得p*q == a && p = b 直接大整数分解 然后dfs搜出所有可能的解 #include #include #include #include #include using namespace std; typedef long long LL; const int Times = 25; LL factor[100], f[100]; i...
分类:其他好文   时间:2014-10-09 16:07:38    阅读次数:179
HDU 5058 So easy (set容器大法好)
题目链接:HDU 5058 So easy 题意:给出两个序列,问这个两个序列构成的集合是否相同、 set大法好! AC代码: #include #include #include using namespace std; #define ll __int64 set ss1,ss2; set::iterator it; int main() { ll n...
分类:其他好文   时间:2014-10-09 15:56:38    阅读次数:282
Codeforces Round #271 (Div. 2)
A题:因为数据量太小,所以直接暴力替换就好。。。。 #include #include #include #include #include #include using namespace std; typedef long long ll; int arr[100010]; int cnt[100010]; int col[100010]; int n,a,b; char c; ...
分类:其他好文   时间:2014-10-09 02:46:29    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!