码迷,mamicode.com
首页 >  
搜索关键字:cutting sticks    ( 605个结果
poj 1011 Sticks
DescriptionGeorge 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 ...
分类:其他好文   时间:2014-05-30 23:00:32    阅读次数:395
poj 2362 Square
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, ...
分类:其他好文   时间:2014-05-30 21:21:54    阅读次数:284
POJ 1065 Wooden Sticks Greed,DP
排序后贪心或根据第二关键字找最长下降子序列#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#i...
分类:其他好文   时间:2014-05-08 19:36:06    阅读次数:267
POJ-1011-Sticks
题目链接:http://poj.org/problem?id=1011 这道题用到了深搜+剪枝。 #include #include #include using namespace std; int a[65]; int vis[65]; int n; int cmp(int x,int y) { return x>y; } int dfs(int len,int need,int ...
分类:其他好文   时间:2014-05-05 13:28:57    阅读次数:290
codechef Cutting Recipes题解
Cutting Recipes The chef has a recipe he wishes to use for his guests, but the recipe will make far more food than he can serve to the guests. The chef therefore would like to make a reduced ve...
分类:其他好文   时间:2014-05-04 17:54:01    阅读次数:387
605条   上一页 1 ... 59 60 61
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!