Recommended BooksHere is a list of books which I have read and feel it is worth recommending to friends who are interested in computer science.Machine...
分类:
其他好文 时间:
2015-05-02 19:25:25
阅读次数:
127
POJ2135 Farm Tour 最大流 最小费用流
When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of which contains his house and the Nth of which contains the big barn. A total M (1 <...
分类:
其他好文 时间:
2015-04-29 11:54:17
阅读次数:
151
ial JudgePrevSubmitStatusStatisticsDiscussNextType:NoneTag it!Johnny and his friends have decided to spend Halloween night doing the usual candy colle...
分类:
其他好文 时间:
2015-04-28 22:38:57
阅读次数:
428
Problem G
Probability|Given
Input: Standard Input
Output: Standard Output
N friends go to the local super market together. The probability of their buying something from the market is respectiv...
分类:
其他好文 时间:
2015-04-28 09:49:46
阅读次数:
145
Problem Description
Ant Country consist of N towns.There are M roads connecting the towns.
Ant Tony,together with his friends,wants to go through every part of the country.
They intend to visit every road , and every road must be visited for exact one t...
分类:
其他好文 时间:
2015-04-27 13:22:54
阅读次数:
148
One of my friends asked me to do a favor for her. She said her friend deleted some important chat messages by “accident”, and her friend want to recov...
分类:
其他好文 时间:
2015-04-26 10:48:03
阅读次数:
276
DescriptionEmma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping ...
分类:
其他好文 时间:
2015-04-25 10:40:38
阅读次数:
121
Problem DescriptionThere are n men ,every man has an ID(1..n).their ID is unique. Whose ID is i and i-1 are friends, Whose ID is i and i+1 are friends...
分类:
其他好文 时间:
2015-04-24 01:00:17
阅读次数:
177
其实还是穷举子集类的dp,一般这种dp我们只需要用一个一维的滚动数组就可以了,但是这个题目状态转移的时候不但可能向后还有可能向前,所以这次得用二维数组.
状态方程 dp[i][j]=dp[i-1][j]+dp[i-1][j^num[i]],分别表示第i个数不取和第i个数取情况下状态.代码如下:#include
#include
#include...
分类:
移动开发 时间:
2015-04-23 00:07:15
阅读次数:
155
ZOJ 3710 Friends(数学啊 )...
分类:
其他好文 时间:
2015-04-22 20:46:13
阅读次数:
111