// -C-B-2_
/*【 】
:
, 。
, :36 x 495 = ?
:396 x 45 = ?
, !!
36 * 495 = 396 * 45 = 17820
, :27 * 594 = 297 * 54
a b c d e 1~9 5 ( , 0)
: ab * cde = adb * ce ?
, 。
, 。
。
: , 。
*/
/*【 】
:
:142
*/
#include
using namespace std;
/*
* @ :
* @ :
* @ :
*/
int main()
{
int count = 0;
for(int a=1;a<10;a++)
for(int b=1;b<10;b++)
for(int c=1;c<10;c++)
for(int d=1;d<10;d++)
for(int e=1;e<10;e++){
if(a!=b && a!=c && a!=d && a!=e
&& b!=c && b!=d && b!=e
&& c!=d && c!=e
&& d!=e){
if((a*10+b) * (c*100+d*10+e) == (a*100+d*10+b)* (c*10+e))
count++;
}
}
cout<