全部文章
网络流...
分类:其他 时间:2014-02-27 11:31:51 收藏:0 阅读:271
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1024 Problem Description Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to...
分类:其他 时间:2014-02-27 11:28:10 收藏:0 阅读:679
其实这东西完全不用自己写的,jdk提供了对操作系统监控的工具jconsole,只要稍加改动连接一下tomcat就可以对其进行监测和控制。 但老板的意思是要我写一个出来,去掉繁复的功能,只留下基础的功能,这样就可以嵌入到某项目中,或者做成系统的守护进程。并且点名要求使用JMX(←关键词啊!) 所以研究了几天之后做出了现在这个东东——由spring框架实现的,JMX监测管理Tomcat上部署的项目,基于页面显示的小工具。...
分类:其他 时间:2014-02-27 12:06:13 收藏:0 阅读:417
//Main idea //Minimun Spannig Tree, we use Kruskal's algorithm; /* ID: haolink1 PROG: agrinet LANG: C++ */ //#include #include #include using namespace std; class Edge{ public: int x_; i...
分类:Web开发 时间:2014-02-27 11:48:37 收藏:0 阅读:534
//Main idea: //Dynamic Programming //f[i][j] = max{f[i-1][j],f[i][j-cost[i]]+weight[i]}; //f[i][j] denote the max sum of weights(in this case, that is points) //from the first i categories(start fr...
分类:其他 时间:2014-02-27 10:55:25 收藏:0 阅读:516
/* usaco official solution We compute the first n humble numbers in the "hum" array. For simplicity of implementation, we treat 1 as a humble number, and adjust accordingly. Once we have the first k ...
分类:其他 时间:2014-02-27 12:01:51 收藏:0 阅读:463
AOP(Aspect-Oriented Programming 面向切面编程) aop(Aspect-Oriented Programming)也就是面向切面编程,作为面向对象编程的一种补充。aop从程序运行角度考虑程序的流程,提取业务处理过程的切面。 Aspect(切面):          是通知(Advice)和切入点(Pointcut)的结合,通知和切...
分类:其他 时间:2014-02-27 11:07:51 收藏:0 阅读:504
/* 思路大概是这样的,首先读入所有的矩形。我们可以发现最后覆盖的矩形不会被其他矩形覆盖,所以可以考虑从后向前覆盖。 对于每个矩形,我们把它和有可能覆盖在它上面的矩形(就是出现在当前矩形后面的矩形)比较, 如果两个矩形有重叠部分就把重叠部分去掉,把当前矩形分成几个小矩形递归进行分割。 直到当前矩形与后面的矩形全部没有公共部分,累加矩形的面积。 Refer to byvoid; */ /* ID:...
分类:Windows开发 时间:2014-02-27 11:13:43 收藏:0 阅读:609
/* 经典的位运算解题,边读入边计算。 设置极限掩码为limit=(1<<(B))-1; //2的B此次方-1 每读入一个二进制数0或1,令unsigned int数字串str=((str<<1)+c) & limit; 然后扫描str,从末尾向前扫描i=(A到B)位,把所得的数字串t最高位添加1,以区别有前导0的串,例如001和01,添加后变为1001和101 mask=(1<<i)-1...
分类:其他 时间:2014-02-27 11:31:10 收藏:0 阅读:441
package test; /* * Task :统计文本英文单词总个数,并列出每个单词的个数 * * Date:2014.02.26 * *Author:璀若星辰 * */ import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputSt...
分类:其他 时间:2014-02-27 12:44:40 收藏:0 阅读:538
1320140320141320142323994
上一页3239936下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!