码迷,mamicode.com
首页 >  
搜索关键字:sticks    ( 387个结果
UVA_10902_Pick-up Sticks
#include #include #include #include #include #include #include #include #include #include #include #pragma warning(disable:4996) using std::cin; using std::cout; using std::endl; using std::stringstre...
分类:其他好文   时间:2016-05-13 01:46:09    阅读次数:185
uva 10003 Cutting Sticks
题目: F - Cutting Sticks Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu You have to cut a wood stick into pieces. The most a?ordable company, The Analog Cutting Machinery, Inc...
分类:其他好文   时间:2016-05-12 21:07:59    阅读次数:155
poj2513 Colored Sticks (欧拉通路+Trie树+并查集)
D - Colored Sticks Crawling in process... Crawling failed Time Limit:5000MS     Memory Limit:128000KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 2513 Appoint des...
分类:其他好文   时间:2016-05-12 11:24:51    阅读次数:216
HDU 5543 Pick The Sticks (01背包)
题意:输入t,表示t组样例, 输入n,len,表示物品的个数和容器长度。输入n行a,v表示没个物品的长度和价值。每个物品只要能有一半放在容器上就可以(为了平衡,如果是一个物品的话不论它有多长都可以放在这个容器上),不可以重叠,求这个容器可以放最大的价值是多少。 分析:dp[i][j][k]表示前i个 ...
分类:其他好文   时间:2016-05-11 01:18:09    阅读次数:166
HDU1051
Wooden Sticks Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17345    Accepted Submission(s): 7065 Problem Description There is a pile...
分类:其他好文   时间:2016-05-07 11:03:03    阅读次数:214
HDU 1051 - Wooden Sticks
贪心吧 保证一维非递减的情况下,计算另一维上最少有几个非递减序列,就是答案 ...
分类:其他好文   时间:2016-05-03 23:58:01    阅读次数:411
poj 1065 Wooden Sticks / hdu 1257 最少拦截系统 DP 贪心
POJ 1065(贪心) AC代码: POJ 1065(DP) AC代码: ...
分类:其他好文   时间:2016-05-03 16:16:21    阅读次数:150
Pick-up sticks--poj2653(判断两线段是否相交)
http://poj.org/problem?id=2653 题目大意:有n根各种长度的棍 一同洒在地上 求在最上面的棍子有那几个 分析: 我刚开始想倒着遍历 因为n是100000 想着会超时吧 后来一看说 在上面的不会超过1000个 这就放心了 简单优化一下就过了 最后一个肯定是在最上面的 让后从 ...
分类:其他好文   时间:2016-04-25 19:19:56    阅读次数:184
hdu 1147(线段相交)
Pick-up sticks Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2673 Accepted Submission(s): 975 P ...
分类:其他好文   时间:2016-04-24 18:33:19    阅读次数:272
1051 Wooden Sticks(贪心-3)
Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a ...
分类:其他好文   时间:2016-04-06 21:29:03    阅读次数:225
387条   上一页 1 ... 15 16 17 18 19 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!