"; 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
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
最近碰到一些问题,一开始很难调试和解决,最后发现原来是在基类函数的模板方法中对子类需要重写的函数没有使用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
题目大意:给定一个1*n的个子,每次操作可以选中一个未填过的个子画X或者O,如果该次操作形成了XX或者OO,那么该次操作者视为失败,人为先手,对于给定状态(注意当前状态也算在步数中),问是否可以战胜电脑。
解题思路:对于固定长度,两端的可能有空,X,O,组合情况共有9种,虽然有些情况等价,但是为方便...
分类:
数据库 时间:
2014-08-07 00:52:07
阅读次数:
328
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
题目: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
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
the first projectpackage mainimport "fmt"func main() { fmt.Println("Hello, 世界")}和往常一样,先对世界say hello
分类:
编程语言 时间:
2014-08-02 20:42:23
阅读次数:
184
题意: 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
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