Блог пользователя wish_me

Автор wish_me, история, 7 лет назад, По-английски

http://codeforces.net/problemset/problem/414/B

Can anyone help me in understand the problem.Just need explaination.Thanks in advance

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
7 лет назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

A sequence is called good if all the numbers are divided by its previous number(excluding the first number ofcourse). So a sequence like — 1,4,12,36 is called good but 1,4,8,14 is not good.

Now you will be given n (the maximum number you can use in the sequence) and k (length of sequence). You have to tell how many sequences can be made out of these restrictions.

Solution Hint