码迷,mamicode.com
首页 >  
搜索关键字:head    ( 28286个结果
Java Tail Recursion
Recursion. ?????/** ?????*?sum?from?1?to?n.?recursion ?????*?@param?i ?????*?@return?sum? ?????*/ ????public?int?recur_head(int?i){ ????????Syste...
分类:编程语言   时间:2014-08-23 20:26:41    阅读次数:178
UVa558_Wormholes(最短路)(小白书图论专题)
解题报告 思路: spfa判负环。 #include #include #include #include #define inf 0x3f3f3f3f #define N 40000 #define M 100000 using namespace std; struct node { int v,w,next; } edge[M]; int head[N],dis[N],...
分类:其他好文   时间:2014-08-23 20:25:41    阅读次数:261
POJ训练计划2195_Going Home(网络流/费用流)
解题报告 题目传送门 思路: bfs建图跑一下费用流就行。 #include #include #include #include #define inf 0x3f3f3f3f using namespace std; struct E { int v,cost,cap,next; } edge[100000]; int head[1000],cnt,dis[1000],...
分类:其他好文   时间:2014-08-23 19:07:51    阅读次数:243
UVa10986_Sending email(最短路)(小白书图论专题)
解题报告 思路: 裸裸的最短路。 #include #include #include #include #define inf 0x3f3f3f3f #define N 40000 #define M 100000 using namespace std; struct node { int v,w,next; }edge[M]; int head[N],dis[N],vi...
分类:其他好文   时间:2014-08-23 19:05:51    阅读次数:162
hdu 4971 多校10最大权闭合图
/* 很明显的最大权闭合图题 */ #include #include #include using namespace std; #define N 2100 #define inf 0x3fffffff struct node { int u,v,w,next; }bian[N*N*20]; int head[N],yong,dis[N],work[N]; void init(){ yong=...
分类:其他好文   时间:2014-08-23 16:51:11    阅读次数:251
差分约束+SPFA+栈
#include #include #include #include #define INF 0x3f3f3f3fusing namespace std;struct node{ int u,v,w,next;}edge[150001];int head[30001],dis[30001],...
分类:其他好文   时间:2014-08-23 09:55:10    阅读次数:186
Head first javascript(三)
setTimeout, 单位是毫秒setTimeout ( time code, timer delay );eg:setTimeout("alert('wake up!')", 100000);The document object表示网页代码本身修改用户窗口(不是整个浏览器)的大小,可以用bod...
分类:编程语言   时间:2014-08-23 08:46:10    阅读次数:200
使Div滚动条始终处于底部
<!DOCTYPEhtmlPUBLIC><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title>无标题文档</title><scripttype="text/javascript"> functionadd(){ varnow=newDate(); varnowtime=now.getFullYear()+..
分类:其他好文   时间:2014-08-22 18:12:50    阅读次数:157
Head First Java ——我的Java入门书
大二下学期,刚教完C++便开始对自己所学的东西产生质疑。 我们了一年多,学了C,学了C++,学了数据结构可是为什么我所能做的还只是局限于刷OJ呢?(当然OJ刷的也不多)还不如读数媒专科的同学至少能用FLASH做个游戏出来。然后偶然看到舍友的这本书,之前也一直听说Java对工程项目的可用性,所以也就开始了我的Java之路。 之前看过谭浩强的C,浅显易懂,但是总觉得是应试教育的一种...
分类:编程语言   时间:2014-08-22 14:34:09    阅读次数:230
POJ训练计划2983_Is the Information Reliable?(差分约束)
解题报告 思路: 求解: p:a-b=x v:a-b>=1 的方程 #include #include #include #include #define inf 0x3f3f3f3f using namespace std; struct node { int v,w,next; } edge[220000]; int head[1111],dis[1111],vis...
分类:其他好文   时间:2014-08-22 14:29:28    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!