FW: Try to resolve it.:)

0 views
Skip to first unread message

Wei...@nokia.com

unread,
Jan 6, 2006, 12:46:15 AM1/6/06
to rock...@gmail.com, funny...@googlegroups.com

>将一个正整数分解成自然数之和的形式并输出,并且顺序颠倒的不算,比如3+2和2+3是
>5的一种等价分解形式。
>
>要求,不允许使用递归法写!没意思!
>
>举例:
>
>3可以分解为 1+1+1 1+2
>
>5可以分解为
>1+1+1+1+1
>1+1+1+2
>1+2+2
>1+1+3
>1+4
>2+3
>
>
Reply all
Reply to author
Forward
0 new messages