OJ题目:click here~~题目分析:n个人分为若干组 , 每一个人描写叙述其所在的组前面的人数和后面的人数。求这n个描写叙述中,最多正确的个数。设dp[ i ] 为前i个人的描写叙述中最多正确的个数,则dp[ n ] 为要求的。num[ i ][ j ] 保存说前面有i个人 , 后面有j个人...
分类:
其他好文 时间:
2014-07-09 17:35:02
阅读次数:
147
Problem Description
The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he divides the picture into n x...
分类:
其他好文 时间:
2014-07-09 12:14:13
阅读次数:
433
通用标签和控制标签
第一部分;代码
//前端
Insert title here
访问属性
/tags.action?username=u&password=p">tags
//struct.xml
/tags.jsp
//类包
package com.struts2.tags;
import com.opensymphony.xwork2.Action...
分类:
Web程序 时间:
2014-07-08 16:21:33
阅读次数:
251
第一部分:代码
//前端
Insert title here
访问属性
/ognl.action?username=u&password=p">ognl
//web.xml
//ognl.xml
/ognl.jsp
...
分类:
Web程序 时间:
2014-07-08 15:42:17
阅读次数:
168
Cake
Time Limit: 1 Second
Memory Limit: 32768 KB
You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for th...
分类:
其他好文 时间:
2014-07-08 15:36:15
阅读次数:
298
艾伦说过,一切学习都是从模仿开始,我也不例外。下面我要说的是两个页面之间的通信问题。假设现有a.html 需要与b.html进行数据交互,a通过iframe加载b.htmla.html click b.html: b here is the content about iframe b...
分类:
其他好文 时间:
2014-07-08 00:24:16
阅读次数:
222
Problem DescriptionI think that you might have played the traditional Chinese ring game: The Chinese Linking Rings (here we call its nickname Jiulianh...
分类:
其他好文 时间:
2014-07-06 17:06:04
阅读次数:
293
Result学习笔记(二) - 动态结果集
动态结果 一定不要忘了为动态结果的保存值设置set get方法
第一部分:代码
//前端
Insert title here
返回success
返回error
//web.xml
${r}
/...
分类:
Web程序 时间:
2014-07-06 09:29:19
阅读次数:
243
今天装了下正式版的RHEL7,发现熟悉的inittab中没有了修改默认运行级别,打开inittab如下
[root@localhost init.d]# vi /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR...
分类:
其他好文 时间:
2014-07-06 08:52:26
阅读次数:
199
Result学习笔记(三)带参数的结果集
第一部分:代码
//前端
Insert title here
传参数
//web.xml
/user_success.jsp?t=${type}
//类包
package com.struts2.user.act...
分类:
Web程序 时间:
2014-07-06 08:26:27
阅读次数:
222