上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 题目描述 The members of XDU-ACM group went camp this summer holiday. They came across a river one day. There was a ship which only can carry at most two p 阅读全文
posted @ 2016-12-11 14:30 Crutain 阅读(192) 评论(0) 推荐(0)
摘要: 题目描述 输入自然数n,然后将其拆分成由若干数相加的形式,参与加法运算的数可以重复。 输入自然数n,然后将其拆分成由若干数相加的形式,参与加法运算的数可以重复。 输入 多组数据。每组只有一个整数n,表示待拆分的自然数n。 n<=80 多组数据。每组只有一个整数n,表示待拆分的自然数n。 n<=80 阅读全文
posted @ 2016-12-10 21:37 Crutain 阅读(370) 评论(0) 推荐(0)
摘要: 题目描述 Youyouyouyou is very interested in math, one day, an idea came into his mind that how many ways he can patition n same things into no more than m 阅读全文
posted @ 2016-12-10 21:14 Crutain 阅读(168) 评论(0) 推荐(0)
摘要: 题目描述 As we all know, Xiahou Jinxuan (Chinese Paladin 5 Prequel’s protagonist) and Yue Jinzhao (Chinese Paladin 6’s protagonist) are the most intellige 阅读全文
posted @ 2016-12-10 13:58 Crutain 阅读(533) 评论(0) 推荐(0)
摘要: 题目描述 某天 light由于太富而且太帅遭到了歹徒的袭击,现在他遇到了n个歹徒,准备对light施行不法行为,虽然light身体强壮,但是毕竟只有一个人肯定打不过那么多歹徒,但是高智商的light觉得歹徒们非常stupid,不打算束手就擒。经过观察他发现这些歹徒是有派系之分的 我们规定 A与B,B 阅读全文
posted @ 2016-12-10 13:55 Crutain 阅读(124) 评论(0) 推荐(0)
摘要: 题目描述 Orz Panda is addicted to one RPG game. To make his character stronger, he have to fulfil tasks to get EXP for higher level.At first he accepted a 阅读全文
posted @ 2016-12-10 00:58 Crutain 阅读(224) 评论(0) 推荐(0)
摘要: 题目描述 "But baby, I've been, I've been praying hard, Said, no more counting dollars We'll be counting stars" Grandpa Shaw loves counting stars. One even 阅读全文
posted @ 2016-12-09 19:49 Crutain 阅读(180) 评论(0) 推荐(0)
摘要: 题目描述 大家都知道,小W是一名大帅哥,当然比起Light还是有点儿差距的!帅气的小W认为0-9这些数字,只有1,3,5是完美的。 欲问小W为什么,小W总是说“帅哥,是不需要解释的”.所以在帅哥小W的世界里,只有1,3,5这些数字或者是有1,3,5组合 而成的数字,比如13,35555等等。 那么现 阅读全文
posted @ 2016-12-08 11:21 Crutain 阅读(180) 评论(0) 推荐(0)
摘要: 题目描述 Matrix67发现身高接近的人似乎更合得来。Matrix67举办的派对共有N(1<=N<=10)个人参加,Matrix67需要把他们安排在圆桌上。Matrix67的安排原则是,圆桌上任意两个相邻人的身高之差不能超过K。请告诉Matrix67他共有多少种安排方法。 Matrix67发现身高 阅读全文
posted @ 2016-12-07 23:22 Crutain 阅读(244) 评论(0) 推荐(0)
摘要: 题目描述 已知一个n*m的矩阵,希望你能按照下图所示的规律进行遍历,并把遍历的结果输出。 对于如图,遍历的结果为: 1 4 2 3 5 7 8 6 9 已知一个n*m的矩阵,希望你能按照下图所示的规律进行遍历,并把遍历的结果输出。 对于如图,遍历的结果为: 1 4 2 3 5 7 8 6 9 输入 阅读全文
posted @ 2016-12-07 22:44 Crutain 阅读(323) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页