首页 > 其他
HDU 4685 Prince and Princess(二分图 + 强连通)
Problem Description There are n princes and m princesses. Princess can marry any prince. But prince can only marry the princess they DO love. For all princes,give all the princesses that they love. ...
分类:其他   时间:2015-03-21 09:50:55    收藏:0  评论:0  赞:0  阅读:423
分享本书《Activiti实战》和几个工作流的链接
现在搞工作流的,开源的很多都用Activiti,但相关的中文书其实不多,在当当上找到了一本,暂时没下载到pdf盗版,看了目录不错,特别从试读章节了解了历史,所以分享一下。...
分类:其他   时间:2015-03-21 09:50:52    收藏:0  评论:0  赞:0  阅读:4636
【BZOJ1216】【HNOI2003】操作系统 双键值堆
题解: 写个结构体,重载一下小于号,然后扔优先队列里玩。 每次进来新的任务就把这段时间分给队列里的任务修改一下,然后把新的任务入队。 水题就瞎说点什么吧。 代码: #include #include #include #include #include #define N 101000 using namespace std; struct Eli { int d,t,...
分类:其他   时间:2015-03-21 09:50:40    收藏:0  评论:0  赞:0  阅读:272
poj 1426 bfs
背景:开始看到数最多不超过100位,明显要大数做法,想不到方法,结果发现最大也不超过Long long 就直接bfs了。 思路:第一个数是1,直接在后面加1或0,变成10或11,再加1或0变成100或101或110或111......这样就变成了两个方向的bfs,显然如果知道最大位数dfs也是可行的。但是效率不高。 我的代码:#include #include #include #includ...
分类:其他   时间:2015-03-21 09:50:15    收藏:0  评论:0  赞:0  阅读:354
【BZOJ2563】阿狸和桃子的游戏 贪心
题解: PoPoQQQ大爷已经说得很详细了。 http://blog.csdn.net/PoPoQQQ/article/details/44495319 代码: #include #include #include #include #define N 10100 using namespace std; int n,m; long long ans,x[N]; int main(...
分类:其他   时间:2015-03-21 09:49:55    收藏:0  评论:0  赞:0  阅读:283
UVA - 10714 - Ants
UVA - 10714 Ants Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description Problem B: Ants An army of ants walk on a...
分类:其他   时间:2015-03-21 09:49:25    收藏:0  评论:0  赞:0  阅读:302
BZOJ-3122-随机数生成器-SDOI2013-BSGS
描述分析 关键就是对式子的变形, 将原递推公式转化为通项公式, 中间会用到等比数列求和公式. 然后切记此时方程两边同乘(1-a), 然后就化简开了. 之后得到的式子是 a^(n-1) = ... (mod p) 然后就可以用BSGS求解了. 注意最后加1. 公式明天补上 几种特判情况 : 如果a = 0, 这时 X = b, 如果t = b输出1, 否则输出-1 如果a = 1, 为什么这也要特判...
分类:其他   时间:2015-03-21 09:49:15    收藏:0  评论:0  赞:0  阅读:317
【BZOJ3620】似乎在梦中见过的样子 KMP
题解: 对于一个区间[l,r][l,r] , 若存在一个长度≥k\ge k并且r?l2 的串K,它既相同于以ll为开端的等长串,又相同于以rr为结尾的等长串,那么这个区间就是一个可行串。 我们枚举区间左端点,然后可以利用KMP在线性的时间内处理完所有的右端点对答案的贡献。 代码: #include #include #include #include #define N 160...
分类:其他   时间:2015-03-21 09:49:05    收藏:0  评论:0  赞:0  阅读:301
《Redis设计与实现》学习笔记-Sentinel(哨岗、哨兵)
Sentinel是Redis的高可用性解决方案,由一个或多个Sentinel实例组成Sentinel系统,可以用来监视任意多个主服务器和主服务器下的所有从服务器,当监视到主服务器下线之后会自动将下线主服务器下的从服务器升级为新的主服务器,由新主服务器代替已下线主服务器处理命令请求。 Sentinel是一个特殊的Redis服务器实例,Redis由一个或多个Sentinel实例构成Sentinel系...
分类:其他   时间:2015-03-21 09:48:45    收藏:0  评论:0  赞:0  阅读:422
hdu 1159 Common Subsequence(dp)
Common Subsequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 25566    Accepted Submission(s): 11361 Problem Description A sub...
分类:其他   时间:2015-03-21 09:48:15    收藏:0  评论:0  赞:0  阅读:325
poj 2533 Longest Ordered Subsequence(dp)
Longest Ordered Subsequence Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 36159   Accepted: 15882 Description A numeric sequence of ai is ordered if a1 a2 ...
分类:其他   时间:2015-03-21 09:48:05    收藏:0  评论:0  赞:0  阅读:309
hdu 1176 免费馅饼(dp)
免费馅饼 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 28619    Accepted Submission(s): 9769 Problem Description 都说天上不会掉馅饼,但有一天gamebo...
分类:其他   时间:2015-03-21 09:47:55    收藏:0  评论:0  赞:0  阅读:280
类型初始值设定项引发异常。
今天运行之前写好的代码却提示:“_23.DBhelp”的类型初始值设定项引发异常。 后来发现是webservice更新引用时出现了重复的 <endpoint address="http://10.58.656:809/Service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="WebReferencehelp.ServiceSoap" ...
分类:其他   时间:2015-03-21 09:47:45    收藏:0  评论:0  赞:0  阅读:396
剪格子—题解
1. 剪格子     如图p1.jpg所示,3 x 3 的格子中填写了一些整数。       我们沿着图中的红色线剪开,得到两个部分,每个部分的数字和都是60。       本题的要求就是请你编程判定:对给定的m x n 的格子中的整数,是否可以分割为两个部分,使得这两个区域的数字和相等。     如果存在多种解答,请输出包含左上角格子的那个区域包含的格子的最小数目。        ...
分类:其他   时间:2015-03-21 09:47:35    收藏:0  评论:0  赞:0  阅读:269
hdu 1114 Piggy-Bank(完全背包)
Piggy-Bank Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 13792    Accepted Submission(s): 6981 Problem Description Before ACM can...
分类:其他   时间:2015-03-21 09:47:25    收藏:0  评论:0  赞:0  阅读:262
hdu 1087 Super Jumping! Jumping! Jumping!(dp:上升子序列最大和)
Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24824    Accepted Submission(s): 10961 Problem Descri...
分类:其他   时间:2015-03-21 09:47:15    收藏:0  评论:0  赞:0  阅读:317
hdu1029 Ignatius and the Princess IV
Ignatius and the Princess IV Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32767 K (Java/Others) Total Submission(s): 19153    Accepted Submission(s): 7764 Problem Description...
分类:其他   时间:2015-03-21 09:47:05    收藏:0  评论:0  赞:0  阅读:277
POJ The Suspects
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 24259   Accepted: 11874 Description Severe acute respiratory syndrome (SARS), an atypical pneumo...
分类:其他   时间:2015-03-21 09:46:35    收藏:0  评论:0  赞:0  阅读:265
杂_各种IT小技巧摘录
A.如何设置环境变量?/*WIN系统,以添加mysql运行路径(C:\wamp\bin\mysql\mysql5.5.20\bin)变量为例*/ 方法一:【临时性,仅在当前cmd窗口生效】 打开cmd命令界面,输入set csc=%path%;C:\wamp\bin\mysql\mysql5.5.20\bin 方法二:【重启cmd窗口生效】 我的电脑>>属性>>高级>>环境变量>>系统变量...
分类:其他   时间:2015-03-21 09:46:25    收藏:0  评论:0  赞:0  阅读:323
杭电 HDU 1035 Robot Motion
Robot Motion Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7488    Accepted Submission(s): 3431 Problem Description A robot has b...
分类:其他   时间:2015-03-21 09:46:15    收藏:0  评论:0  赞:0  阅读:471
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!