When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

Loser_'s blog

By Loser_, history, 3 years ago, In English

hello I am stuck in this problem Digit Queries.I think I need to use recursion here although not quite sure how? Which algo or technique I need to study to solve this problem? Also please share similar types of problems from other ojs.Please help me with that.

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

simple constructive algorithms is enough to solve this

»
3 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

This string contains numbers, numbers contain digits.

Note: summary length of all n-digit numbers is easy to calculate.

more detailed solution