Question 978632: Given 3 numbers A, B and C. What is the sum of all numbers whose digits are made only of 4, 5 and 6, that have at most A 4's, B 5's, and C 6's in decimal representation, respectively.
Constraints: 0 <= A, B, C <= 10. ( "<=" indicates less than or equal to).
Answer by Edwin McCravy(20054) (Show Source):
You can put this solution on YOUR website! Given 3 numbers A, B and C. What is the sum of all numbers whose digits are made
only of 4, 5 and 6, that have at most A 4's, B 5's, and C 6's in decimal
representation, respectively.
Constraints: 0 <= A, B, C <= 10. ( "<=" indicates less than or equal to).
The smallest one is 4
and
the largest one has 30 digits: 666666666655555555554444444444
where A=B=C=10
So this is asking for an answer with 30 or more digits!!!!
Please write the problem exactly as stated in the book or source in the
thank-you note form below. I don't think anybody would be asking you
for an answer that large.
Edwin
|
|
|