Problem Description
N(3
Each player has a unique skill rank. To improve their skill rank, they often compete with each other. If two players want to compete, they must choose a referee among oth...
分类:
其他好文 时间:
2014-08-23 15:27:21
阅读次数:
253
Variables: Descriptive_NameConstants:Descriptive_NameUser-defined types:Type Descriptive_Name Descriptive_Name End TypeEnumer...
分类:
其他好文 时间:
2014-08-22 10:34:25
阅读次数:
151
poj 3111 K Best
有n个物品的重量和价值分别是wi和vi。从中选出k个物品使得单位重量的价值最大。
题解:
1、二分做法
2、牛顿迭代
效率比较:
二分做法:
转换成判断是否存在选取K个物品的集合S满足下面的条件:
sigma(vi) / sigma(wi) >= x {vi∈S, wi∈S}
--> simga...
分类:
其他好文 时间:
2014-08-21 17:14:44
阅读次数:
254
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2680Choose the best routeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others...
分类:
其他好文 时间:
2014-08-20 21:05:22
阅读次数:
216
jq function changeStreet(a){ var valk=$(a).html(); $(a).parents(".select_box").children(".select_choose").children(".hadSelect").text(valk); $(a)...
分类:
其他好文 时间:
2014-08-20 19:30:12
阅读次数:
219
Under yourQuartus II folder, go to bin->cygwin->bin folder, select the following files in the list below and then right-click and choose Properties.Un...
分类:
移动开发 时间:
2014-08-20 17:45:02
阅读次数:
308
题目链接:
huangjing
思路:
选取字典序最小的串,那么值得考虑的是当两端出现相等时,继续比较,直到出现不同的结果。。
题目:
代码:
#include
int main()
{
__int64 sum;
int max_num,candy,t,n,i;
scanf("%d",&t);
while(t--)
{...
分类:
其他好文 时间:
2014-08-20 16:23:02
阅读次数:
236
题意 给你一个字符序列 你每次可以从它的头部或尾部拿出一个字符组成一个新的字符序列 输出这样做能达到的最小的字符序列 每行最多输出80个字符(开始被这个坑了好久)
直接模拟就行 哪边小就选哪边 相等就往内看
#include
#include
#include
using namespace std;
const int N = 30010;
int main()
{
...
分类:
其他好文 时间:
2014-08-19 20:54:15
阅读次数:
255
Google Book
Time Limit: 1000MS
Memory Limit: 32768KB
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You, the best hacker in the world, w...
分类:
其他好文 时间:
2014-08-19 20:50:15
阅读次数:
237
Google Book
Time Limit: 1 Second
Memory Limit: 32768 KB
You, the best hacker in the world, want to download the books published on Google Book. After some investigation, you found that...
分类:
其他好文 时间:
2014-08-19 16:38:05
阅读次数:
222