Hery is going to junior high school, and he meets a problem during his entrance examination: We define. f as the sum of the number of cycles for each digit of x. More specifically, 1, 2, 3, 5, 7 have 0 cycle, 0,4, 6, 9 have 1 cycle and 8 has 2 cycles. For example:
Hery is going to junior high school, and he meets a problem during his entrance examination: We define f(x) as the sum of the number of cycles for each digit of x. More specifically, 1, 2, 3, 5, 7 have 0 cycle, 0,4, 6, 9 have 1 cycle and 8 has 2 cycles. For example: f(81) = 2, f(88) = 4, f(0) = 1, f(1000) = 3 Please help hery calculate f(x).
(图片来源网络,侵删)