uva11584:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2631题意:给你一个串,问你这个串最少被划分成多少个子串,才能使得每个子串都是回文子串。题...
分类:
其他好文 时间:
2014-07-03 21:52:42
阅读次数:
237
UVALive:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1504题意:给你一个长度为L的盒子,然后有n个物品,然后给出每个物品的长度,...
分类:
其他好文 时间:
2014-07-03 20:36:08
阅读次数:
250
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-07-03 20:34:46
阅读次数:
193
最近几天散搞哭了,都怪以前看到没好好学。。。 就拿一道题来说事PKU:1151,以前Matrix67写过这道题的BLOG,引用一下: VOJ1056(http://www.vijos.cn/Problem_Show.asp?id=1056) 永远是离散化的经典问题。大意是给定平面上的n个矩形(坐标为...
分类:
其他好文 时间:
2014-07-02 17:29:09
阅读次数:
247
Problem Statement
Rabbits often feel hungry, so when they go out to eat carrots, they jump as quickly as possible.
Initially, rabbit Hanako stands at position init. From position x, she ...
分类:
其他好文 时间:
2014-07-02 17:02:04
阅读次数:
201
题意:题意:给你3个字符串s1,s2,s3;要求对三个字符串中的字符赋值(相同的字符串进行相同的数字替换),
替换后的三个数进行四则运算要满足左边等于右边,求有几种解法。
Sample Input
2
A A A
BCD BCD B
Sample Output
5
72
eg:ABBDE ABCCC BDBDE ;...
分类:
其他好文 时间:
2014-07-02 16:59:34
阅读次数:
242
JAVA大数....
字串数
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 2893 Accepted Submission(s): 679
Problem Description
一个A和两个B...
分类:
其他好文 时间:
2014-07-02 16:43:57
阅读次数:
194
Pick-up sticks
Problem Description
Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks,...
分类:
其他好文 时间:
2014-07-02 15:29:53
阅读次数:
295
To avoid health problem, you can filter home air. Air purifier filter can help you eliminate pollutants. A HEPA or High Efficiency Particulate Air fil...
分类:
其他好文 时间:
2014-07-02 14:10:03
阅读次数:
256
Atlantis
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6386 Accepted Submission(s): 2814
Problem Description
There are several anc...
分类:
其他好文 时间:
2014-07-02 08:11:10
阅读次数:
263