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

2017年3月1日

15年第六届蓝桥杯第七题_(string)

摘要: 手链样式 小明有3颗红珊瑚,4颗白珊瑚,5颗黄玛瑙。他想用它们串成一圈作为手链,送给女朋友。现在小明想知道:如果考虑手链可以随意转动或翻转,一共可以有多少不同的组合样式呢? 请你提交该整数。不要填写任何多余的内容或说明性的文字。 一开始以为是搜索,发现不行,想了一会儿没有思路,看了题解。。。用了一个 阅读全文

posted @ 2017-03-01 21:36 JASONlee3 阅读(327) 评论(0) 推荐(0) 编辑

2017年2月28日

复习KMP

摘要: 2017.4.7: 看了好几遍的kmp,又忘了。。。 这次的理解:求next数组,求模式串的对称性(前缀和后缀的最大公共长度),next[i]表示模式串mo[1--i]这个子串的前缀和后缀的最大公共长度。 给这个月凑够20篇博客,手撸以便KMP,也当作温习一下。 阅读全文

posted @ 2017-02-28 16:30 JASONlee3 阅读(266) 评论(0) 推荐(0) 编辑

HDU_6017_Girls love 233_(dp)(记忆化搜索)

摘要: Girls Love 233 Accepts: 30 Submissions: 218 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Girls Love 233 Accepts: 3 阅读全文

posted @ 2017-02-28 16:04 JASONlee3 阅读(666) 评论(0) 推荐(0) 编辑

2017年2月27日

Bellman_Ford算法

摘要: 看了别人的博客,总结得很好。http://blog.csdn.net/xu3737284/article/details/8973615 Bellman-Ford算法可以大致分为三个部分第一,初始化所有点。每一个点保存一个值,表示从原点到达这个点的距离,将原点的值设为0,其它的点的值设为无穷大(表示 阅读全文

posted @ 2017-02-27 17:24 JASONlee3 阅读(206) 评论(0) 推荐(0) 编辑

2017年2月26日

Codeforces_779_D.String Game_(二分)

摘要: D. String Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output D. String Game time limit 阅读全文

posted @ 2017-02-26 22:35 JASONlee3 阅读(791) 评论(0) 推荐(0) 编辑

HDU_6016_(Bestcoder round #92 1002)_(dfs)(暴力)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6016 题意:给定男羊和女羊的朋友关系,即给定一个图,问从任意一只羊开始连续数四只不相同的羊的方法数。 思路:一开始用了dfs没过,报的超时,以为真的会超时,最后发现,犯了个以前常犯的老问题,存边的vec 阅读全文

posted @ 2017-02-26 15:23 JASONlee3 阅读(299) 评论(0) 推荐(0) 编辑

2017年2月25日

Codeforces_776_C_(思维)(前缀和)

摘要: C. Molly's Chemicals time limit per test 2.5 seconds memory limit per test 512 megabytes input standard input output standard output C. Molly's Chemic 阅读全文

posted @ 2017-02-25 17:42 JASONlee3 阅读(1114) 评论(0) 推荐(0) 编辑

2017年2月23日

Codeforces_768_D_(概率dp)

摘要: D. Jon and Orbs time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Jon Snow is on the looko 阅读全文

posted @ 2017-02-23 14:10 JASONlee3 阅读(355) 评论(0) 推荐(0) 编辑

2017年2月21日

Codeforces_768_B_(二分)

摘要: B. Code For 1 time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Code For 1 time limit p 阅读全文

posted @ 2017-02-21 15:08 JASONlee3 阅读(289) 评论(0) 推荐(0) 编辑

2017年2月18日

Codeforces_758_D_(区间dp)

摘要: D. Ability To Convert time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alexander is learni 阅读全文

posted @ 2017-02-18 15:38 JASONlee3 阅读(384) 评论(0) 推荐(0) 编辑

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

导航