帖子URL: {url}帖子标题: {title}附件图片: {pic}帖子内容: {summary}楼主: {author}楼主UID: {authorid}楼主头像: {avatar}楼主头像(中): {avatar_middle}楼主头像(大): {avatar_big}帖子图标: {icon...
分类:
其他好文 时间:
2014-08-06 21:58:42
阅读次数:
2893
题意:要造一个圣诞树(可以想象成倒过来的树结构),有n个节点,m条边,并告诉你边的信息,两条边之间有个单位造价,
一条树枝的造价=它上面的节点的重量以及节点子树的重量 * 这条树枝的单位造价。
需求出造这个圣诞树的最小造价,也有可能造不出。
画画图可以看出,总造价 = 每一点的重量 * 它到节点的最短路径,所以这道题其实就是个最短路
题目比较坑,dist数组会越界,需用long l...
分类:
其他好文 时间:
2014-08-06 19:09:12
阅读次数:
249
Problem Description
Given two matrices A and B of size n×n, find the product of them.
bobo hates big integers. So you are only asked to find the result modulo 3.
Input
The input con...
分类:
其他好文 时间:
2014-08-06 14:58:51
阅读次数:
220
所谓PhraseQuery,就是通过短语来检索,比如我想查“big car”这个短语,那么如果待匹配的document的指定项里包含了"big car"这个短语,这个document就算匹配成功。可如果待匹配的句子里包含的是“big black car”,那么就无法匹配成功了,如果也想让这个匹配,....
分类:
其他好文 时间:
2014-08-06 14:25:51
阅读次数:
248
Problem DescriptionGiven two matrices A and B of size n×n, find the product of them.bobo hates big integers. So you are only asked to find the result ...
分类:
其他好文 时间:
2014-08-06 01:43:40
阅读次数:
334
Problem Description
Given two matrices A and B of size n×n, find the product of them.
bobo hates big integers. So you are only asked to find the result modulo 3.
Input
The input consists of...
分类:
其他好文 时间:
2014-08-05 22:38:00
阅读次数:
248
1. Not care/give two hoots这个习语在英文中表示“根本不在乎”,有种嗤之以鼻,压根儿瞧不上的赶脚。例:I don't care two hoots about having money, as long as I'm happy.只要开心,我根本不在乎有没有钱。2. Big ...
分类:
其他好文 时间:
2014-08-05 18:35:19
阅读次数:
207
Big NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25649Accepted Submission(s): 11635Proble...
分类:
其他好文 时间:
2014-08-05 10:55:29
阅读次数:
276
BabelfishTime Limit:3000MSMemory Limit:65536KTotal Submissions:32169Accepted:13832DescriptionYou have just moved from Waterloo to a big city. The peop...
分类:
其他好文 时间:
2014-08-05 00:24:18
阅读次数:
336
Big String
Time Limit: 2 Seconds Memory Limit: 65536 KB
We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). R...
分类:
其他好文 时间:
2014-08-02 21:02:04
阅读次数:
291