题目链接:http://poj.org/problem?id=2996
POJ...
分类:
其他好文 时间:
2014-06-15 20:16:37
阅读次数:
253
http://poj.org/problem?id=3233
ps转:
用二分方法求等比数列前n项和:即
原理:
(1)若n==0
(2)若n%2==0
(3)若n%2==1
代码如下:
LL sum(LL p,LL n)
{
if(n==0) return 1;
i...
分类:
其他好文 时间:
2014-06-15 20:01:44
阅读次数:
210
The main way to achive AOP is deploying a xml file。
Now a xml file is presented to be a explanation .
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/...
分类:
其他好文 时间:
2014-06-15 18:35:16
阅读次数:
233
题目链接:http://poj.org/problem?id=2993
这个题和POJ 2996属于姊妹题,POJ 2996集体报告见:http://blog.csdn.net/codehypo/article/details/30281829
就是给你黑白双方的每个棋子的信息(是哪种,以及坐标),然后填充这个棋盘,并打印。
其实这个题目比2996还要简单,不过这个题我尝试用了一下前几...
分类:
其他好文 时间:
2014-06-15 17:01:56
阅读次数:
216
附网址:http://qt-project.org/doc/qt-5/qtquickcontrols-index.html
Qt Quick Controls —— Qt Quick控件
Qt QuickQt Quick Controls提供了一套用来在Qt Quick中创建用户界面的UI控件。
该模块在Qt5.1中新推出来。
前往Qt Quick Controls Overvie...
分类:
其他好文 时间:
2014-06-15 16:21:58
阅读次数:
344
http://poj.org/problem?id=3150
大致题意:给出n个数,问经过K次变换每个位置上的数变为多少。第i位置上的数经过一次变换定义为所有满足 min( abs(i-j),n-abs(i-j) )
思路:
我们先将上述定义表示为矩阵
B =
1 1 0 0 1
1 1 1 0 0
0 1 1 1 0
0 0 1 1 1
1 0 0 1 1...
分类:
其他好文 时间:
2014-06-15 16:14:14
阅读次数:
169
部署项目时,启动Tomcat一直出错:java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
SEVERE: End event threw exception
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXm...
分类:
编程语言 时间:
2014-06-15 16:03:10
阅读次数:
533
默认情况下,由于安全性的考虑,Tomcat是不让列出目录下的下的文件列表的,直接访问某个文件,可以访问,而访问目录就会报出404的错误。但是有时候我们开发中有这样的需求,类似“查看服务器某个目录下的文件列表“这样的需求。如何实现这一功能呢?非常简单。找到tomcat目录下conf/web.xml,打开后找到如下代码
default
org.apache.catali...
分类:
其他好文 时间:
2014-06-15 09:16:09
阅读次数:
180
nixio.syslog("string") 函数用来debug luci
http://luci.subsignal.org/api/nixio/modules/nixio.html...
分类:
其他好文 时间:
2014-06-15 08:53:30
阅读次数:
1593
eclipse new server Cannot create a server using the selected type 网上有两种办法,其实原理一样第一种说法:还真的找到解决的方法了,如下:1.退出eclipse2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime3.把org.eclipse.wst.server.core.pre...
分类:
系统相关 时间:
2014-06-15 08:36:06
阅读次数:
216