摘要:
B. Longtail HedgehogThis Christmas Santa gave Masha a magic picture and a pencil. The picture consists ofnpoints connected bymsegments (they might cro... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文