- 博客(28)
- 资源 (2)
- 收藏
- 关注
原创 POJ 1236 Network of Schools
Network of SchoolsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5731 Accepted: 2275Description
2011-10-05 13:44:17 353
转载 python学习
大家都知道Python语言是一种新兴的编程语言。1989年,Python就由Guido van Rossum发明。Python一直发展态势很好。 原因有几点:1、跨平台性好。Linux、Windows、MacOS、塞班……。2、快速易学。3、模块齐全。
2011-09-30 17:01:47 1251
原创 区别python 的str和repr
In [1]: class DoubleRep(object): ...: def __str__(self): ...: return "Hi, I am a __str__" ...: def __repr__(self
2011-09-29 00:06:54 445
转载 POJ图论分类
POJ图论分类2009-07-28 23:13POJ 2449 Remmarguts' Date(中等)http://acm.pku.edu.cn/JudgeOnline/problem?id=2449题意:经典问题:K短路解法:dijkstra+A*(rec
2011-09-25 13:02:19 527
原创 Linux Unix C 中的curses库——curses.h
今天打算用curses.h写一个图形界面,结果发现hello.c:1: fatal error: curses.h: No such file or directory上网搜索了一下,才发现是少安装了curses库于是在新得立查找libncurses5-dev,点
2011-09-24 09:01:58 1489
原创 makefile :missing seprator
学习makefile时,写了如下makefilesqrt : ex_4.o ex_3.o gcc -Wall ex_4.o ex_3.o -o sqrtex_4.o: ex_4.c gcc -c ex_4.cex_3.o : ex_3.c
2011-09-23 11:14:52 616
原创 Linux c 上的目标代码和链接
通常我们建立一个程序的基本步骤如下:标志-c表示gcc在编译阶段完成后就停止,即会生成main.o实例1:#include int odd(int n){if(1 == n%2) return 1;return 0;}代码存在e
2011-09-23 09:50:06 513
原创 矩阵连乘的最少次数——dp
#include #define N 20int m[N][N], s[N][N], p[N+1];int dp(int n) { int i, j, k, r, tmp; for(i = 0; i for(r = 2; r
2011-09-22 17:42:59 786
原创 POJ 3615 Cow Hurdles(Floyd算法)
Cow HurdlesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4083 Accepted: 1761DescriptionF
2011-09-21 13:07:36 376
原创 HDU 3768 找出直系亲属(Floyd算法)
找出直系亲属Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 290 Accepted Submission
2011-09-20 19:31:39 913 1
原创 Bubble Sort 冒泡排序
/*2011-9-18written by qiya*/#include #include #include #define swap(a, b) {a = a^b; b = b^a; a = a^b;}#define size 20
2011-09-18 11:02:37 351
原创 Insert_sort 插入排序
入学c,开始熟悉gcc,g++,熟悉算法/*2011-9-18writen by qiya*/#include #include #include const int size = 10;void insert_sort(int
2011-09-18 09:04:13 269
转载 字典树(讲解+模版)
字典树(讲解+模版)又称单词查找树,Trie树,是一种树形结构,是一种哈希树的变种。典型应用是用于统计,排序和保存大量的字符串(但不仅限于字符串),所以经常被搜索引擎系统用于文本词频统计。它的优点是:利用字符串的公共前缀来节约存储空间,最大限度地减少无谓的字符串比较,查询效率
2011-09-17 18:00:19 247
原创 POJ 2263 Heavy Cargo(Dijkstra算法)
Heavy CargoTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1787 Accepted: 1012DescriptionBig J
2011-09-17 17:54:17 497
原创 POJ 1556 The Doors(Dijkstra+计算几何)
The DoorsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3338 Accepted: 1440DescriptionYou are
2011-09-17 11:41:14 294
原创 POJ 2502 Subways(Dijkstra算法)
SubwayTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3679 Accepted: 1171DescriptionYou have j
2011-09-16 17:05:35 411
原创 POJ 3268 Silver Cow Party(Dijkstra算法)
Silver Cow PartyTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 7368 Accepted: 3225Description
2011-09-16 14:09:21 488
原创 POJ 2031 Building a Space Station(Kruskal算法)
Building a Space StationTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2253 Accepted: 1203Descr
2011-09-15 19:54:34 678 1
原创 POJ 2377 Bad Cowtractors(Kruskal算法)
Bad CowtractorsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7944 Accepted: 3392
2011-09-15 14:20:26 556
原创 POJ 3723 Conscription(Kruskal算法)
ConscriptionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4931 Accepted: 1704Description
2011-09-15 13:51:19 415
原创 POJ 3522 Slim Span (Kruskal+枚举)
Slim SpanTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 3922 Accepted: 2067DescriptionGiven
2011-09-14 17:41:38 384
原创 POJ 2075 Tangled in Cables(Kruskal算法)
Tangled in CablesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 4014 Accepted: 1653Description
2011-09-14 16:21:06 439
原创 POJ 1861 NetWork (Kruskal算法)
NetworkTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 9192 Accepted: 3396 Special JudgeDesc
2011-09-14 15:20:54 413
原创 POJ 2349 Arctic Network(Prim算法)
Arctic NetworkTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 4526 Accepted: 1610DescriptionTh
2011-09-13 23:20:32 470
原创 POJ 1251 Jungle Roads (Prim算法)&& (Kruskal算法)
Jungle RoadsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13508 Accepted: 6005Description
2011-09-13 20:05:11 632
原创 POJ 1287 Networking(prime算法)
NetworkingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3788 Accepted: 2043DescriptionYou ar
2011-09-10 13:16:45 507
原创 POJ 2485 Highways(prim算法)
HighwaysTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13404 Accepted: 6237DescriptionThe isl
2011-09-10 11:19:19 526
原创 POJ 1258 Agri-Net (Prim普里姆算法应用)
Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 23658 Accepted: 9306DescriptionFarmer John has been electe
2011-09-10 10:27:59 396
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人