[Plain]
# Include <stdio. h>
Int main ()
{
Int n;
Int I;
Int g;
Int q;
Int t;
Int r;
Int e;
Int c;
Int v;
T = 1;
For (v = 8; v <= 9; v ++)
{
For (e = 3; e <= 9; r + = 2) // e
{
For (c = 2; c <= 9; c ++)
{
For (n = 0; n <= 9; n ++)
{
For (I = 0; I <= 9; I ++)
{
For (g = 0; g <= 9; g ++)
{
For (q = 0; q <= 9; q ++)
{
If (I! = N! = Q! = E! = G! = T! = C! = V! = R)
{
If (v * 10000 + I * 1000 + n * 100 + g * 10 + t
+ C * 1000 + I * 100 + n * 10 + q
+ C * 1000 + I * 100 + n * 10 + q =
T * 100000 + r * 10000 + e * 1000 + n * 100 + t * 10 + e)
{
Printf ("VINGT = % d CINQ = % d TRENTE = % d \ n ",
V * 10000 + I * 1000 + n * 100 + g * 10 + t,
C * 1000 + I * 100 + n * 10 + q,
C * 1000 + I * 100 + n * 10 + q,
T * 100000 + r * 10000 + e * 1000 + n * 100 + t * 10 + e );
}
}
}
}
}
}
}
}
}
}
# Include <stdio. h>
Int main ()
{
Int n;
Int I;
Int g;
Int q;
Int t;
Int r;
Int e;
Int c;
Int v;
T = 1;
For (v = 8; v <= 9; v ++)
{
For (e = 3; e <= 9; r + = 2) // e
{
For (c = 2; c <= 9; c ++)
{
For (n = 0; n <= 9; n ++)
{
For (I = 0; I <= 9; I ++)
{
For (g = 0; g <= 9; g ++)
{
For (q = 0; q <= 9; q ++)
{
If (I! = N! = Q! = E! = G! = T! = C! = V! = R)
{
If (v * 10000 + I * 1000 + n * 100 + g * 10 + t
+ C * 1000 + I * 100 + n * 10 + q
+ C * 1000 + I * 100 + n * 10 + q =
T * 100000 + r * 10000 + e * 1000 + n * 100 + t * 10 + e)
{
Printf ("VINGT = % d CINQ = % d TRENTE = % d \ n ",
V * 10000 + I * 1000 + n * 100 + g * 10 + t,
C * 1000 + I * 100 + n * 10 + q,
C * 1000 + I * 100 + n * 10 + q,
T * 100000 + r * 10000 + e * 1000 + n * 100 + t * 10 + e );
}
}
}
}
}
}
}
}
}
}