上一页 1 ··· 6 7 8 9 10
摘要: A + B for you againTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8904 Acc... 阅读全文
posted @ 2018-04-26 11:11 dslybyme7 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目链接:点击打开链接题意:给两个串 求一个串在另一个串中出现的次数。代码:#include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2018-04-26 11:07 dslybyme7 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 分析设主串(下文中我们称作T)为:a b a c a a b a c a b a c a b a a b b模式串(下文中我们称作W)为:a b a c a b用暴力算法匹配字符串过程中,我们会把T[0] 跟 W[0] 匹配,如果相同则匹配下一个字符,直到出现不相同的... 阅读全文
posted @ 2018-04-26 10:54 dslybyme7 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 食物链Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 85027 Accepted: 25416Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃... 阅读全文
posted @ 2018-04-19 22:41 dslybyme7 阅读(122) 评论(0) 推荐(0) 编辑
摘要: A. Mazetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPavel loves grid mazes. A... 阅读全文
posted @ 2018-04-01 18:33 dslybyme7 阅读(192) 评论(0) 推荐(0) 编辑
摘要: UVA-1374题目地址:点击打开链接代码:#include using namespace std;int a[50],cnt,n;//用数组保存已经得出的数bool dfs(int cur,int now){ if(cur>cnt||now>n){ ... 阅读全文
posted @ 2018-03-28 13:21 dslybyme7 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 迭代加深搜索: 迭代+DFS(循环+DFS)以埃及分数问题为例: 埃及分数:分子是1的分数,叫单位分数。古代埃及人在进行分数运算时。只使用分子是1的分数。因此这种分数也叫做埃及分数,或者叫单分子分数。紫书例题:题目描述 Description在古埃及,人们... 阅读全文
posted @ 2018-03-27 22:33 dslybyme7 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 迭代加深搜索: 迭代+DFS(循环+DFS)以埃及分数问题为例: 埃及分数:分子是1的分数,叫单位分数。古代埃及人在进行分数运算时。只使用分子是1的分数。因此这种分数也叫做埃及分数,或者叫单分子分数。紫书例题:题目描述 Description在古埃及,人们... 阅读全文
posted @ 2018-03-27 22:33 dslybyme7 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10