fork(1) download
  1. #include <stdio.h>
  2.  
  3. f(a){return a?a*f(a-1):1;}a(l){return l?f(l%10)+a(l/10):0;}c,t,o;r(i){for(t=o=i;t=a(t),o=a(a(o)),c=t^o;);for(t=i;t^c;printf("%d ",t),c=c|t^o?c:o,t=a(t),o=a(o));}
  4.  
  5. int main(void)
  6. {
  7. r(132);
  8. puts("\n");
  9. r(9);
  10. puts("\n");
  11. r(362880);
  12. puts("\n");
  13. r(363601);
  14. puts("\n");
  15. r(169);
  16. puts("\n");
  17. r(1454);
  18. puts("\n");
  19. r(78);
  20. puts("\n");
  21. r(107);
  22. puts("\n");
  23. r(450);
  24.  
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
132 9 362880 81369 403927 367953 368772 51128 40444 97 367920 368649 404670 5810 40442 75 5160 842 40346 775 10200 6 720 5043 151 122 5 120 4 24 26 722 5044 169 363601 1454 

9 362880 81369 403927 367953 368772 51128 40444 97 367920 368649 404670 5810 40442 75 5160 842 40346 775 10200 6 720 5043 151 122 5 120 4 24 26 722 5044 169 363601 1454 

362880 81369 403927 367953 368772 51128 40444 97 367920 368649 404670 5810 40442 75 5160 842 40346 775 10200 6 720 5043 151 122 5 120 4 24 26 722 5044 169 363601 1454 

363601 1454 169 

169 363601 1454 

1454 169 363601 

78 45360 871 45361 

107 5042 147 5065 961 363601 1454 169 

450 145