Daily C++ Olympiad Problem

Determine whether a number is a Narcissistic number (a Narcissistic number is a three-digit number whose digits’ cubes sum up to the number itself).

Input format: A single line containing an integer

Output format: If it is a Narcissistic number, outputYes, otherwise output No

Input example #1153

Output example #1:Yes

A video explanation of the problem has been published on the official Douyin account, welcome to watch.Zhongying STEAM Maker Programming Center Official AccountDouyin Account: 72967164578

Leave a Comment