
NYOJ
hpulw
一个人一座城.....
展开
-
ny860(又见01背包)
ny860又见01背包 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 有n个重量和价值分别为wi 和 vi 的物品,从这些物品中选择总重量不超过 W 的物品,求所有挑选方案中物品价值总和的最大值。 1 1 1 1 输入 多组测试数据。 每组测试数据第一行输入,n 和 W ,接下来有n行,每行输入两个数,代表第i个物品的原创 2016-03-01 11:39:59 · 391 阅读 · 0 评论 -
CodeForces 618B (找规律)
CodeForces 618B Description Bob has a permutation of integers from 1 to n. Denote this permutation as p. The i-th element of p will be denoted as pi. For all pairs of distinct integers原创 2016-03-30 22:11:21 · 563 阅读 · 0 评论 -
poj1700(ny47)(过河问题)(贪心)
poj1700(ny47)(过河问题)(贪心) Crossing River Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 12680 Accepted: 4828 Description A group of N people wishes t原创 2016-03-26 17:46:00 · 873 阅读 · 1 评论