Ugly numbers123

https://ide.codingblocks.com/s/61512
sample input case is giving correct ans but test case is not passing

Hi Aastha, just make the following changes to your code:
You were not taking the number of test cases as an input.
Also, change the data type to long long int instead of int because the answer is too huge for large inputs like 5000.
I’ve made these changes and you can refer to them here https://ide.codingblocks.com/s/61526.

thanks.! it worked…