11 2017 档案
UVA-136 Ugly Numbers (map容器+优先队列)
摘要:题目链接:https://cn.vjudge.net/problem/UVA-136题意:如果一个数的因子只由2,3,5,组成,则这个数被称为丑数。按照惯例,1也被称为丑数。求第1500个丑数并·输出。这道题没有数据输入。思路:题意很简单,但一不小心就会超时。。。。。... 阅读全文
posted @ 2017-11-07 20:17 zitian246 阅读(91) 评论(0) 推荐(0)
UVA - 307 Sticks (dfs+剪枝)
摘要:George took sticks of the same length and cut them randomly until all parts became at most 50 unitslong. Now he wants to return sticks... 阅读全文
posted @ 2017-11-01 21:03 zitian246 阅读(113) 评论(0) 推荐(0)