摘要: Message FloodTime Limit: 1500ms Memory limit: 65536K有疑问?点这里^_^题目描述Well, how do you feel about mobile phone? Your answer would probably be something li... 阅读全文
posted @ 2014-02-18 15:52 6bing 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 数据结构实验之二叉树的建立与遍历 Time Limit: 1000MS Memory limit: 65536K 题目描述 已知一个按先序序列输入的字符序列,如abc,,de,g,,f,,,(其中逗号表示空节点)。请建立二叉树并按中序和后序方式遍历二叉树,最后求出叶子节点个数和二叉树深度。输入输... 阅读全文
posted @ 2014-02-17 16:18 6bing 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 我跳我跳我跳跳跳Time Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述有一条直线,上有n个点,编号从0到n-1。当小A站在s点处,每次可以往前跳到s+1,也可以往前跳到s-1(当s-1 >= 0时),也可以调到2*s处。现在问小A最少跳多少次才能跳... 阅读全文
posted @ 2014-02-16 15:00 6bing 阅读(136) 评论(0) 推荐(0) 编辑
摘要: E -Gold CoinsTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe king pays his loyal knight in gold coins. On... 阅读全文
posted @ 2014-02-13 21:27 6bing 阅读(165) 评论(0) 推荐(0) 编辑
摘要: D -We Love MOE GirlsTime Limit:500MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionChikami Nanako is a girl living in many di... 阅读全文
posted @ 2014-02-13 21:26 6bing 阅读(142) 评论(0) 推荐(0) 编辑
摘要: A - Who's in the Middle Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionFJ is surveying his herd to find the most av... 阅读全文
posted @ 2014-02-13 21:22 6bing 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 查找练习 hash——出现过的数字 Time Limit: 1000MS Memory limit: 65536K 题目描述有一个数据字典,里面存有n个数字(nint a[100000]={0};int main(){ int n, m, i, b, c; scanf("%d %d", ... 阅读全文
posted @ 2014-02-13 10:55 6bing 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 数据结构上机实验之二分查找Time Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述在一个递增的序列里,查找元素是否存在,若存在输出YES,不存在输出NO.输入本题多组数据,首先输入一个数字n,然后输入n个数,数据保证数列递增,然后再输入一个查找数字。... 阅读全文
posted @ 2014-02-13 10:02 6bing 阅读(142) 评论(0) 推荐(0) 编辑
摘要: KMP简单应用 Time Limit: 1000MS Memory limit: 65536K 题目描述给定两个字符串string1和string2,判断string2是否为string1的子串。输入输入包含多组数据,每组测试数据包含两行,第一行代表string1(长度小于1000000),第二行代... 阅读全文
posted @ 2014-02-11 15:41 6bing 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/dolphin0520/archive/2011/08/24/2151846.htmlhttp://www.cppblog.com/oosky/archive/2006/07/06/9486.htmlhttp://blog.youxu.info/21-d... 阅读全文
posted @ 2014-02-10 19:36 6bing 阅读(113) 评论(0) 推荐(0) 编辑