题解 | #abc#
abc
https://www.nowcoder.com/practice/912b15e237ef44148e44018d7b8750b6
#include <stdio.h> int main() { // 通过简单的运算减少循环次数 for (int a = 1; a < 5; a++) { for (int b = 1; b < 5; b++) { if((532-100*a-110*b)%12==0 && ((532-100*a-110*b)/12)>0 && ((532-100*a-110*b)/12)<9){ printf("%d %d %d\n",a,b,(532-100*a-110*b) / 12); } } } system("pause"); return 0; }