上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 66 下一页
摘要: B. Longtail HedgehogThis Christmas Santa gave Masha a magic picture and a pencil. The picture consists ofnpoints connected bymsegments (they might cro... 阅读全文
posted @ 2016-01-09 00:50 meekyan 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Almost prime numbers are the non-prime numbers which are divisible by only a single prime number.In this problem your job is to write a program which ... 阅读全文
posted @ 2016-01-08 15:33 meekyan 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1079: [SCOI2008]着色方案Description有n个木块排成一行,从左到右依次编号为1~n。你有k种颜色的油漆,其中第i种颜色的油漆足够涂ci个木块。所有油漆刚好足够涂满所有木块,即c1+c2+...+ck=n。相邻两个木块涂相同色显得很难看,所以你希望统计任意两个相邻木块颜色不同的... 阅读全文
posted @ 2016-01-07 15:22 meekyan 阅读(336) 评论(0) 推荐(1) 编辑
摘要: Given the value of N, you will have to find the value of G. The definition of G is given below:G =i#include #include #include #include using namespace s... 阅读全文
posted @ 2016-01-07 01:24 meekyan 阅读(401) 评论(0) 推荐(0) 编辑
摘要: Little Hasan loves to play number games with his friends. One day they were playing a game whereone of them will speak out a positive number and the o... 阅读全文
posted @ 2016-01-06 20:54 meekyan 阅读(259) 评论(0) 推荐(0) 编辑
摘要: I have some (say, n) marbles (small glass balls) and I am going to buy some boxes to store them. Theboxes are of two types:T ype 1: each box costs c1 ... 阅读全文
posted @ 2016-01-06 19:18 meekyan 阅读(478) 评论(0) 推荐(0) 编辑
摘要: Given any integer 0 ≤ n ≤ 10000 not divisibleby 2 or 5, some multiple of n is a number whichin decimal notation is a sequence of 1’s. Howmany digits a... 阅读全文
posted @ 2016-01-05 22:47 meekyan 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Mathematicians love all sorts of odd properties of numbers. For instance, they consider 945 to be an interesting number, since it is the first odd num... 阅读全文
posted @ 2016-01-05 22:35 meekyan 阅读(279) 评论(0) 推荐(0) 编辑
摘要: The season of flying kites is well ahead. So what? Let us make an inventory for kites. We are givena square shaped sheet of paper. But many parts of th... 阅读全文
posted @ 2016-01-05 16:50 meekyan 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Lily: “Chantarelle was part of my exotic phase.”Buffy: “It’s nice. It’s a mushroom.”Lily: “It is? That’s really embarrassing.”Buffy: “Well, it’s an exot... 阅读全文
posted @ 2016-01-04 21:41 meekyan 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 66 下一页