A. 水仙花

    Type: Default 1000ms 128MiB

水仙花

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

问题描述

判断给定的三位数是否水仙花数。

所谓水仙花数是指其值等于它本身每位数字立方和的数。

例153就是一个水仙花数。

153=1^3+5^3+3^3。

输入格式

一个整数。

输出格式

是水仙花数,输出"YES" ,否则输出"NO" (不包括引号)

样例输入

123

样例输出

NO

数据规模和约定

一个三位的整数,否则输出"NO"

scp-j模拟赛2023.4

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2023-4-8 18:00
End at
2023-4-8 20:30
Duration
2.5 hour(s)
Host
Partic.
3