摘要: DescriptionOne of the world-wide cooperative computing tasks is the "Grand Internet Mersenne Prime Search" -- GIMPS -- striving to find ever-larger pr... 阅读全文
posted @ 2014-10-05 19:07 厕所门口~~ 阅读(438) 评论(3) 推荐(0) 编辑
摘要: DescriptionIt's preseason and the local newspaper wants to publish a preseason ranking of the teams in the local amateur basketball league. The teams ... 阅读全文
posted @ 2014-10-05 17:13 厕所门口~~ 阅读(298) 评论(0) 推荐(0) 编辑
摘要: ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionThe columnar encryption scheme scrambles the letters in a message (or plaintext) using a ... 阅读全文
posted @ 2014-10-05 16:01 厕所门口~~ 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 1001. Fibonacci 2DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn-1 + Fn-2 for n ≥ 2. For examp... 阅读全文
posted @ 2014-09-27 20:50 厕所门口~~ 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1051. Biker's Trip OdometeTime Limit: 1sec Memory Limit:32MBDescriptionMost bicycle speedometers work by using a Hall... 阅读全文
posted @ 2014-09-27 17:48 厕所门口~~ 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1046. Plane SpottingTime Limit: 1sec Memory Limit:32MBDescriptionCraig is fond of planes. Making photographs of plane... 阅读全文
posted @ 2014-09-27 17:32 厕所门口~~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: DescriptionDNA (Deoxyribonucleic acid) is founded in every living creature as the storage medium for genetic information. It is comprised of subunits ... 阅读全文
posted @ 2014-09-27 15:22 厕所门口~~ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 我们都知道,如果在一个函数调用另一个函数,假设是 main 函数调用 fun 函数,这个 fun 函数返回一个临时类类型变量,那么这个时候编译器就会在 main 函数申请一个空间并生成一个临时对象,通过拷贝构造函数将 fun 返回的临时变量的值拷贝到这个临时对象。我们看如下的代码:#include ... 阅读全文
posted @ 2014-09-24 21:38 厕所门口~~ 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: DescriptionLong long ago, there was a super computer that could deal with VeryLongIntegers(no VeryLongInteger will be negative). Do you know how this ... 阅读全文
posted @ 2014-09-23 20:56 厕所门口~~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 在 c++ primer 5 中在说到string的章节里面有这样一句话:string s5 = "hiya"; // copy initialization也就是说,这里说上面这句是拷贝初始化,也就是调用拷贝构造函数。而下面这句:string s6("hiya"); // direct init... 阅读全文
posted @ 2014-09-20 18:55 厕所门口~~ 阅读(1307) 评论(0) 推荐(0) 编辑