ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1009. K-based Numbers

i can't understand why algo is wrong
Posted by Sania 26 Aug 2010 01:55
f(n) = f(n - 1) * k - f(n - 2)

why it's wrong? as i understand, f(n - 2) is how many zero-ending numbers in f(n - 1). am i wrong?