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 1209. 1, 10, 100, 1000...

got AC
only way to do this is to recognise the positions where you get 1's. 1,2,4,7...... so if the input number belongs to this series it is 1 else a zero. dont forget to add type cast in each calculation.you will get AC.

Edited by author 01.03.2008 10:22

Edited by author 01.03.2008 10:22