上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed ed 阅读全文
posted @ 2018-09-26 19:32 Daybreaking 阅读(617) 评论(3) 推荐(0) 编辑
摘要: 1.3.3 Calf Flac Description 据说如果你给无限只母牛和无限台巨型便携式电脑(有非常大的键盘),那么母牛们会制造出世上最棒的回文。你的工作就是去寻找这些牛制造的奇观(最棒的回文)。 在寻找回文时不用理睬那些标点符号、空格(但应该保留下来以便做为答案输出),只用考虑字母'A'- 阅读全文
posted @ 2018-09-24 10:58 Daybreaking 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1.2.4 Palindromic Squares 回文平方数 Description 回文数是指从左向右念和从右向左念都一样的数。如12321就是一个典型的回文数。 给定一个进制B(2<=B<=20,由十进制表示),输出所有的大于等于1小于等于300(十进制下)且它的平方用B进制表示时是回文数的数 阅读全文
posted @ 2018-09-24 10:46 Daybreaking 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1.2.3 Name That Number 命名那个数字 Description 在威斯康辛州牛大农场经营者之中,都习惯于请会计部门用连续数字给母牛打上烙印。但是,母牛用手机时并没感到这个系统的便利,它们更喜欢用它们喜欢的名字来呼叫它们的同伴,而不是用像这个的语句"C'mon, #4734, ge 阅读全文
posted @ 2018-09-24 10:43 Daybreaking 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1.2.1 Milking Cows 挤牛奶 Description 三个农民每天清晨5点起床,然后去牛棚给3头牛挤奶。第一个农民在300时刻(从5点开始计时,秒为单位)给他的牛挤奶,一直到1000时刻。第二个农民在700时刻开始,在 1200时刻结束。第三个农民在1500时刻开始2100时刻结束。 阅读全文
posted @ 2018-09-24 10:39 Daybreaking 阅读(728) 评论(0) 推荐(0) 编辑
摘要: Description 你有一条由N个红色的,白色的,或蓝色的珠子组成的项链(3<=N<=350),珠子是随意安排的。 这里是 n=29 的二个 例子: 第一和第二个珠子在图片中已经被作记号。 图片 A 中的项链可以用下面的字符串表示: brbrrrbbbrrrrrbrrbbrbbbbrrrrb . 阅读全文
posted @ 2018-09-24 10:26 Daybreaking 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Since Sonya is interested in robotics too, she decided to construct robots that will read and recognize numbers. Sonya has drawn nn numbers in a row,  阅读全文
posted @ 2018-09-24 10:04 Daybreaking 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Slava plays his favorite game "Peace Lightning". Now he is flying a bomber on a very specific map. Formally, map is a checkered field of size 1 × n, t 阅读全文
posted @ 2018-09-24 09:48 Daybreaking 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Sonya decided to organize an exhibition of flowers. Since the girl likes only roses and lilies, she decided that only these two kinds of flowers shoul 阅读全文
posted @ 2018-09-24 09:34 Daybreaking 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Allen wants to enter a fan zone that occupies a round square and has nn entrances. There already is a queue of aiai people in front of the ii-th entra 阅读全文
posted @ 2018-09-24 09:20 Daybreaking 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页