#C11270. Armstrong Number Checker
Armstrong Number Checker
Armstrong Number Checker
An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits each raised to the power of the number of digits. In other words, if a number \(n\) has \(k\) digits \(d_1, d_2, \ldots, d_k\), then \(n\) is an Armstrong number if:
\(n = d_1^k + d_2^k + \cdots + d_k^k\)
Given an integer, your task is to determine whether it is an Armstrong number.
inputFormat
The input consists of a single integer \(n\) provided via standard input.
outputFormat
Output True
if the given number is an Armstrong number, and False
otherwise. The output should be printed to standard output.
153
True