上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 49 下一页
摘要: A + B Problem II I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe... 阅读全文
posted @ 2019-04-11 16:53 black_hole6 阅读(594) 评论(0) 推荐(0)
摘要: Lele now is thinking about a simple function f(x). If x = 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + …… + a9 * f(x-10); And a... 阅读全文
posted @ 2019-04-11 09:45 black_hole6 阅读(150) 评论(0) 推荐(0)
摘要: Bob's school has a big playground, boys and girls always play games here after school. To protect boys and girls from getting hurt whe... 阅读全文
posted @ 2019-04-10 22:24 black_hole6 阅读(210) 评论(0) 推荐(0)
摘要: 原博客:https://blog.csdn.net/wookaikaiko/article/details/81105031一、关于卡特兰数 卡特兰数是一种经典的组合数,经常出现在各种计算中,其前几项为 : 1, 2, 5, 14, 42, 132, 42... 阅读全文
posted @ 2019-04-10 18:54 black_hole6 阅读(809) 评论(0) 推荐(0)
摘要: In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several cons... 阅读全文
posted @ 2019-04-09 16:23 black_hole6 阅读(125) 评论(0) 推荐(0)
摘要: You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given numbe... 阅读全文
posted @ 2019-04-09 16:04 black_hole6 阅读(189) 评论(0) 推荐(0)
摘要: 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到文... 阅读全文
posted @ 2019-04-09 11:44 black_hole6 阅读(132) 评论(0) 推荐(0)
摘要: C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚... 阅读全文
posted @ 2019-04-08 23:43 black_hole6 阅读(166) 评论(0) 推荐(0)
摘要: The name of one small but proud corporation consists of n lowercase English letters. The Corporation has decided to try rebranding — a... 阅读全文
posted @ 2019-04-08 17:28 black_hole6 阅读(223) 评论(0) 推荐(0)
摘要: 标题:拼接平方数 小明发现49很有趣,首先,它是个平方数。它可以拆分为4和9,拆分出来的部分也是平方数。169也有这个性质,我们权且称它们为:拼接平方数。 100可拆分1 00,这有点勉强,我们规定,0 00 000 等都不算平方数。 小明想:还有哪... 阅读全文
posted @ 2019-04-08 15:36 black_hole6 阅读(272) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 49 下一页