#include <iostream>
using namespace std;
int main()
{
int a, b, c, d, e, f, g, h, i, j;
for (int a = 0; a <= 9; ++a)
{
for (int b = 0; b <= 9; ++b)
{
for (int c = 0; c <= 9; ++c)
{
for (int d = 0; d <= 9; ++d)
{
for (int e = 0; e <= 9; ++e)
{
for (int f = 0; f <= 9; ++f)
{
for (int g = 0; g <= 9; ++g)
{
for (int h = 0; h <= 9; ++h)
{
for (int i = 0; i <= 9; ++i)
{
bool b_1_h = (d + c * 10 + b * 100 + a * 1000) / (e * 10 + f) = e * 100 + g * 10 + d;
bool b_2_h = (h * 1000 + i * 100 + j * 10 + e) - (h * 1000 + i * 100 + b * 10 + g) = f * 10 + e;
bool b_3_h = (j * 1000 + h * 100 + d * 10 + b) - (h*1000+i*100+d*10+f) = c*1000+g*100+g*10+c;
bool b_1_v = (a * 1000 + b * 100 + c * 10 + d) - (h * 1000 + i * 100 + j * 10 + e) = j * 1000 + h * 100 + d * 10 + b;
bool b_2_v = (e * 10 + f) + (h * 1000 + i * 100 + b * 10 + c) = h*1000+i*100+d*10+f;
bool b_3_v = (i * 100 + g * 10 + d) * (f * 10 + e) = c*1000+g*100+g*10+c;
if (b_1_h && b_2_h && b_3_h && b_1_v && b_2_v && b_3_v)
{
cout << endl << endl;
}
}
}
}
}
}
}
}
}
}
system("PAUSE");
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}