Problem 1941. Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving us an even number of digits between 0-9, and she wants us to come up with the smallest possible sum of two numbers that are the same length.
For example, if we're given [0 1 2 3], the smallest sum we can get using those numbers by adding two 2-digit numbers together is 33. That's either 10+23 or 13+20. We don't need to know what the two original numbers are, just what their sum is. We also can't start any of our numbers with a zero, because that's cheating.
You guys did a great job with my earlier problems, and even taught my dad a few things about MATLAB! I hope you can help me out with this one as well!
Solution Stats
Problem Comments
-
2 Comments
I fought against this problem during months... :)
Dear James, I got a few questions: how old are your lovely daughter? and how insanely creepy is this teacher to put number like "225802467" in her homework? That just kill us too.
Solution Comments
Show commentsProblem Recent Solvers52
Suggested Problems
-
98625 Solvers
-
Remove all the words that end with "ain"
2254 Solvers
-
Generate N equally spaced intervals between -L and L
856 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
535 Solvers
-
9159 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!