- 博客(7)
- 资源 (10)
- 收藏
- 关注
原创 uva11093贪心算法
//uva11093 //贪心算法,加油站环路,O(n) #include<iostream> #include<algorithm> #include<cstdio> using namespace std; const int N = 100005; int n,res,i,j,d,T,t,s; int p[N], x[N]; in...
2016-09-26 15:08:33 142
原创 uva1451贪心算法,求平均值最大的子序列
//uva1451,0.07s //贪心算法,求平均值最大的子序列 //数形结合,求最大斜率 #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> using namespace std; const int N = 100005; i...
2016-09-25 22:49:48 1083
原创 uva11212 Editing a Book启发状态搜索
#include<iostream> #include<vector> #include<ctime> #include<algorithm> #include<cstdio> using namespace std; int n, maxd; int wrongn(int *p, int a, int b) { ...
2016-09-24 19:01:03 123
原创 uva 1599双向bfs
//0.140s #include<iostream> #include<queue> #include<cstring> #include<vector> using namespace std; const int maxn = 100005; const int inf = 1 << 30; int i, a, ...
2016-09-23 13:23:35 140
原创 ubuntu 14.10 64位成功安裝wps
安装wps后无法打开 查看动态链接库 ldd /opt/kingsoft/wps-office/office6/wps /opt/kingsoft/wps-office/office6/wpp /opt/kingsoft/wps-office/office6/et |grep "not found" |cut -d' ' -f1 |sort |uniq 安装缺少依赖 sudo a...
2014-12-09 10:15:01 426
原创 XPath, CSS, DOM 以及Selenium: The Rosetta Stone(罗塞达石)
许多编程的惯例都可以通过图表的方式最好地表现出来。没有人会抱怨XPath或者CSS可以完全通过直觉去理解,因为它们能简洁而高效地定位层级的数据。建立一个清单式的图表还是颇有难度的。然而你却能豁然开朗,像SeleniumIED这样的app会变得容易得多。“A little learning is a dangerous thing." [Alexander Pope, An Essay on Cri...
2013-04-24 02:21:13 164
原创 配置weka导入到eclipse时报错
在eclipse中运行weka的java程序时,出现许多warning,还有一句: Weka exception: Can't open file No suitable converter found for 'D:\My'!. 原来eclipse的默认路径不能有空格,我之间的路径设置在My Documnts里,只要改到没有空格的路径下就没问题了。检查了很久的环境配置终于搞定了~!
2013-03-28 21:22:42 1050
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人