#include <stdio.h> int main() { int e, g, f; int a, b, c; int eh, el, gh, gl, fh, fl; for (a = 1;a < 10;a++) { for (b = 1;b < 10;b++) { if (a == b) { continue; } for (c = 1;c < 10;c++) { if (b == c||a == c) { continue; } for (e = 11;e < 100;e++) { eh = e / 10; el = e % 10; if (eh == a || eh == c || el == c || eh == b || el == a || el == b || eh == 0 || el == 0 || eh == el) { continue; } for (f = 11;f < 100;f++) { fh = f / 10; fl = f % 10; if (fh == a || fh == c || fl == c || fh == b || fl == a || fl == b || fh == 0 || fl == 0 || fh == fl || fh == el || fh == eh || fl == el || fl == eh) { continue; } for (g = 11;g < 100;g++) { gh = g / 10; gl = g % 10; if (gh == a || gh == c || gl == c || gh == b || gl == a || gl == b || gh == 0 || gl == 0 || gh == gl || gh == el || gh == eh || gl == el || gl == eh || gh == fl || gh == fh || gl == fh || gl == fl) { continue; } //printf("bbbbbbbbbb\n"); if (a*f*g + b*e*g == c*e*f) { printf("%d %d %d %d %d %d\n", a, b, c, e, f, g); } } } } } } } printf("ccccccccccccccccccc\n"); getchar(); return 0; }
//http://tool.lu//
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。