数组函数函数名描述实例输入输出备注数组创建: array()生成一个数组$a=array("Dog","Cat","Horse"); print_r($a);数组值或,键=>值一个数组型变量 array_combine()生成一个数组,用一个数组的值作为键名,另一个数组...
分类:
Web程序 时间:
2015-08-28 00:32:15
阅读次数:
192
一棵树,边长都是1,问这棵树有多少点对的距离刚好为k令tree(i)表示以i为根的子树dp[i][j][1]:在tree(i)中,经过节点i,长度为j,其中一个端点为i的路径的个数dp[i][j][0]:在tree(i)中,经过节点i,长度为j,端点不在i的路径的个数则目标:∑(dp[i][k][0...
分类:
其他好文 时间:
2015-08-27 21:03:47
阅读次数:
214
题目来源:HPU 2602--Bone Collector
Problem Description
Manyyears ago , in Teddy’s hometown there was a man who was called “BoneCollector”. This man like to collect varies of bones , such as dog’s , cow’s...
分类:
其他好文 时间:
2015-08-27 11:08:15
阅读次数:
155
Given 2 permutations of integers from 1 to N, you need to find the minimum number of operations necessary to change both or any one of them in such a ...
分类:
其他好文 时间:
2015-08-26 23:50:20
阅读次数:
284
Magic NumberTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4323DescriptionThere are many magic numbers whos...
分类:
编程语言 时间:
2015-08-26 22:15:25
阅读次数:
203
描述: There are many magic numbers whose lengths are less than 10. Given some queries, each contains a single number, if the Levenshtein distance (see ....
分类:
其他好文 时间:
2015-08-26 13:37:17
阅读次数:
211
我巴尔坦星人居然被华为拒绝了1 print 'I have fucked a dog'
分类:
其他好文 时间:
2015-08-25 23:09:10
阅读次数:
137
Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations p...
分类:
其他好文 时间:
2015-08-25 16:44:13
阅读次数:
146
《世界上最遥远的距离》世界上最遥远的距离 The furthest distance in the world不是生与死的距离 is not the way from birth to the end.而是我就站在你面前It is when I stand in front of you你却不知道我...
分类:
其他好文 时间:
2015-08-25 13:37:33
阅读次数:
122
Description
You probably have played the game "Throwing Balls into the Basket". It is a simple game. You have to throw a ball into a basket from a certain distance. One day we (the AIUB ACMMER) wer...
分类:
其他好文 时间:
2015-08-21 21:32:19
阅读次数:
135