码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
POJ 2887 Big String (块状数组)
题意:给一个字符串(#include #include #include #include #include #define ll long longusing namespace std;int Maxn, N ;int sum[1005];struct BlockList{ int siz...
分类:其他好文   时间:2014-07-26 14:58:11    阅读次数:244
C3P0在Linux下的Failed to get local InetAddress for VMID解决方法
com.mchange.v2.c3p0.impl.C3P0ImplUtils generateVmId 信息: Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness java.net.UnknownHostException: Alo...
分类:Web程序   时间:2014-07-26 02:57:56    阅读次数:4343
HDU 3549 Flow Problem
最大流问题。 睡醒了,继续找个网络流的简单题来熟练。跟上一个一样。弧容量要加起来。 #include #include #include #include #include #include #include #include #include #include #include #define INF 0x7fffffff #define eps 1e-6 #define LL lo...
分类:其他好文   时间:2014-07-26 02:57:27    阅读次数:214
HDU 3172 Virtual Friends 带权并查集 -秩
ll T; while(~scanf("%d",&T)){ while(T--) {  = = ... 思路: 用秩合并,看了题解才发现 if(fx == fy)要输出当前集合的秩而不是0。。。 #include #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2014-07-26 02:14:47    阅读次数:222
HDU 2473 Junk-Mail Filter 删点并查集
删点并查集,就是用一个新的点标代替之前的点标即可。。 y一下就可以了 #include #include #include #include #include #include #include #include #include #include using namespace std; #define mod 1000000007 #define ll int #...
分类:其他好文   时间:2014-07-26 02:01:46    阅读次数:225
hdu-4302-Holedox Eating-线段树-单点更新,有策略的单点查询
一開始实在是不知道怎么做,后来经过指导,猛然发现,仅仅须要记录某个区间内是否有值就可以。flag[i]:代表i区间内,共同拥有的蛋糕数量。放置蛋糕的时候非常好操作,单点更新。ip:老鼠当前的位置寻找吃哪一个蛋糕的时候:1,要寻找0-ip这个区间内,位置最大的一个蛋糕的位置,记为ll。2,要寻找ip-...
分类:其他好文   时间:2014-07-25 14:24:21    阅读次数:231
maven 使用 问题记录
Java compiler level does not match the version of the installed Java project facet Assuming that you are using the m2e plugin in Eclipse, you‘ll need to specify the?source?and?targetversions as...
分类:其他好文   时间:2014-07-25 00:11:14    阅读次数:223
Ubuntu Server 14.04 选择中文安装后日期乱码的解决方法
Ubuntu Server 14.04选择中文安装后,默认的/etc/default/locale会使某些中文日期乱码,执行ll和date可见. /etc/default/locale 原来内容为: LANG="zh_CN.UTF-8" LANGUAGE="zh_CN:zh" LC_NUMERIC="zh_CN" LC_TIME="...
分类:其他好文   时间:2014-07-25 00:00:07    阅读次数:257
HDU 3047 Zjnu Stadium 带权并查集
gg,y一下就是每个点到根的距离用rank维护,, #include #include #include #include #include #include #include #include using namespace std; #define mod 1000000007 #define ll int #define rank Rank #define N 100100...
分类:其他好文   时间:2014-07-24 23:04:23    阅读次数:225
URAL 1750 Pakhom and the Gully 计算几何+floyd
题目链接:点击打开链接 gg。。。 #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include using namespace std; #define ll int #define point Poin...
分类:其他好文   时间:2014-07-24 12:24:55    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!