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

Common Board

1009 *K based numbers. again *PLEASE READ VERY IMPORTANT QUESTION
Posted by Smasher_nine 18 Oct 2000 23:56
Ok so when I asked about this the previous time some people
answered with some formulas.I don't want formulas I can
write them on my own.I want to know if the test sample is
right.The test samples is the count of all numbers not
containing 2 succesful zeroes having 10 digits in binary
base system.So i count the numbers in the range [512, 1023]
and i get 89. The sample says 90.This is wrong I can give
you the list of all 89 binary nums between [512, 1023] that
don't have 2 or more succesful zeroes.And there aren't any
more.So please tell me what's wrong with 1009 or list all
90 of them.
Re: 1009 *K based numbers. again *PLEASE READ VERY IMPORTANT QUESTION
Posted by Petko Minkov 19 Oct 2000 01:08
> Ok so when I asked about this the previous time some
people
> answered with some formulas.I don't want formulas I can
> write them on my own.I want to know if the test sample is
> right.The test samples is the count of all numbers not
> containing 2 succesful zeroes having 10 digits in binary
> base system.So i count the numbers in the range [512,
1023]
> and i get 89. The sample says 90.This is wrong I can give
> you the list of all 89 binary nums between [512, 1023]
that
> don't have 2 or more succesful zeroes.And there aren't
any
> more.So please tell me what's wrong with 1009 or list all
> 90 of them.

 read more carefully what N and K are. i think they
mean base 10 numbers containing two digits.

10, 11, 12 .. 99. not binary numbers.

i think you swap the meaning of N and K...