#include
#include
#include
#include
using namespace std;
char buff[99];
int main()
{
char s[20];
cin >> s;
int count = 0;
for (int i = 100; i
{
for (int j = 10; j
{
int x = i * (j % 10);
int y = i * (j / 10);
int sum = i * j;
sprintf(buff,"%d%d%d%d%d",i,j,x,y,sum);
int ok = 1;
for (unsigned k = 0; k
if( strchr(s,buff[k]) == NULL)
ok = 0;
if (ok)
{
++count;
cout <" <
cout <
cout <
cout <
cout <
cout <
cout <
cout <
cout <
}
}
}
cout <
system("pause");
return 0;
}


被折叠的 条评论
为什么被折叠?



