题解 | #变种水仙花#
变种水仙花
https://www.nowcoder.com/practice/c178e3f5cc4641dfbc8b020ae79e2b71
#include <stdio.h> int main() { for(int a=10000;a<=99999;a++)if(a==(a/10000)*(a%10000)+(a/1000)*(a%1000)+(a/100)*(a%100)+(a/10)*(a%10))printf("%d ",a); return 0; }