#include <iostream>
using namespace std;
int main()
{
int sum=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 \
&& (a*10 + b)*(c*100 + d*10 + e) == (a*100 + d*10 + b)*(c*10 + e)){
sum++;
}
}
cout<<sum<<endl;
return 0;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交