2017年3月17日

Project Euler Problem 2: Even Fibonacci numbers

摘要: Even Fibonacci numbersProblem 2Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with... 阅读全文

posted @ 2017-03-17 23:34 海岛Blog 阅读(117) 评论(0) 推荐(0) 编辑

Project Euler Problem 2: Even Fibonacci numbers

摘要: Even Fibonacci numbersProblem 2Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with... 阅读全文

posted @ 2017-03-17 23:34 海岛Blog 阅读(128) 评论(0) 推荐(0) 编辑

Project Euler Problem 1: Multiples of 3 and 5

摘要: Multiples of 3 and 5Problem 1If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum o... 阅读全文

posted @ 2017-03-17 22:21 海岛Blog 阅读(122) 评论(0) 推荐(0) 编辑

Project Euler Problem 1: Multiples of 3 and 5

摘要: Multiples of 3 and 5Problem 1If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum o... 阅读全文

posted @ 2017-03-17 22:21 海岛Blog 阅读(103) 评论(0) 推荐(0) 编辑

UVA10252 POJ2629 Common Permutation【字符串排序】

摘要: 问题链接:UVA10252 POJ2629 Common Permutation。问题描述:参见上文。两个小写字母构成的字符串a和b,求各自的置换的最长公共子串,按字母顺序输出。问题分析:(略)。程序说明:字符串类型变量的排序也是可以用函数sort()实现的。AC的C... 阅读全文

posted @ 2017-03-17 08:34 海岛Blog 阅读(152) 评论(0) 推荐(0) 编辑

UVA10252 POJ2629 Common Permutation【字符串排序】

摘要: 问题链接:UVA10252 POJ2629 Common Permutation。问题描述:参见上文。两个小写字母构成的字符串a和b,求各自的置换的最长公共子串,按字母顺序输出。问题分析:(略)。程序说明:字符串类型变量的排序也是可以用函数sort()实现的。AC的C... 阅读全文

posted @ 2017-03-17 08:34 海岛Blog 阅读(126) 评论(0) 推荐(0) 编辑

导航