题解 | #牛牛的四叶玫瑰数#
牛牛的四叶玫瑰数
https://www.nowcoder.com/practice/b1ee23676ad54919b50aa1a09da1704e
#include <stdio.h> #include <math.h> int main() { int a,b; scanf("%d %d",&a,&b); for (int i = 0 ; i < b ; i++) { int c = 0, d = a + i; while(d) { c += pow((d%10),4); d /= 10; } if (c == (a + i)) { printf("%d ", c); } } return 0; }