Problem Description
The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem this title.If you haven't seen it before,it doesn't m...
分类:
其他好文 时间:
2014-11-30 15:32:25
阅读次数:
110
Tempter of the Bone
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 74250 Accepted Submission(s): 20326
Problem Description
The dogg...
分类:
其他好文 时间:
2014-11-30 12:38:15
阅读次数:
169
Tempter of the Bone II
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 98304/32768 K (Java/Others)
Total Submission(s): 1529 Accepted Submission(s): 407
Problem Description
The dog...
分类:
其他好文 时间:
2014-11-29 14:39:12
阅读次数:
209
[java] view
plaincopyprint?
import java.io.BufferedInputStream;
import java.util.Scanner;
import com.sun.org.apache.regexp.internal.recompile;
public class Main {...
分类:
编程语言 时间:
2014-11-26 11:26:00
阅读次数:
319
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73911Accepted Submission(s): 20...
分类:
其他好文 时间:
2014-11-23 00:39:37
阅读次数:
277
Bone Collector
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 31922 Accepted Submission(s): 13138
Problem Description
Many year...
分类:
其他好文 时间:
2014-11-22 17:32:16
阅读次数:
228
只要每次都保存前k优解就可以了
注意当价值一样时,只算一种,所以要进行去重复 的操作
用到了unique,
1 2 2 4 0 0
unique之后1 2 4 0 0 2
Bone Collector II
Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
T...
分类:
其他好文 时间:
2014-11-21 09:12:39
阅读次数:
206
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73870Accepted Submission(s): 20...
分类:
其他好文 时间:
2014-11-21 01:28:42
阅读次数:
161
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2639题目分析:01 背包的题,不过有一点改变,不再是求最大的价值而是求第k大的价值t //表示case 个数n,m,k //表n个数,背包容量为m,第k大的价值v1,v2...vn // n个数每...
分类:
其他好文 时间:
2014-11-17 15:47:27
阅读次数:
136
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2602题意tn v //n代表数量,v 代表背包的体积v1 v2......vn//价值m1 m2 ...... mn// 体积求最大的价值01背包裸题代码#include#include#includeu...
分类:
其他好文 时间:
2014-11-16 17:11:55
阅读次数:
182