上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页

2012年9月9日

poj 2021 Relative Relatives(典型数据结构题)

摘要: Relative RelativesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3244Accepted: 1405DescriptionToday is Ted's 100th birthday. A few weeks ago... 阅读全文

posted @ 2012-09-09 19:59 NewPanderKing 阅读(398) 评论(0) 推荐(1) 编辑

2012年9月8日

poj 1656 Counting Black(模拟)

摘要: Counting BlackTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9101Accepted: 5879DescriptionThere is a board with 100 * 100 grids as shown bel... 阅读全文

posted @ 2012-09-08 20:11 NewPanderKing 阅读(319) 评论(0) 推荐(0) 编辑

2012年9月7日

poj 2524 Ubiquitous Religions(最简单的并查集)

摘要: Ubiquitous ReligionsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 17935Accepted: 8748DescriptionThere are so many different religions in th... 阅读全文

posted @ 2012-09-07 22:43 NewPanderKing 阅读(232) 评论(0) 推荐(0) 编辑

2012年9月6日

poj 1988 Cube Stacking(并查集)

摘要: Cube StackingTime Limit: 2000MSMemory Limit: 30000KTotal Submissions: 14901Accepted: 5037Case Time Limit: 1000MSDescriptionFarmer John and Betsy are p... 阅读全文

posted @ 2012-09-06 16:14 NewPanderKing 阅读(740) 评论(0) 推荐(0) 编辑

2012年9月4日

poj 1088 滑雪

摘要: 滑雪Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 60769Accepted: 22147DescriptionMichael 喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你... 阅读全文

posted @ 2012-09-04 18:45 NewPanderKing 阅读(343) 评论(0) 推荐(0) 编辑

2012年8月27日

一些开源项目网站

摘要: http://search.csdn.net/CSDN搜索,CSDN还是有非常多的编程资源的,用它的搜索能搜出不少东西。代码类别也比较全面。http://snippets.org/简单实用的代码收集网站,强力推荐。比如你要找个DES加密,要找个数据压缩,找个INI文件操作的C代码等,均能手到擒来。http://www.codase.com/index.html它是一个代码搜索引擎,特别是搜索c/c++的开源代码,可以通过函数名、类名等搜索,很酷噢http://sourceforge.net有名的开源代码库,只要能想到的功能,上面都有对应的源码http://www.tigris.org/和上面的 阅读全文

posted @ 2012-08-27 17:52 NewPanderKing 阅读(5846) 评论(0) 推荐(0) 编辑

2012年8月24日

c和指针 动态数组实现

摘要: /**c和指针 第11章 第二题从标准输入中读取一系列的整数,把这些值存储在一个动态分配的数组中并返回这个数组。数组的第一个元素是该数组的长度其他元素是输入的整数*/#include <stdio.h>#include <stdlib.h>//定义一个长度,最开始时分配的长度#define LENGTH 20int *read_ints(){ int *num; int tem; int count = 0; int size = LENGTH; //分配内存 num = malloc((size+1)*sizeof(int)); //内存分配失败,返... 阅读全文

posted @ 2012-08-24 10:16 NewPanderKing 阅读(800) 评论(0) 推荐(0) 编辑

2012年8月23日

八皇后问题 递归求解法

摘要: #include <iostream>#include <fstream>#include <string.h>/**八皇后问题递归方法实现*/using namespace std;ofstream file;//用以计数计算结果的数目int count = 1;/**打印的棋盘其中打印1的位置是皇后的位置,0空位。这里因为在控制台看不到全部,所有做了在文件中输出所有的解*/int print_Chessboard(int chessboard[][8]){ file.open("data.txt",ofstream::app|ofst 阅读全文

posted @ 2012-08-23 11:07 NewPanderKing 阅读(1219) 评论(0) 推荐(0) 编辑

2012年8月21日

c和指针第六章第二题

摘要: /**c和指针,第六章 第二题删除一个字符串的一部分,例如:ABCDEFG ,如果输入FGH,CDF,XABC则删除失败,如果输入CDE,则删除成功,得到ABFG删除函数原型:int del_substr(char *stre,char const *substr)stre 是要操作的源字符串,substr是要删除的子字符串。*/#include <stdio.h>#include <stdlib.h>int del_substr(char *stre,char const *substr){ char *str = stre; char *source = str; 阅读全文

posted @ 2012-08-21 19:09 NewPanderKing 阅读(376) 评论(4) 推荐(0) 编辑

c和指针第六章第一题

摘要: /**C和指针,第六章,第一题查找一个个定的字符集中出现的字符。基本想法:在source中,匹配chars字符串中任何字符的第一个字符。*/#include <stdio.h>#include <stdlib.h>char const *find_char(char const *source,char const *charz){ int a = 0; char const *src = source; char string = *src; while(string!='\0') { char const *chars = charz; ... 阅读全文

posted @ 2012-08-21 18:12 NewPanderKing 阅读(192) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页

导航