Description: The variables A, B, C, D, E, and F are arranged as triangles as shown in the figure. These six variables are taken as integers on [1,6] and are not the same. Find all solutions that make the sum of the variables on the three sides of the triangle equal. Figure is a solution.
The program introduces the variables a, b, c, d, e, f, and let them take 1 to 6 certificates, respectively, in their different conditions, the test by their arrangement as shown in the triangle triangle On the sum of the variables are equal, such as equal to an order to meet the requirements of their output. When all of these variables are exhausted, the program can obtain all possible solutions.
To Search:
File list (Check if you may need any files):
abcdef.cpp
abcdef.dsp
abcdef.dsw
abcdef.ncb
abcdef.opt
abcdef.plg
Debug
.....\abcdef.pch
.....\vc60.idb
.....\vc60.pdb