num = int(input()) sum = 0 temp = num while temp > 0: digit = temp % 10 sum += digit ** 3 temp //= 10 if num == sum: print("是水仙花数") else: print("不是水仙花数")
123 不是水仙花数
← 第一题第三题 →