码迷,mamicode.com
首页 >  
搜索关键字:sticks    ( 387个结果
Codeforces Round #533 (Div. 2) A. Salem and Sticks(暴力)
A. Salem and Sticks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Salem and Sticks t ...
分类:其他好文   时间:2019-01-20 23:31:59    阅读次数:193
Sticks HDU - 1455 (未完成)
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina ...
分类:其他好文   时间:2018-11-05 01:15:31    阅读次数:144
Colored Sticks POJ - 2513(trie树欧拉路)
题意: 就是无向图欧拉路 解析: 不能用map。。超时 在判断是否只有一个联通的时候,我比较喜欢用set,但也不能用set,会超时,反正不能用stl emm 用trie树来编号就好了 ...
分类:其他好文   时间:2018-10-09 18:09:10    阅读次数:145
HDU 1005 Wooden Sticks
http://acm.hdu.edu.cn/showproblem.php?pid=1051 Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known i ...
分类:其他好文   时间:2018-09-25 12:37:35    阅读次数:149
HDU 1051 Wooden Sticks
Wooden Sticks Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25661 Accepted Submission(s): 10401 ...
分类:其他好文   时间:2018-09-24 16:53:08    阅读次数:182
POJ-2452 Sticks Problem 二分+RMQ
题目链接: https://cn.vjudge.net/problem/POJ-2452 题目大意: 给出一个数组a,求最大的j-i满足 i<j && a[i] ... a[j]中最大值为a[j],最小值为a[i]。 思路: 可以枚举i,然后二分找出满足的最大的j 首先,先二分找出最大的r,满足从a ...
分类:其他好文   时间:2018-08-30 21:05:49    阅读次数:184
poj-1011 sticks(搜索题)
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina ...
分类:其他好文   时间:2018-08-18 22:26:30    阅读次数:245
POJ 1011 Sticks 【DFS 剪枝】
题目链接:http://poj.org/problem?id=1011 Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 154895 Accepted: 37034 Description George took s ...
分类:其他好文   时间:2018-08-18 13:51:46    阅读次数:135
UVA-10003 Cutting Sticks 动态规划 找分界点k的动规
题目链接: 题意 有根棍子,上面有些分割点(n include include using namespace std; const int maxn=50+20, INF=0x3f3f3f3f; int n, l; int pos[maxn], data[maxn][maxn]; int dp(i ...
分类:其他好文   时间:2018-08-07 20:37:49    阅读次数:123
UVA307 Sticks
题意:一组等长的木棒,将它们随机的砍掉,得到若干根小木棍, 每一节小棍的长度都不超过50个单位。然后想把这些木棍拼接起来,恢复到裁剪前的状态, 但忘记了初始时有多少木棒以及木棒的初始长度。计算木棒的可能最小长度,每一节木棍的长度都用大于零的整数表示。 输入包含多组数据 这题很经典(有毒啊) 首先,对 ...
分类:其他好文   时间:2018-08-05 21:34:54    阅读次数:119
387条   上一页 1 ... 3 4 5 6 7 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!