SEND + MORE = MONEY: Difference between revisions

m
m (→‎{{header|Phix}}: Replaced with a faster version, use pygments)
m (→‎{{header|Phix}}: minor tidy)
Line 877:
used[v+1] = true
if solve_rec(uniq,i+1,s+v*multh[chdx]) then
setd(chdxuniq[i],v,mp)
return true
end if
Line 901:
if not find(ch,uniq) then
uniq &= ch
setd(ch-'A'+1,-1,mp)
end if
end for
Line 910 ⟶ 909:
for i,ch in puzzle do
if ch>='A' and ch<='Z' then
puzzle[i] = getd(ch-'A'+1,mp)+'0'
end if
end for
7,820

edits