#include<stdio.h> long Fact(int n); int main() { int m, a, b, c; for (m = 100; m < 1000; m++) { a = m / 100; b = (m - a * 100) / 10; c = m % 10; if (m = Fact(a) + Fact(b) + Fact(c)) { printf("%d\n", m); } return 0; } long Fact(int n) { int i,n; long result = 1; for (i = 1;i <= n;i++) { result *= i; return result; } }
慕粉2243144748
慕粉2243144748
一把木剑
相关分类