码迷,mamicode.com
首页 >  
搜索关键字:csu 1553 good subseq    ( 2571个结果
[sg函数] hdu 1847 Good Luck in CET-4 Everybody!
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1847 题目意思: 有n张牌,两个人轮流抓,每次可以抓2的幂次数量的牌,求谁会赢。 n 解题思路: sg函数简单应用。 将2的幂次表打出来。然后递推求出每个状态的sg函数,最后判断sg[n]是否为0,为0表示必输状态,否则为赢状态。 代码: //#include #includ...
分类:其他好文   时间:2014-05-15 18:23:40    阅读次数:315
成为一名优秀的C程序员
英文原文:To become a good C programmer 问题的提出 每过一段时间我总会收到一些程序员发来的电子邮件,他们会问我是用什么编程语言来编写自己的游戏的,以及我是如何学习这种编程语言的。因此,我认为在这篇博文里列出一些有关C语言的最佳读物应该能帮到不少人。如果你知道其它的...
分类:其他好文   时间:2014-05-15 10:47:00    阅读次数:390
Series Determination
Series Determination                                                                       题目描述 Boudreaux and Thibodeaux aren't very good at math, so they need you to write a program that can de...
分类:其他好文   时间:2014-05-15 01:28:56    阅读次数:313
2012年湖南省程序设计竞赛E题 最短的名字
题目链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1115解题报告:输入n个字符串,让你求出可以用来区别这些字符串的最少的前缀总共有多少个字母。可以区别是指每个字符串都取一个自己的前缀,同时保证所有取的这些前缀没有完全相同。这题用字典树可以做...
分类:其他好文   时间:2014-05-12 03:43:49    阅读次数:296
HDU 4282 A very hard mathematic problem
转载请注明出处:http://blog.csdn.net/u012860063?viewmode=contents 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4287 Problem Description   Haoren is very good at solving mathematic problems. Today...
分类:其他好文   时间:2014-05-11 12:57:48    阅读次数:356
CSU 1424 Qz’s Maximum All One Square
原题链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1424 逐渐找到做这种题的感觉了。 二分法。g[i][j]存储坐标(i, j)的值,s[i][j]存储的值为左上角为起始点(1,1),右下角为(i, j)的矩形区域内所有值的和,那么...
分类:其他好文   时间:2014-05-10 22:55:11    阅读次数:347
CSU 1030
1 #include 2 #define range 1300000 3 #define BOOL int //必须把bool,true,false这样表示出来,不然会报编译错误...不知道为什么囧... 4 #define true 1 5 #define false 0 6 BOOL p...
分类:其他好文   时间:2014-05-10 06:56:39    阅读次数:283
Now is good
每次面对选择都是寻找自我的过程。很多时候,我们想听取家人和朋友的看法,他们从不同的角度考虑问题,得到的答案往往不是那么统一,最终做决定的那个人还是自己。得到的过程多是喜悦,但选择的过程多是痛苦的,人的本性是不想舍去,想集合所有的优势。这时候静下心,问问自己追求的是什么,想要过什么样的生活,而不要被大多数人追求的是什么而迷惑。         回头看看经历的一切,每一个失败或成功都是宝贵的财富。生...
分类:其他好文   时间:2014-05-07 23:52:21    阅读次数:425
What Makes a Good Programmer Good?
I’ve worked with a lot of programmers over the years — some of them super amazing, and some distinctly lackluster. As I’ve had the pleasure of working...
分类:其他好文   时间:2014-05-07 00:33:56    阅读次数:586
codechef Top Batsmen题解
A cricket team consists of 11 players and some are good at batting, others are good at bowling and some of them are good at both batting and bowling. The batting coach wants to select exactly K player...
分类:其他好文   时间:2014-05-06 22:23:32    阅读次数:421
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!