/// <summary>
/// 计算
/// </summary>
public static void Calculate()
{
int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0;
for (; a <= 10; a++)
{if (a == 10) a = 0;
for (; b <= 10; b++)
{if (b == 10) {b = 0; break;}
for (; c <= 10; c++)
{if (c == 10) { c = 0;break;}
for (; d <= 10; d++)
{if (d == 10) { d = 0; break;}
for (; e <= 10; e++)
{if (e == 10){e = 0; break;}
for (; f <= 10; f++)
{ if (f == 10) {f = 0; break;}
if ((a * 100000 + b * 10000 + c * 1000 + d * 100 + e * 10 + f) * e ==
f * 100000 + a * 10000 + b * 1000 + c * 100 + d * 10 + e && e != 0)
{
Console.WriteLine("上:" + a + " 海:" + b + " 世:" + c + " 博:" + d + " 会:" + e + " 棒:" + f);
return;
}
}
}
}
}
}
}
}
/// 计算
/// </summary>
public static void Calculate()
{
int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0;
for (; a <= 10; a++)
{if (a == 10) a = 0;
for (; b <= 10; b++)
{if (b == 10) {b = 0; break;}
for (; c <= 10; c++)
{if (c == 10) { c = 0;break;}
for (; d <= 10; d++)
{if (d == 10) { d = 0; break;}
for (; e <= 10; e++)
{if (e == 10){e = 0; break;}
for (; f <= 10; f++)
{ if (f == 10) {f = 0; break;}
if ((a * 100000 + b * 10000 + c * 1000 + d * 100 + e * 10 + f) * e ==
f * 100000 + a * 10000 + b * 1000 + c * 100 + d * 10 + e && e != 0)
{
Console.WriteLine("上:" + a + " 海:" + b + " 世:" + c + " 博:" + d + " 会:" + e + " 棒:" + f);
return;
}
}
}
}
}
}
}
}