Calculation of 3-digit Narcissistic Number describe "3-digit Narcissistic Numer" is a 3-digit integer. The sum of the cu
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Calculation of 3-digit Narcissistic Number describe "3-digit Narcissistic Numer" is a 3-digit integer. The sum of the cu
Calculation of 3-digit Narcissistic Number describe "3-digit Narcissistic Numer" is a 3-digit integer. The sum of the cub of each digit is equal to the number itself. For example:ABC 3 3 3 is a "3-digit Narcissistic Numer", then A +B+C =ABC. Write a program to output all "3-digit Narcissistic Numer" in order from small to large (increasely). The results are seperate with ", "(",space"). Note: This a an OJ(auto-judge) program. The output format should be strictly consistent to the test case. There is no comma after the last narcissistic number.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!