01 2015 档案

Project Euler 51: Prime digit replacements
摘要:题目描述:By replacing the 1st digit of the 2-digit number *3, it turns out that six of the nine possible values: 13, 23, 43, 53, 73, and 83, are all prime... 阅读全文

posted @ 2015-01-27 17:43 sponge_wxy 阅读(113) 评论(0) 推荐(0)

Project Euler 45: Triangular, pentagonal, and hexagonal
摘要:题目描述:Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:TriangleTn=n(n+1)/21, 3, 6, 10, 15, ...PentagonalPn=n(3n−1)/2... 阅读全文

posted @ 2015-01-27 11:30 sponge_wxy 阅读(108) 评论(0) 推荐(0)

C++之插入迭代器
摘要:C++的迭代器适配器中常用的有插入迭代器(Inser Iterator)、流迭代器(Stream Iterator)和逆向迭代器(Reverse Iterator)等!本文主要是介绍插入迭代器(Inser Iterator).下面介绍三种插入迭代器:1.Back Inserter原理:其内部调用pu... 阅读全文

posted @ 2015-01-21 17:42 sponge_wxy 阅读(125) 评论(0) 推荐(0)

shell中$*与$@的区别
摘要:$*所有的位置参数,被作为一个单词.注意:"$*"必须被""引用.$@与$*同义,但是每个参数都是一个独立的""引用字串,这就意味着参数被完整地传递,并没有被解释和扩展.这也意味着,每个参数列表中的每个参数都被当成一个独立的单词.注意:"$@"必须被引用.$@ $* 只在被双引号包起来的时候才会有差... 阅读全文

posted @ 2015-01-21 11:44 sponge_wxy 阅读(75) 评论(0) 推荐(0)

导航