code : array [1..50] of longint;
zeros : longint;
when n = 1
there are only two possibilities '1' and '0'
for n = 2 we try to add '0' and '1' after them
(code[1] = 2 , zeros = 1(one number end with zero))
for number end with '1' , we can add '0' only
for '0' , we can add both '0' and '1'
so ...
Search found 3 matches
- Sun Feb 16, 2003 5:06 am
- Forum: Volume 104 (10400-10499)
- Topic: 10450 - World Cup Noise
- Replies: 42
- Views: 27390
- Fri Feb 07, 2003 12:30 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10439 - Temple of Dune
- Replies: 15
- Views: 7141
- Thu Jan 30, 2003 6:04 am
- Forum: Volume 104 (10400-10499)
- Topic: 10426 - Knights' Nightmare
- Replies: 17
- Views: 9817