对于默认eclipse是没有marketplace插件的,但是marketplace确实是非常好用的,可以在上面下载各种插件。1.Help-->Install new Software2.输入下面链接:http://download.eclipse.org/releases/juno3.选择ma.....
分类:
系统相关 时间:
2014-08-22 19:28:09
阅读次数:
248
java split | (竖线)
在java中,有一个字符串"866|10|1824261|214|",需要根据“|”截取。
而直接用split("|");是不行的。
原因是竖线 | 在正则中是特殊字符,需要转义,也就是split(“\|”);
但实际在java中使用时,\又是java的特殊字符,需要转义,最终变成了split("\\|");
public static void ma...
分类:
编程语言 时间:
2014-08-22 13:02:48
阅读次数:
180
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=945Problem:In 1976 the ``Four Color Ma...
分类:
其他好文 时间:
2014-08-22 01:33:05
阅读次数:
325
/usr/local/mysql/bin/mysqlbinlog -vv /var/lib/bin/mysql-bin.000008 --base64-output=DECODE-ROWS --start-pos=307问题:这个究竟是什么意思[root@ma mysql]# /usr/local/...
分类:
数据库 时间:
2014-08-21 16:55:44
阅读次数:
368
[root@ma bin]# /usr/local/mysql/bin/mysqlbinlog -vv /var/lib/bin/mysql-bin.000013 --base64-output=DECODE-ROW/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1...
分类:
其他好文 时间:
2014-08-21 16:55:14
阅读次数:
263
很标准的01背包问题 1 //#define LOCAL 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 1000 + 10; 8 int w[maxn], v[maxn], dp[ma...
分类:
其他好文 时间:
2014-08-20 13:46:22
阅读次数:
144
题意:给你n个操作,每一次对区间相加,询问区间和。解题思路:这里没有动态更新, 所以我们用括号匹配那种方法就行 就是 a[l] + x ,a[r+1] -x 这种做法。解题代码: 1 #include 2 #include 3 #include 4 #include 5 #define MA...
分类:
其他好文 时间:
2014-08-20 01:14:25
阅读次数:
207
题意:。。。
这道题就是区间问题三种中的区间完全覆盖问题,不懂的可以看我上一篇也是区间完全覆盖。
直接上代码:
#include
#include
#include
using std::sort;
struct node{
double le, ri;
}s[1005];
int cmp(node a, node b)
{
return a.le < b.le;
}
int ma...
分类:
其他好文 时间:
2014-08-20 00:02:06
阅读次数:
297
Description
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it ma...
分类:
其他好文 时间:
2014-08-19 22:28:45
阅读次数:
278
/*
迭代法 :204Ms
*/
#include
#include
#include
#define N 1100
#define eps 1e-10
#define inf 0x3fffffff
struct node {
int u,v,w;
}p[N];
double ma[N][N];
double distance(int i,int j) {
return sqrt(1.0*(...
分类:
其他好文 时间:
2014-08-19 11:01:44
阅读次数:
338