会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wdan2016
博客园
首页
新随笔
联系
订阅
管理
2016年10月18日
把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。 习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。
摘要: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // include "stdafx.h" include include using namespace std; class Solution { public: int GetUglyNumber_Solu
阅读全文
posted @ 2016-10-18 11:22 wdan2016
阅读(4378)
评论(0)
推荐(1)
公告