问题:错误提示如下:Received exception processing
F:/apjp/apjp_remote_appengine/war\web-inf/appengine-web.xmlcom.google.apphosting.utils.config.appengineconfige...
分类:
移动开发 时间:
2014-06-20 08:56:07
阅读次数:
335
1.修改conf下的context.xml,在标签中添加: 1
2.修改WEB-INF下的web.xml(项目中的WEB-INF目录):1 2 3 Oracle Datasource4 jdbc/soa5
javax.sql.DataSource6 Conta...
分类:
其他好文 时间:
2014-06-11 22:01:31
阅读次数:
296
文件: 备注:
上传到/WEB-INF/upload之后,文件名是乱码解决办法:UploadForm.reset()中添加代码: try {
request.setCharacterEncoding("U...
分类:
Web程序 时间:
2014-06-11 21:58:55
阅读次数:
222
使用spring中的Log4jConfigListener有如如下好处: 1.
动态的改变记录级别和策略,不需要重启Web应用,如《Effective Enterprise Java》所说。 2. 把log文件定在
/WEB-INF/logs/ 而不需要写绝对路径。因为 系统把web目录的路径压入一...
分类:
编程语言 时间:
2014-06-11 11:37:22
阅读次数:
506
break point 在
边数很少,o(n*m)暴力出奇迹~~~#include#include#include#include#include#include#includeusing
namespace std;const int maxn = 1005, maxm = 22222, inf=...
分类:
其他好文 时间:
2014-06-09 23:00:47
阅读次数:
342
#include #include #include #include #include
#include #include #include #include #include #include #include #include #define
maxn 100010#define INF 0x...
分类:
其他好文 时间:
2014-06-08 06:35:50
阅读次数:
196
点击打开链接
两次求最短路(第二次把边反向求)
1、spfa
//poj 3268 Silver Cow Party
//SPFA
#include
#include
#include
using namespace std;
const int M = 100000 + 100;
const int N = 1000 + 100;
const int inf = 1...
分类:
其他好文 时间:
2014-06-08 05:29:39
阅读次数:
241
点击打开链接
题意:给定牛的关系图,求其中一头牛与其他牛关系路程之和sum最小,然后输出 sum*100/(n-1)
floyd求任意两点间的最短路程
注意: inf不能太大,因为 f[i][k] + f[k][j] 做加法时可能会溢出!
#include
#include
const int maxn = 300 + 5;
const int inf = 1<<29;
int...
分类:
其他好文 时间:
2014-06-08 05:07:03
阅读次数:
181
double solve(){ double M,RM; double L = 0.0; double
R = INF; while (L + eps < R) { M = (L + R) / 2; RM = (M + R) / 2; ...
分类:
其他好文 时间:
2014-06-07 08:35:50
阅读次数:
252
#include #include #include #include #include
#include #include #include #include #include #include using namespace std;int
n;const int INF=0xfffffff;s...
分类:
其他好文 时间:
2014-06-07 06:11:19
阅读次数:
204