poj1338专题

poj1338--poj2545--poj2591--打表

http://poj.org/problem?id=1338 http://poj.org/problem?id=2545 http://poj.org/problem?id=2591 三道水题~~~~题目链接在上: 题意很容易理解,解法需要想一想, 即通过维护三个队列,来产生一个带有ans到数组。 以下是代码: poj1338: #include <cst

UVA 136 POJ1338 Ugly Numbers

题目链接:POJ UVA 题目大意: Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, … shows the first 10 ugly numbers. By convention, 1 is included. 把