码迷,mamicode.com
首页 >  
搜索关键字:say    ( 1472个结果
PHP_零基础学php_3PHP函数、传参函数、默认参数、函数返回值
"; echo "";}say_hello();//函数调用function say_helloS($some_name)//有参数{ echo "hello,".$some_name; echo ""; echo "";}say_helloS("tang");say_hel...
分类:Web程序   时间:2014-08-08 15:37:46    阅读次数:298
B - Phone List
Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: 1. Emergency 911 ...
分类:其他好文   时间:2014-08-08 12:49:16    阅读次数:187
C++函数覆盖的思考
最近碰到一些问题,一开始很难调试和解决,最后发现原来是在基类函数的模板方法中对子类需要重写的函数没有使用virtual,如下class Base{public: void say(){test();} void test(){}};class Child : public Base{p...
分类:编程语言   时间:2014-08-07 12:44:00    阅读次数:223
uva 11534 - Say Goodbye to Tic-Tac-Toe(Nim和)
题目链接:uva 11534 - Say Goodbye to Tic-Tac-Toe 题目大意:给定一个1*n的个子,每次操作可以选中一个未填过的个子画X或者O,如果该次操作形成了XX或者OO,那么该次操作者视为失败,人为先手,对于给定状态(注意当前状态也算在步数中),问是否可以战胜电脑。 解题思路:对于固定长度,两端的可能有空,X,O,组合情况共有9种,虽然有些情况等价,但是为方便...
分类:数据库   时间:2014-08-07 00:52:07    阅读次数:328
HDU2391 Filthy Rich 【DP】
Filthy Rich Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1793    Accepted Submission(s): 815 Problem Description They say tha...
分类:其他好文   时间:2014-08-06 10:39:01    阅读次数:209
Count and Say leetcode java
题目:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read ....
分类:编程语言   时间:2014-08-04 04:11:06    阅读次数:293
POJ - 1436 Horizontally Visible Segments
Description There is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connected by a horizontal line segment that does not ...
分类:其他好文   时间:2014-08-03 23:16:26    阅读次数:412
欢迎来到Go 编程语言指南。
the first projectpackage mainimport "fmt"func main() { fmt.Println("Hello, 世界")}和往常一样,先对世界say hello
分类:编程语言   时间:2014-08-02 20:42:23    阅读次数:184
HDU 4906 Our happy ending
题意: Given a sequence a_1,a_2,...,a_n, if we can take some of them(each a_i can only be used once), and they sum to k, then we say this sequence is a ....
分类:移动开发   时间:2014-08-01 18:43:02    阅读次数:350
CF 17B Hierarchy
Nick's company employed n people. Now Nick needs to build a tree hierarchy of «supervisor-surbodinate» relations in the company (this is to say that each employee, except one, has exactly one superv...
分类:其他好文   时间:2014-07-30 10:06:53    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!