码迷,mamicode.com
首页 >  
搜索关键字:cutting sticks    ( 605个结果
Sticks(poj1011/uva307)
题目大意:乔治有一些碎木棒,是通过将一些相等长度的原始木棒折断得到的,给出碎木棒的总数和各自的长度,求最小的可能的原始木棒的长度;(就是将一些正整数分组,每组加起来和相等,使和尽可能小)一开始做poj 32ms过,但uva3000 ms 都超时。。。而且poj discuss里给出了一组bT数据,最...
分类:其他好文   时间:2014-07-29 12:11:26    阅读次数:173
程序员不能不知道的那些“第一”
摘要:上次小编介绍了三位计算机领域的大神:计算机之父艾伦·麦席森·图灵、Hadoop之父Doug Cutting和Amazon AWS推动者Werner Vogels,他们分别因为超凡的创造力、顶级的成功技术、扬名天下的项目而被我们熟知。今天小编接着聊一聊那些我们终其一生都无法超越的程序员,当然,今天的会有所不同哦。 世界上第一个程序员是个女士 1815年出生于伦敦的阿达·洛芙...
分类:其他好文   时间:2014-07-28 15:47:53    阅读次数:324
Cutting Sticks
uva10003:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=944题意:给你一个木棍,然后让你切n刀,每次切都会有一个费用。例如,假如说一开始木棍长是1...
分类:其他好文   时间:2014-07-27 11:06:12    阅读次数:219
hdu1455 Sticks 深搜 强剪枝
题意:给多组数据,每组数据代表一些小木棍,能否将它们全部用完组成(尽量)多个相同长度的长棍,并输出长棍的长度...
分类:其他好文   时间:2014-07-26 17:24:32    阅读次数:493
poj2513Colored Sticks(欧拉通路+字典树+并查集)
Description You are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a straight line such that the colors of the endpoin...
分类:其他好文   时间:2014-07-26 15:24:43    阅读次数:294
Codeforces Round #258 (Div. 2) A. Game With Sticks(数学题)
Codeforces Round #258 (Div. 2) A. Game With Sticks(数学题)...
分类:其他好文   时间:2014-07-26 15:21:26    阅读次数:205
Codeforces Round #258
A.Game With Sticks 就发现选定一个点之后,会删除相应的行列,即n-1,m-1,所以只需要看min(n,m)是基是偶#include #include #include using namespace std;int n, m;int main(){#ifdef LOCAL ...
分类:其他好文   时间:2014-07-26 14:00:25    阅读次数:226
A. Game With Sticks
其实就会找出xy最小的一个,再判断奇偶就OK #include #include using namespace std; int main(){     int x,y;     while(cin>>x>>y){         int t=x>y?y:x;         if(t%2==0)             printf("Malvika\n");       ...
分类:其他好文   时间:2014-07-26 03:02:56    阅读次数:197
Codeforces Round #258 (Div. 2)-(A,B,C,D,E)
A:Game With Sticks 水题。。。每次操作,都会拿走一个横行,一个竖行。 所以一共会操作min(横行,竖行)次。 #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,1024000000") using...
分类:其他好文   时间:2014-07-26 02:44:06    阅读次数:278
HDU 1518 Square
Sticks Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description George took sticks o...
分类:其他好文   时间:2014-07-26 02:37:36    阅读次数:179
605条   上一页 1 ... 55 56 57 58 59 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!