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

Автор doomsfear, 10 лет назад, По-английски

I want to get nth digit of the lucky string . Lucky string is made by the concatenation of lucky digits i.e. 4 and 7 in the increasing order . Thus lucky string is 4744477477444.... and so on.

Value of n is of the order 10^15 .

How to solve this type of problem ? Is there any DP solution ?

Example : n=1 ans is 4 . n=10 ans is 4.

Полный текст и комментарии »

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

Автор doomsfear, 11 лет назад, По-английски

Please increase the frequency of contests , and list the upcoming contests of the month at the beginning of the month . Its hurts to see 'No contests' in the Contests tab .

-A wannabe coder

Полный текст и комментарии »

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