복면산(覆面算)은 수학 퍼즐의 한 종류로, 문자를 이용하여 표현된 수식에서 각 문자가 나타내는 숫자를 알아내는 문제이다. 숫자를 문자로 숨겨서 나타내므로 숫자가 “복면”을 쓰고 있는 연산이라는 뜻에서 복면산이라 이름 지어졌다. [1]

verbal arithmetic, alphametics, cryptarithmetic, crypt-arithmetic, cryptarithm or word addition in english.

 

풀이.




입력이 다음과 같을 때,

SEND + MORE = MONEY


출력 : 

D E M N O R S Y

7 5 1 6 0 8 9 2



references

[1] http://ko.wikipedia.org/wiki/%EB%B3%B5%EB%A9%B4%EC%82%B0

[2] http://en.wikipedia.org/wiki/Verbal_arithmetic


: