码迷,mamicode.com
首页 >  
搜索关键字:room escape    ( 1824个结果
M - Escape - HDU 3605 - (缩点+最大流SAP)
题目大意:2012世界末日来了,科学家发现了一些星球可以转移人口,不过有的人可以在一些星球上生存有的人不行,而且每个星球都有一定的承载量,现在想知道是否所有的人都可以安全转移呢?输入:首先输入一个N和M,表示人数和星球数,接着输入N行,每行有M个01组成的数,0表示第Ni个人无法再Mj号星球上生存,...
分类:其他好文   时间:2015-08-13 11:51:08    阅读次数:167
【期望DP】 ZOJ 3640 Help Me Escape
通道题意:吸血鬼在一个洞穴遍地的地方,他拥有初始战斗力,如果战斗力大于了洞穴的c值他就能花时间逃出去,否则他的战斗力增加c,然后随机选择下一个要去的洞穴,问他出去所花时间的期望思路:设dp[v] ,表示当能力值为v的时的期望。所以方程很容易写了,dp[v] = sum{ ti/n }(v直接逃出去)...
分类:其他好文   时间:2015-08-12 21:27:55    阅读次数:114
JS encode decode
网上查到的全都是escape,和需要的编码不是一回事,好不容易找到的结果 保存下来以备以后使用js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递...
分类:Web程序   时间:2015-08-11 00:02:32    阅读次数:172
编码问题杂记
类似这种的:\u3455\u5783  为unicode,item = item.encode('raw_unicode_escape') 编码: item = item.encode('utf-8') 什么编码怎么解码。...
分类:其他好文   时间:2015-08-10 22:13:10    阅读次数:122
[LeetCode] Meeting Rooms II
The idea is to group those non-overlapping meetings in the same room and then count how many rooms we need. You may refer to this link.The code is as ...
分类:其他好文   时间:2015-08-08 14:58:54    阅读次数:690
FZU 2196 Escape(BFS预处理+BFS搜索)
Problem 2196 Escape Accept: 123    Submit: 678 Time Limit: 1000 mSec    Memory Limit : 32768 KB Problem Description 小明进入地下迷宫寻找宝藏,找到宝藏后却发生地震,迷宫各处产生岩浆,小明急忙向出口处逃跑。如果丢下宝藏,小明就能迅速离开迷宫,但小明并不想...
分类:其他好文   时间:2015-08-08 13:36:02    阅读次数:107
CodeForces 567B Berland National Library(模拟)(简单)
CodeForces 567B Berland National Library(模拟)(简单)Berland National Library has recently been built in the capital of Berland. In addition, in the library you can take any of the collected works of Berland leaders, the library has a reading room....
分类:其他好文   时间:2015-08-07 14:48:09    阅读次数:143
sql删除重复数据
--删除重复数据delete from PMS_Contract_LeasedRoom where LeasedRoomId not in(select max(LeasedRoomId) from PMS_Contract_LeasedRoom group by ContractCode,Room...
分类:数据库   时间:2015-08-06 20:14:03    阅读次数:199
POJ 1087--A Plug for UNIX【最大流dinic】
A Plug for UNIX Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 14711   Accepted: 4959 Description You are in charge of setting up the press room for the i...
分类:其他好文   时间:2015-08-06 15:10:40    阅读次数:83
ProjectSend R561 SQL INJ Analysis
注入出现在./client-edit.php中 1 ...... 2 if (isset($_GET['id'])) { 3 $client_id = mysql_real_escape_string($_GET['id']); 4 /** 5 * Check if the...
分类:数据库   时间:2015-08-05 22:07:56    阅读次数:456
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!