摘要:
TT and FF are ... friends. Uh... very very good friends -________-b FF is a bad boy, he is always wooing TT to play the following game with him. This
阅读全文
posted @ 2017-07-15 12:27
zhber
阅读(150)
推荐(0)
摘要:
The problem is about Mr.BG who is a great hunter. Today he has gone to a dense forest for hunting and killing animals. Sadly, he has only one bullet i
阅读全文
posted @ 2017-07-15 12:26
zhber
阅读(156)
推荐(0)
摘要:
Mr. Ant has 3 boxes and the infinite number of marbles. Now he wants to know the number of ways he can put marbles in these three boxes when the follo
阅读全文
posted @ 2017-07-15 12:19
zhber
阅读(202)
推荐(0)
摘要:
To make competitive programmers of BUBT, authority decide to take regular programming contest. To make this contest more competitive and fruitful ther
阅读全文
posted @ 2017-07-15 12:07
zhber
阅读(266)
推荐(0)
摘要:
Fibonotci sequence is an integer recursive sequence defined by the recurrence relation Fn = sn - 1·Fn - 1 + sn - 2·Fn - 2withF0 = 0, F1 = 1 Sequence s
阅读全文
posted @ 2017-07-14 22:13
zhber
阅读(815)
推荐(0)
摘要:
For a sequence a of n integers between 1 and m, inclusive, denote f(a) as the number of distinct subsequences of a (including the empty subsequence).
阅读全文
posted @ 2017-07-14 19:34
zhber
阅读(269)
推荐(0)
摘要:
Little X has met the following problem recently. Let's define f(x) as the sum of digits in decimal representation of number x (for example, f(1234) =
阅读全文
posted @ 2017-07-14 00:14
zhber
阅读(424)
推荐(0)
摘要:
Little X has n distinct integers: p1, p2, ..., pn. He wants to divide all of them into two sets A and B. The following two conditions must be satisfie
阅读全文
posted @ 2017-07-13 23:56
zhber
阅读(334)
推荐(0)
摘要:
Treeland is a country in which there are n towns connected by n - 1 two-way road such that it's possible to get from any town to any other town. In Tr
阅读全文
posted @ 2017-07-13 23:26
zhber
阅读(235)
推荐(0)
posted @ 2017-07-13 22:48
zhber
阅读(13)
推荐(0)
摘要:
Mirana is an archer with superpower. Every arrow she shoots will get stronger the further it travels. Mirana is currently on the way to warzone. Since
阅读全文
posted @ 2017-07-12 00:38
zhber
阅读(157)
推荐(0)
摘要:
Given an integer array of N integers, find the sum of bit differences in all the pairs that can be formed from array elements. Bit difference of a pai
阅读全文
posted @ 2017-07-12 00:25
zhber
阅读(175)
推荐(0)
摘要:
Shadowman loves to collect box but his roommates woogieman and itman don't like box and so shadowman wants to hide boxes as many as possible. A box ca
阅读全文
posted @ 2017-07-12 00:20
zhber
阅读(225)
推荐(0)
摘要:
Ayrat has number n, represented as it's prime factorization pi of size m, i.e. n = p1·p2·...·pm. Ayrat got secret information that that the product of
阅读全文
posted @ 2017-07-12 00:11
zhber
阅读(786)
推荐(0)
摘要:
Eefun Guessing Words Eefun is currently learning to read. His way of learning is unique, by trying to make every possible substring from a given strin
阅读全文
posted @ 2017-07-11 23:29
zhber
阅读(231)
推荐(0)