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

Автор starboy_jb, история, 4 года назад, По-английски

We can solve a question like "counting the numbers between range which follow some properties" using Digit DP, like count the n digit number whose sum of digits is divisible by 3.

But how can we solve, "sum of the numbers between range which follow some properties" like "sum of n digit numbers whose digit sum is divisible by k". constraints: n = 1e5, 2 <= k <= 10

Please give me a link where I can read about how to solve these types of problems.

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

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

Range of $$$n$$$ and $$$k$$$?

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

https://codeforces.com/blog/entry/67679 I practiced some of the digit dp problems mentioned in this blog, though I don't think I have seen a problem exactly like one you have mentioned but similar problems are present in this blog. I hope this helps.

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

can anybody explain to me here?

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

This is really good video about digit dp https://www.youtube.com/watch?v=Pa4YwO8B8-w. And there are solutions to some problems.

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

http://letmegooglethat.com/?q=digit+dp

Can people not google smh. I understand asking for help about something specific, but when it's a general topic no reason to waste people's time rewriting what's already been written. Thousands of already good explanations are on the web. If you want personalized explanation that is what paying a coach is for...

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

Auto comment: topic has been updated by starboy_jb (previous revision, new revision, compare).

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

Help Somebody.

»
4 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

You can read the editorial for this problem

»
4 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Bruh how about you learn more about digit dp and understand it fully instead of asking for spoonfeeding.

»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Counting problems from A to B https://codeforces.com/blog/entry/8221