# include
# include
# include
using namespace std;
int u[11],t[11111111],cnt = 1,ans;
void solve(int x,int q,int len,int z)
{
u[x] = 1;
if(len == 9)
{
u[x] = 0;
return ;
}
if(x == 0)
{
for(int i = 0;i <= 9;i ++)<br> if(!u[i])
{
solve(i,q * 10,len + 1,z + q * i * 10);
}
u[x] = 0;
}
else
{
t[cnt ++] = z;
for(int i = 0;i <= 9;i +