AlertDialod like java awt dialog , when a event actived the activity will display a dialog , it can contain many views not only text or buttons ,here ...
分类:
其他好文 时间:
2014-08-02 15:07:53
阅读次数:
208
消防站
题目链接:Click Here~
题意分析:
就是给你f个消防站,n个路口。要你求出在已有消防站的基础上在n个路口的哪个路口上在建立一个消防站,使得n个路口的到离自己最近的消防站最近的距离中最大的一个值最小。即:求n个最近路口中最大的一个,使其改最大值最小。详细的要求自己看题目吧~
算法分析:
因为,是n个路口到每个消防站的距离。所以,我...
分类:
其他好文 时间:
2014-08-02 12:59:03
阅读次数:
204
题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here...
分类:
编程语言 时间:
2014-08-02 09:56:33
阅读次数:
249
比基础的多一点东西的背包问题。链接:POJ2642大意:有N种砖,每种花费p[i],含铜量c[i],现需要用M种不同的砖融成含铜量在Cmin到Cmax之间(可等于)的砖,即这M种砖的含铜量平均值在这个范围内,求最小花费。(M、Cmin、Cmax有多种需求,分别输出花费)题解:DP,f[i][j]表示...
分类:
其他好文 时间:
2014-08-01 18:33:22
阅读次数:
231
链接:http://poj.org/problem?id=2263
题意:有n个点,m条路,每条路双向的,现在卡车从某点到另一点,卡车的承载无上限,但是马路的承载有上限,问卡车应该承载多少才不会压坏马路。
poj2253和它类似,链接:http://poj.org/problem?id=2253
解题报告:Here
就是在两点之间找一条路径,使路径中权值最小的那条边的权值最...
分类:
其他好文 时间:
2014-08-01 16:02:41
阅读次数:
294
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you ...
分类:
其他好文 时间:
2014-07-31 20:04:07
阅读次数:
212
【Level Of Detail】 Here's one of the ways to set up an object with differentLODs. At this point the empty object should contain both versions of th...
分类:
其他好文 时间:
2014-07-31 16:03:16
阅读次数:
253
Since the 70′s, vi and vim are very popular text editors among programmers. 5 years ago, I wrote an article named “100 vim commands every programmer should know” and here is a reworked, updated ...
分类:
其他好文 时间:
2014-07-31 13:45:06
阅读次数:
362
题目here
第一道快速幂,同时也是第一道高斯消元。
输入的边的关系矩阵就是系数矩阵co
[co] ^ T * [ans]== (当前0时刻的状态),[co] ^ T可由矩阵快速幂解得
那么-T时刻的状态便是ans矩阵的值,可由高斯消元解得
判断一下即可
高斯消元中 系数矩阵是a[0...n - 1][0...m - 1] 常数矩阵是a[0...n - 1][m]
返回-1表示...
分类:
其他好文 时间:
2014-07-31 13:34:46
阅读次数:
242
使用jetty+axis2实现webservice服务端,且无需使用axis2命令生成服务端代码,只要services.xml配置实现类。
工程为gradle工程配置文件在src/main/resources/axis2/WEB-INF/services.xml:
Please Type your service description here
<mes...
分类:
系统相关 时间:
2014-07-31 13:17:26
阅读次数:
323