Câu hỏi của Vinastudy - Hệ Thống Giáo Dục Trực Tuyến - Toán lớp 5 | Học trực tuyến

0

Leon uses a code to convert a letter string consisting only of As, Bs and Cs, into a number string consisting only of 0s and 1s, by replacing A with 101, B with 11 and C with 0. If the number string obtained is 111010101111100110101, what is the number of letters in the original letter string ?

IMAS 2012 - Grade 5.6 - 035

1 Trả Lời

Lưu ý khi trả lời:

- Cần có tài khoản trước khi gửi bình luận.

- Trả lời giúp bạn cũng là giúp mình.

- Trả lời theo nội dung câu hỏi không bình luận lan man lạc chủ đề.

- Gửi câu trả lời phải rõ ràng, viết tiếng Việt có dấu.

- Trả lời có đính kèm liên kết tới website khác sẽ bị ban vĩnh viễn.

- Vi phạm chính sách sẽ dẫn tới việc bị dừng tất cả dịch vụ sử dụng tại website.

  • 0

    Solution:


    If the first number of a string is 0, it must stand for C. If it is a 1, and the next letter is another 1, the two 1s must stand for B. If the next letter is 0, then the third letter must be 1 and these three letters must stand for A. Thus the number string can be read in a unique way. In particular, 11-101-0-101-11-11-0-0-11-0-101 must stand for BACABBCCBCA, and the number of letters is 11