问题 5609 --计算机C13001第一次小组赛B题

5609: 计算机C13001第一次小组赛B题

时间限制: 1 Sec  内存限制: 128 MB
提交: 63  解决: 23
[提交][状态][讨论版][命题人:]

题目描述

Colorful numbers

Description

There is always something amazing. And the colorful numbers is interesting. 

When a number N(100<=N<=999) has this feature : the first number's cubic add the second number's cubic add the third number's cubic will be equal to the number N , we call the number N colorful number.

We want you to write a program that it can show us all the colorful numbers from number 100 to the number K(100<K<=999) (contains K), if there is no colorful numbers , please output : NULL.

输入

An integer K which should smaller than 1000 and bigger than 100.

输出

All colorful numbers from small to big per line like:

aaa

bbb

ccc

……

If there is no number , output "NULL" .

样例输入

110

样例输出

NULL

来源

 

[提交][状态]