using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace text_1
{
class Program
{
static void Main(string[] args)
{
int count = 0;
for( int hod=1;hod<=4;hod++)
{
for(int ten=1;ten<=4;ten++)
{
if (ten != hod)
{
for (int sd = 1; sd <= 4; sd++)
{
if (sd != ten && sd != hod)
{ count++;
Console.WriteLine("{0}{1}{2}", hod, ten, sd);
}
}
}
}
}
Console.WriteLine("一共有{0}个",count);
Console.Read();
}
}
}