这种简单题做了好长时间,我是不是有点逗?地址:http://acm.fzu.edu.cn/problem.php?pid=2034不解释了,自己看吧,练手的好题上个代码吧#include
#include #include int main(){ int s,n,m,i,j,k,t; c...
分类:
其他好文 时间:
2014-05-10 02:14:11
阅读次数:
328
php中奖概率算法,可用于刮刮卡,大转盘等抽奖算法。用法很简单,代码里有详细注释说明,一看就懂?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555...
分类:
Web程序 时间:
2014-05-05 10:55:07
阅读次数:
377
http://acm.hdu.edu.cn/showproblem.php?pid=1598
1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6
const int inf=1<<30; 7...
分类:
其他好文 时间:
2014-05-05 10:53:38
阅读次数:
344
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3
#include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:
其他好文 时间:
2014-05-05 10:52:15
阅读次数:
315
在对大量文件进行读写时,最好将文件存为gz文件,可以节约读写硬盘的时间,硬盘也不会那么卡。在写gz文件时,最好使用PerlIO::gzip模块。这个模块不用调用gzip命令,减少了程序占用的线程数量,可以有效的降低load。下面是一个例子。#!
/usr/bin/env perluse strict...
分类:
其他好文 时间:
2014-05-05 10:48:30
阅读次数:
341
function Http_num() //浏览计数
在同目录里建立一个count文件,访问网页次数计算结果保存在这里count文件里{ $hanld=fopen(".count.txt","a");
fclose($hanld); ...
分类:
Web程序 时间:
2014-05-05 10:44:20
阅读次数:
406
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3998解题报告:求一个数列的最长上升子序列,并求像这样长的不相交的子序列最多有多少个。我用的是最简单的方法,就是每次求最长上升子序列,然后每次将求得的子序列从数列里面删掉,然后再对剩下的数列求最长上升子序...
分类:
其他好文 时间:
2014-05-05 10:04:28
阅读次数:
236
日期时间to
dodoingdone备注4月26号16:20-17:50pose王功能模块的实现网上搜集各种图片资料图片的基本整理完成4月27号14:30-16:12图片的整合,满足不同人数的要求学习ps如何抠图,背景如何变透明复杂图片中每个人物的完整截取4月28号15:16-17:50图片的整合利...
分类:
其他好文 时间:
2014-05-05 09:59:39
阅读次数:
398
__construct, __destruct , __call,
__callStatic,__get, __set, __isset, __unset , __sleep, __wakeup, __toString,
__set_state, __clone and __autoload
分类:
Web程序 时间:
2014-05-05 09:38:23
阅读次数:
488
1.Traversable他是一个遍历接口规范注意:发现一个有用的函数get_declared_classes,可以以数组形式显示当前脚本下所有已经定义的类名2.IteratorIterator迭代器继承自Traversable,是一种遍历对象内容的对象。你可以自己写一个子类继承自它,并写上具体遍历的方法。Iterator包含..
分类:
Web程序 时间:
2014-05-04 17:18:46
阅读次数:
472