摘要: Description Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause 阅读全文
posted @ 2016-03-06 22:59 Not-Bad 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Description Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integer 阅读全文
posted @ 2016-03-06 17:03 Not-Bad 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 丑数是指不能被2,3,5以外的其他素数整除的数,把丑数从小到大排列起来,结果如下: 1,2,3,4,5,6,8,9,10,12,15,...... 求第n个丑数 输入n 因为queue仅为FIFO结构,不能说为一个容器,无count函数,所以用set存储来计数看是否有重复元素 阅读全文
posted @ 2016-03-06 12:10 Not-Bad 阅读(307) 评论(0) 推荐(0) 编辑