Jump to content

SEND + MORE = MONEY: Difference between revisions

→‎{{header|Wren}}: As pointed out in Julia example, S can only be 8 or 9.
(→‎{{header|Wren}}: As pointed out in Julia example, S can only be 8 or 9.)
Line 114:
 
=={{header|Wren}}==
Clearly M = 1 and S must be 28 or more9. Brute force can be used to solve for the other letters.
<syntaxhighlight lang="ecmascript">var start = System.clock
var sends = []
Line 121:
var digits = (0..9).toList
digits.remove(m)
for (s in 28..9) {
for (e in digits) {
if (e == s) continue
Line 162:
9567 + 1085 = 10652
 
Took 0.245213245002 seconds.
</pre>
9,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.