码迷,mamicode.com
首页 >  
搜索关键字:zoj 3626 treasure hu    ( 3951个结果
“大型票务系统”和“实物电商系统”在接入管理方面的差异
讨论请移步:http://blog.csdn.net/hu_zhenghui/article/details/27584047相关文章:《今天你买到票了吗?——从铁道部12306.cn站点漫谈电子商务站点的“海量事务快速处理”系统》不能简单套用“实物电商系统”对“大型票务系统”做需求分析“大型票务系...
分类:其他好文   时间:2014-07-16 23:13:11    阅读次数:190
ZOJ 2971 Give Me the Number;ZOJ 2311 Inglish-Number Translator (字符处理,防空行,strstr)
ZOJ 2971 Give Me the Number题目ZOJ 2311Inglish-Number Translator 题目//两者题目差不多,细节有点点不一样,因为不是一起做的,所以处理方式有一点点不一样——还是前一个方式高端呀。//ZOJ 2971 的AC代码(用了strstr函数):#i...
分类:其他好文   时间:2014-06-27 17:11:36    阅读次数:282
zoj 3792 Romantic Value(最小割下边数最小)
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5300 大致题意:给出一个无向图,以及起点与终点。要删除一些边使得起点与终点不连通,在删掉边的权值之和最小的情况下要求删除的边数尽量少。求出一个比值:剩余边数权值和/删除的边数。 思路:删除边的权值之和最小显然是求最小割即最大流。但同时要求删除边数最少,解决方...
分类:其他好文   时间:2014-06-27 08:08:26    阅读次数:177
zoj 3332 Strange Country II
DFS+回溯...
分类:其他好文   时间:2014-06-26 12:12:01    阅读次数:266
zoj-3640-Help Me Escape-概率DP
dp[x]:能力为x的时候,逃出的期望。 则,可以根据x,来算出期望的公式。 #include #include #include #include using namespace std; #define maxn 110000 #define eps 1e-6 #define zero(x) (fabs(x)<0?0:x) double dp[maxn]; int c[maxn]; in...
分类:其他好文   时间:2014-06-24 23:43:09    阅读次数:289
POJ 1066 Treasure Hunt(线段相交&&转换)
Treasure Hunt 大意:在一个矩形区域内,有n条线段,线段的端点是在矩形边上的,有一个特殊点,问从这个点到矩形边的最少经过的线段条数最少的书目,穿越只能在中点穿越。 思路:需要巧妙的转换一下这个问题,因为从一个点到终点不可能“绕过”围墙,只能穿过去,所以门是否开在中点是无所谓的,只要求四周线段中点到终点的线段与墙的最少交点个数即可。更进一步,实际上,只需判断四周围...
分类:其他好文   时间:2014-06-24 19:44:38    阅读次数:196
zoj 2112 Dynamic Rankings(主席树&动态第k大)
Dynamic Rankings Time Limit: 10 Seconds      Memory Limit: 32768 KB The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply...
分类:其他好文   时间:2014-06-22 17:04:16    阅读次数:182
zoj-3790-Consecutive Blocks
使用l,r指针游动。 然后使用记录游动过程中的最大值。 我离散化了一下。 #include #include #include #include #include #include using namespace std; #define maxn 110000 mapmp; struct list { int x; int get; int lose; in...
分类:其他好文   时间:2014-06-22 11:52:02    阅读次数:226
zoj-3795-Grouping-tarjan缩点求最长路
用tarjan进行缩点。 然后用dfs求最长路。水体。。。 #include #include #include #include #include #include #include using namespace std; #define maxn 110000 vectorold[maxn]; vectorvec[maxn]; int dnf[maxn],low[maxn],instac...
分类:其他好文   时间:2014-06-22 11:51:01    阅读次数:203
zoj-3792-Romantic Value-最小割+数值转化
如果不需要求边的个数的话,就是一个裸的最小割问题。 求边的个数就用边的权值记录一下。 #include #include #include #include #include using namespace std; #define INF 99999999 #define LL long long const LL maxn =55; const LL maxm =4400; con...
分类:其他好文   时间:2014-06-22 11:15:00    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!