http://acm.hdu.edu.cn/showproblem.php?pid=4722
大致题意:若一个整数的各位数字之和是10的倍数,称这个数为"good number"。给出区间[A,B],求出该区间内"good number"的数的个数。
第一道数位dp,折腾了半天才明白怎么回事。
设dp[site][mod]表示到第site位(由高位向低位)前面各位数字之和对1...
分类:
其他好文 时间:
2014-07-08 20:46:41
阅读次数:
223
foreach
(PHP 4, PHP 5)
The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable w...
分类:
Web程序 时间:
2014-07-08 19:52:38
阅读次数:
291
最近在玩Thinkphp,废话不多说,说正事.
客户端js提交代码
1 $.post('http://localhost/app/index.php/Index/Index/handle',{username : document.getElementById('username').value,content : document.getElementById('content')....
分类:
Web程序 时间:
2014-07-08 18:44:07
阅读次数:
231
没有想到的事,现在我从事的工作不是Android而是php开发,而且老总的要求,这个网站压根不可能执行。总之一个不懂技术的人,还总要按照自己的想法去要求,换成任何一个技术人员都会崩溃的,其余的不多说,就把我前段时间花了两天时间学习的php知识做个备份吧,以便以后使用。
什么是php?
php是指超文本预处理器,php是一种服务器端的脚本语言,php脚本在服务器上执行。
什么是php文件...
分类:
Web程序 时间:
2014-07-08 17:41:10
阅读次数:
208
str_replace
(PHP 4, PHP 5)
str_replace — Replace all occurrences of the search string with the replacement string
Description
mixed str_replace ( mixed $search , mixed $replace , mixed $...
分类:
Web程序 时间:
2014-07-08 17:09:58
阅读次数:
302
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1394...
分类:
其他好文 时间:
2014-07-08 16:27:04
阅读次数:
138
http://pkg.jenkins-ci.org/redhat/jenkins-1.569-1.1.noarch.rpm...
分类:
其他好文 时间:
2014-07-08 16:06:26
阅读次数:
264
使用php的odbc函数,不创建数据源。
$connstr="DRIVER=Microsoft Access Driver (*.mdb);DBQ=".realpath("test.mdb") ;
$connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC );
亲试代码,可用哦。
Php + Access sample code.
...
分类:
数据库 时间:
2014-07-08 15:52:44
阅读次数:
248
it is much easier to get the same result through PHP because the PHP language offers some global constant variables and built-in functions....
分类:
Web程序 时间:
2014-07-08 12:48:07
阅读次数:
196