askhelper's blog

By askhelper, 6 years ago, In English

Hello. I read the tutorial of the problem Roman Digits but can't understand it. My thought is we need to count different k such that there exist a, b, c, d with the following conditions:

(i)a + 5b + 10c + 50d = k

(ii)a + b + c + d = n

If we replace a from (ii) we get 4b + 9c + 49d = k - n. Can't continue.

Any helps are appreciated.

  • Vote: I like it
  • +3
  • Vote: I do not like it