集邮爱好者把所有的票存放在3个集邮册中,在A册内存放全部的十分之二,在B册内存放不知道是全部的七分之儿,在C册内存放303张邮票,问这位集邮爱好者的集邮总数是多少?以及每册中各有多少邮票?
int x, y, z, i, sum; for (i = 0; i <= 5; i++) { if (10605 % (28 - 5 * i) == 0) { sum = 10605 / (28 - 5 * i); x = 2 * sum / 10; y = 5 * sum / 7; z = 303; cout << "sum:" << sum << " "; cout << "x:" << x << " "; cout << "y:" << y << " "; cout << "z:" << z << " "; } }