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,但相关的中文书其实不多,在当当上找到了一本,暂时没下载到pdf盗版,看了目录不错,特别从试读章节了解了历史,所以分享一下。...
分类:
其他 时间:
2015-03-21 09:50:52
收藏:
0 评论:
0 赞:
0 阅读:
4636
题解:
写个结构体,重载一下小于号,然后扔优先队列里玩。
每次进来新的任务就把这段时间分给队列里的任务修改一下,然后把新的任务入队。
水题就瞎说点什么吧。
代码:
#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
背景:开始看到数最多不超过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
题解:
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
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
描述分析
关键就是对式子的变形, 将原递推公式转化为通项公式, 中间会用到等比数列求和公式. 然后切记此时方程两边同乘(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
题解:
对于一个区间[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
Sentinel是Redis的高可用性解决方案,由一个或多个Sentinel实例组成Sentinel系统,可以用来监视任意多个主服务器和主服务器下的所有从服务器,当监视到主服务器下线之后会自动将下线主服务器下的从服务器升级为新的主服务器,由新主服务器代替已下线主服务器处理命令请求。
Sentinel是一个特殊的Redis服务器实例,Redis由一个或多个Sentinel实例构成Sentinel系...
分类:
其他 时间:
2015-03-21 09:48:45
收藏:
0 评论:
0 赞:
0 阅读:
422
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
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
免费馅饼
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
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
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
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
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
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
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