#C11048. Narcissistic Number Checker
Narcissistic Number Checker
Narcissistic Number Checker
A Narcissistic Number (also known as an Armstrong number) is a number that is equal to the sum of its digits each raised to the power of the number of digits. In other words, if a number \(n\) has \(m\) digits \(d_1, d_2, \ldots, d_m\), then \(n\) is narcissistic if:
\[ n = d_1^m + d_2^m + \cdots + d_m^m \]
Your task is to determine whether a given integer \(n\) is a Narcissistic Number.
inputFormat
The input consists of a single integer \(n\) provided via standard input.
outputFormat
Output a single line to standard output: True
if \(n\) is a Narcissistic Number, otherwise False
.
153
True