- 博客(7)
- 资源 (16)
- 收藏
- 关注
原创 poj1088
#include #include #include #define SIZE 101 using namespace std; int N,M; int maze[SIZE][SIZE]; int opt[SIZE][SIZE]; bool visit[SIZE][SIZE]; int result; int direction[4][2]
2013-11-22 10:50:55 523
原创 poj1080
#include #include #include using namespace std; #define SIZE 102 int N; int cases; int n1,n2; char gene1[SIZE]; char gene2[SIZE]; int result = 0; int dp[SIZE][SIZE]; c
2013-11-22 10:48:35 472
转载 command使用方法
python -> Commands模块 -> 使用方法 要获得shell命令的输出只需要`cmd`就可以了, 需要得到命令执行的状态则需要判断$?的值, 在Python中有一个模块commands也很容易做到以上的效果. 看一下三个函数: 1). commands.getstatusoutput(cmd) 用os.popen()执行命令cmd,
2013-11-17 14:01:20 1412
转载 Python下载网页和处理正则的几个要点
Python下载网页和处理正则的几个要点 链接出处 http://zhan.renren.com/reference?gid=3602888497995300069&checked=true 这是最简洁的一种,当然也是Get的方法 fd = urllib2.urlopen(url_link) data = fd.read() 匹配任意字符(包括换
2013-11-17 13:08:13 821
原创 poj1062
#include using namespace std; #define Size 102 int INF = 0x7FFFFFFF; int M,N; //int P[Size]; //price int L[Size]; //level int dis[Size][Size]; int dist[Size]; int prev[Size]; int maxLe
2013-11-17 12:49:51 1087
原创 poj1035
/* * ===================================================================================== * * Filename: 1035.cpp * * Description: * * Version: 1.0 * Created
2013-11-17 12:48:16 422
原创 poj1042
Gone Fishing http://poj.org/problem?id=1042 此题枚举+贪心 解决,注意时间以5分钟为一个单位。 Memory: 244K Time: 125MS 源代码 //优先排序 贪心算法 #include using namespace std; #define NUM_LIMIT 26 int n; int f[NUM_LIMIT]
2013-07-01 15:56:52 360
停车管理系统程序
2017-05-08
poj上的一些基础题分类ac源代码和测试数据样例
2014-07-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人