虽然PHP是用来开发动态网页的,但是PHP也可以来搞服务器端,PHP-CLI(PHP-COMMOND-LINE-INTERFACE) 脚本完全可以加到 linux 的 crontab 定时服务里,在设定的时间点执行。由于 PHP-CLI 的最大执行时间是没有限制的(the maximum execu...
分类:
Web程序 时间:
2015-02-06 18:15:21
阅读次数:
179
题目链接(POJ) :http://poj.org/problem?id=1458
题目链接(HDOJ):http://acm.hdu.edu.cn/showproblem.php?pid=1159
Common Subsequence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submiss...
分类:
其他好文 时间:
2015-02-06 11:17:34
阅读次数:
162
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per...
分类:
其他好文 时间:
2015-02-06 09:36:23
阅读次数:
130
题目链接:http://poj.org/problem?id=2533
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 35605
Accepted: 15621
Description
...
分类:
其他好文 时间:
2015-02-05 23:24:40
阅读次数:
288
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
难度系数:
容易
实现
int maxDepth(Tr...
分类:
其他好文 时间:
2015-02-05 16:28:31
阅读次数:
119
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) o...
分类:
其他好文 时间:
2015-02-05 15:05:47
阅读次数:
168
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.
Try to solve it in linear time/space.
Return 0 if the array contains less than 2 elements. ...
分类:
其他好文 时间:
2015-02-05 09:38:18
阅读次数:
271
题意:输出给定字符串的字典序最大子串。
思路:统计所有出现过的字符,按字典序从大到小取,取完当前后取下一个,直到结尾。
#include
#include
#include
using namespace std;
int n,m,i,j,k,len;
char a[500010];
int num[50],ch,shu;
int main()
{
while(scanf("%...
分类:
其他好文 时间:
2015-02-04 21:48:14
阅读次数:
279
原文:WCF服务接口多,客户端在引用时出错!报WCF The maximum nametable character count quota (16384) has been exceeded while reading XML data错误在服务端中定义接口太多时,在客户端的服务引用时,报错误: ...
分类:
Web程序 时间:
2015-02-04 20:16:13
阅读次数:
202
<!DOCTYPEhtml><html><headlang="en"><metacharset="UTF-8"><metaname="viewport"content="width=device-width;initial-scale=1.0;maximum-scale=1.0;user-scalable=0;"/><title></title><scripttype="text/javascript"src="hjs/..
分类:
其他好文 时间:
2015-02-04 16:54:09
阅读次数:
181