difficult maths for 20 points

2014-12-03 11:09 pm
Count the number of 01-strings with following constraints:
The length is 8. 000000 must not appear in the string.

回答 (2)

2014-12-04 7:07 pm
✔ 最佳答案
The total no. of possible binary strings formed by eight 01’s = 2^8=256
The group of six 0’s can appear from the first digit or second digit or third digit.
There are only 8 possible combinations with six 0’s in between:

00000000
00000001
00000010
00000011
01000000
10000000
10000001
11000000

Hence the number of 01-strings=256-8=248
2014-12-04 4:03 am
String is smaller than call so you can't see it!
參考: myself


收錄日期: 2021-04-11 20:57:42
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20141203000051KK00059

檢視 Wayback Machine 備份