关于使用request.getParameter()得到中文乱码的问题,在网上查找了一天终于找到了一个解决方案,是一个比较笨的方法,要在每个使用request.getParameter()的地方添加如下代码,代码如下:1
String name=request.getParameter("nam.....
分类:
Web程序 时间:
2014-05-01 12:46:19
阅读次数:
399
题目来源:http://poj.org/problem?id=1755分析:设比赛总长度为
1, 其中游泳长度为x, 自行车长度为y, 赛跑长度为 1 - x - y, 则选手 i 打败 选手j (不能并列) 的条件是x / v[i] + y /
u[i] + (1 - x - y) / w[i] ...
分类:
其他好文 时间:
2014-05-01 12:42:27
阅读次数:
297
It is the first time that I use heroku. But I
encountered some problems installing it. Luckily, I resolved the problem.(In
windows 8)Step 1: Sign up.....
分类:
其他好文 时间:
2014-05-01 12:32:50
阅读次数:
317
题意:题意:n个同学,一些男女同学会有缘分成为情侣,格式ni:(m) n1 n2
n3表示同学ni有缘与n1,n2,n3成为情侣,求集合中不存在有缘成为情侣的同学的最大同学数。题解:独立集:图的顶点集的子集,其中任意两点不相邻最大独立集 =
顶点数 - 最大匹配数zsd:由于本题是从整个点集搜索,并...
分类:
其他好文 时间:
2014-05-01 12:15:22
阅读次数:
261
想要创造优秀的游戏体验,你必须清楚你制作的游戏面向哪些群体,这个群体的玩家喜欢什么,不喜欢什么。如果你曾经是目标群体中的一员,那么在设计这个游戏的玩法时,你将会有巨大的优势。假如你正在为儿童设计一款教育类游戏,你可以回忆你在那个年龄所想的、所做的以及对人和事的看法。但是假如你不是目标群体的一员,你必...
分类:
其他好文 时间:
2014-05-01 11:23:20
阅读次数:
336
本文主要介绍如何解决ViewPager在ScrollView中滑动经常失效、无法正常滑动问题。解决方法只需要在接近水平滚动时ScrollView不处理事件而交由其子View(即这里的ViewPager)处理即可,重写ScrollView的onInterceptTouchEvent函数,如下:pack...
分类:
其他好文 时间:
2014-05-01 08:06:33
阅读次数:
330
思路很简单,就是存储之前运算的结果,然后递归class Solution {public: int**
dp; int get_min_sum(vector > &grid, int m, int n) { if (dp[m][n] != -1)
...
分类:
其他好文 时间:
2014-05-01 07:54:47
阅读次数:
330
We sometimes got memory leak problem, and we need to find the leaked memory, Here is a useful tool from MS, UMDH, it is included in WinDBG install package.
Here is a introduction on how to UMDH to identify memory leak problems...
分类:
其他好文 时间:
2014-04-29 13:38:21
阅读次数:
374
The plan of city rebuild
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 616 Accepted Submission(s): 215
Problem Description
New...
分类:
其他好文 时间:
2014-04-29 13:22:21
阅读次数:
438