上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 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) 编辑
摘要: Problem Description:Can we divided a given string S into three nonempty palindromes?Input:First line contains a single integerT≤20which denotes the nu... 阅读全文
posted @ 2015-11-12 16:25 搁浅の记忆 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Problem Description:In reward of being yearly outstanding magic student, Harry gets a magical computer. When the computer begins to deal with a proces... 阅读全文
posted @ 2015-11-12 14:15 搁浅の记忆 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Description:Adam and Eve play a card game using a regular deck of 52 cards. The rules are simple. The players sit on opposite sides of a table, facing... 阅读全文
posted @ 2015-11-09 19:01 搁浅の记忆 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Description:The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only... 阅读全文
posted @ 2015-11-09 18:08 搁浅の记忆 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Problem Description:NPY is learning arithmetic progression in his math class. In mathematics, an arithmetic progression (AP) is a sequence of numbers ... 阅读全文
posted @ 2015-11-09 16:19 搁浅の记忆 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=98634#problem/BDescription:I was trying to solve problem'1234 - Harmonic Number', I wrote t... 阅读全文
posted @ 2015-11-09 15:32 搁浅の记忆 阅读(257) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页