码迷,mamicode.com
首页 >  
搜索关键字:say    ( 1472个结果
第一次集训个人赛 T1(签到题)
一、题目DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’t wr...
分类:其他好文   时间:2014-07-22 22:53:15    阅读次数:242
[leetcode]Count and Say
Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is r...
分类:其他好文   时间:2014-07-19 20:35:34    阅读次数:276
HDU 4450 Draw Something
Problem DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’...
分类:其他好文   时间:2014-07-19 18:24:12    阅读次数:205
UVA 10090 Marbles(扩展欧几里得)
Marbles Input: standard input Output: standard output I have some (say, n) marbles (small glass balls) and I am going to buy some boxes to store them. The boxes are of two types: Type 1: each ...
分类:其他好文   时间:2014-07-19 08:01:10    阅读次数:264
UVA 11534 - Say Goodbye to Tic-Tac-Toe(博弈sg函数)
UVA 11534 - Say Goodbye to Tic-Tac-Toe 题目链接 题意:给定一个序列,轮流放XO,要求不能有连续的XX或OO,最后一个放的人赢,问谁赢 思路:sg函数,每一段...看成一个子游戏,利用记忆化求sg值,记忆化的状态要记录下左边和右边是X还是O即可 代码: #include #include const int N = 105;...
分类:数据库   时间:2014-07-18 22:34:57    阅读次数:434
UVa 11583 Partitioning by Palindromes
?? Description Problem H: Partitioning by Palindromes We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome,...
分类:其他好文   时间:2014-07-18 15:13:10    阅读次数:266
ZOJ 2965 Accurately Say CocaCola
A - Accurately Say "CocaCola"!DescriptionIn a party held by CocaCola company, several students stand in a circle and play a game.One of them...
分类:其他好文   时间:2014-07-18 00:01:04    阅读次数:239
JS扩展 或 Jquery的扩展写法
//JS的扩展方法: 1 定义类静态方法扩展 2 定义类对象方法扩展 var aClass = function(){} //1 定义这个类的静态方法 aClass.sayHello = function(){ alert('say hello');...
分类:Web程序   时间:2014-07-17 22:38:35    阅读次数:307
UVA 10139 Factovisors(数论)
Factovisors The factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n * (n-1)! (n > 0) We say that a divides b if there exists an integer k such that k*a =...
分类:其他好文   时间:2014-07-17 19:05:06    阅读次数:235
ruby 变量和方法
def say_goodnight(name) result ="Good night ." +name return resultenddef say_goodmorning(name) result ="Good morning .#{name}" return resultendde...
分类:其他好文   时间:2014-07-14 14:14:34    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!