摘要: Problem Description:FFZ's birthday is coming. GTY wants to give a gift to ZZF. He asked his gay friends what he should give to ZZF. One of them said, ... 阅读全文
posted @ 2015-11-19 19:30 搁浅の记忆 阅读(356) 评论(0) 推荐(0) 编辑
摘要: Description:In the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn− 1+Fn− 2forn≥ 2. For example, the first ten terms of the Fibonacci sequence are:0,... 阅读全文
posted @ 2015-11-19 18:27 搁浅の记忆 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Description:You play a computer game. Your character stands on some level of a multilevel ice cave. In order to move on forward, you need to descend o... 阅读全文
posted @ 2015-11-19 14:55 搁浅の记忆 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Problem Description:Following is the recursive definition of Fibonacci sequence:Fi=⎧⎩⎨01Fi−1+Fi−2i = 0i = 1i > 1Now we need to check whether a number ... 阅读全文
posted @ 2015-11-19 13:27 搁浅の记忆 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description:Little Vova studies programming in an elite school. Vova and his classmates are supposed to writenprogress tests, for each test they will ... 阅读全文
posted @ 2015-11-19 12:29 搁浅の记忆 阅读(171) 评论(0) 推荐(0) 编辑