2013年11月7日

纸牌游戏——巨水

摘要: NBUT - 1001纸牌游戏Time Limit:1000MSMemory Limit:65535KB64bit IO Format:%I64d & %I64uDescription玩家1和玩家2各出一张牌,看谁大。如果两张牌都不是王牌花色或则都是王牌花色,则牌面大的牌大,如果牌面一样大则一样大。若其中一张牌是王牌而另一张不是,则无论牌面如何都是王牌花色大。Input第一行一个数字n,代表数据组数(n 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 # 阅读全文

posted @ 2013-11-07 23:43 lveternal 阅读(205) 评论(0) 推荐(0) 编辑

Gibonacci number-斐波那契数列

摘要: DescriptionIn mathematical terms, the normal sequenceF(n)of Fibonacci numbers is defined by the recurrence relationF(n)=F(n-1)+F(n-2)with seed valuesF(0)=1, F(1)=1In thisGibonacci numbersproblem, the sequenceG(n)is defined similarG(n)=G(n-1)+G(n-2)with the seed value forG(0)is1for any case, and the 阅读全文

posted @ 2013-11-07 23:38 lveternal 阅读(295) 评论(0) 推荐(0) 编辑

导航