Professional Documents
Culture Documents
Ugly Numbers
(Input File: practice.txt)
Input
The input file is made of R test cases. The input file starts with an integer R with specifies the
number of test cases. Following the integer R there are R lines, each containing an integer N.
Output
For each test case your program should print the N’th ugly number.
Sample Input
3
4
11
100
Sample Output
4
11
135