上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 43 下一页
摘要: Web NavigationTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 23885Accepted: 10653DescriptionStandard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use two stacks to keep track of the pages that can be 阅读全文
posted @ 2012-08-02 09:13 可笑痴狂 阅读(2764) 评论(0) 推荐(0)
摘要: 树的判定时间限制:1000 ms | 内存限制:65535 KB难度:4描述A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following properties.There is exactly one node, called the root, to which no directed edges 阅读全文
posted @ 2012-08-01 18:55 可笑痴狂 阅读(350) 评论(0) 推荐(0)
摘要: Time Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 313 Accepted Runs: 160There is a railway station in PopPush City (See the picture below). All the trains arriving from A are numbered 1,2,3,...N. The station is dead-end, and some trains may stop here temporarily to let the behind trains pass b 阅读全文
posted @ 2012-08-01 17:29 可笑痴狂 阅读(595) 评论(1) 推荐(0)
摘要: 1 /* 2 功能Function Description: 约瑟夫问题--猴子选大王 3 开发环境Environment: DEV C++ 4.9.9.1 4 技术特点Technique: 5 版本Version: 6 作者Author: 可笑痴狂 7 日期Date: 20120801 8 备注Notes: 9 题目来源: 10 http://poj.grids.cn/practice/274611 *... 阅读全文
posted @ 2012-08-01 16:40 可笑痴狂 阅读(652) 评论(0) 推荐(0)
摘要: 1 /* 2 功能Function Description: STL-栈 TOJ-1036.Rails zoj-1259 poj-1363 3 开发环境Environment: DEV C++ 4.9.9.1 4 技术特点Technique: 5 版本Version: 6 作者Author: 可笑痴狂 7 日期Date: 20120801 8 备注Notes: 9 题目来源:10 http://acm.tju.edu.cn/to... 阅读全文
posted @ 2012-08-01 15:03 可笑痴狂 阅读(533) 评论(0) 推荐(0)
摘要: /* 功能Function Description: 加密问题 TOJ-1547 开发环境Environment: DEV C++ 4.9.9.1 技术特点Technique: 版本Version: 作者Author: 可笑痴狂 日期Date: 20120801 备注Notes: 题目来源: http://acm.tju.edu.cn/toj/showp1547.html*/#include<stdio.h>#include<string.h> int main(... 阅读全文
posted @ 2012-08-01 10:59 可笑痴狂 阅读(162) 评论(0) 推荐(0)
摘要: /* 功能Function Description: 将字符串中的每个单词中的字符逆转 TOJ-1153 开发环境Environment: DEV C++ 4.9.9.1 技术特点Technique: 版本Version: 作者Author: 可笑痴狂 日期Date: 20120801 备注Notes: 题目来源: http://acm.tju.edu.cn/toj/showp1153.html*/#include<stdio.h>#include<string.h... 阅读全文
posted @ 2012-08-01 10:31 可笑痴狂 阅读(381) 评论(0) 推荐(0)
摘要: 1 /* 功能Function Description: POJ-2244 约瑟夫问题 2 开发环境Environment: DEV C++ 4.9.9.1 3 技术特点Technique: 4 版本Version: 5 作者Author: 可笑痴狂 6 日期Date: 20120801 7 备注Notes: 8 题意: 9 编号为1到n,一号先出去,然后向后数第m个人再出去,求最小的m值时期最后剩余的是2号10 ... 阅读全文
posted @ 2012-08-01 09:41 可笑痴狂 阅读(587) 评论(0) 推荐(0)
摘要: /* 功能Function Description: 约瑟夫环+枚举 POJ-1012 开发环境Environment: DEV C++ 4.9.9.1 技术特点Technique: 版本Version: 作者Author: 可笑痴狂 日期Date: 20120731 备注Notes: 大致题意: 有k个坏人k个好人坐成一圈,前k个为好人(编号1~k),后k个为坏人(编号k+1~2k) 现在有一个报数m,从编号为1的人开始报数,报到m的人就要自动死去。 问... 阅读全文
posted @ 2012-08-01 09:04 可笑痴狂 阅读(1301) 评论(0) 推荐(0)
摘要: /* 功能Function Description: 大数除法 开发环境Environment: DEV C++ 4.9.9.1 技术特点Technique: 版本Version: 作者Author: 可笑痴狂 日期Date: 20120731 备注Notes: 解题方法: 基本的思想是反复做减法,看看从被除数里最多能减去多少个除数,商就是多少。一个一个减显然太慢,如何减得更快一些呢? 以7546 除以23 为例来看一下:开始商为0。先减去23 的100 倍,就是230... 阅读全文
posted @ 2012-07-31 17:52 可笑痴狂 阅读(2846) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 43 下一页