Reverse Cryptogram

Logic Level 3

X A + B X Y X A × B Y X \begin{array}{ccccc} & & & & X & A \\ + & & & & \ &B \\ \hline & & & & X & Y \\ \hline \end{array} \qquad \qquad \begin{array}{ccccc} & & & & X & A \\ \times & & & & \ &B \\ \hline & & & & Y & X \\ \hline \end{array}

Given that A , B , X A,B,X and Y Y are distinct non-negative integers satisfying the two cryptogram above. Find the value of the 2-digit integer X Y \overline{XY} that is not equal to 27.


The answer is 49.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

1
2
3
4
5
6
7
8
from itertools import permutations

for x,a,b,y in permutations('0123456789',4):
  if int(x+a)+int(b)==int(x+y) and int(x+a)*int(b)==int(y+x):
    if x=='2' and y=='7':
      continue
    else:
      print(x,y)

1
49

We let 47 + 2 = 49 and 47 x 2 = 94. Then X = 4, A = 7, B = 2 and Y = 9. Therefore XY = 49.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...