Enjoy Number Technique with Tom and Jerry Fight Game
Query: Let's play a game with numbers connecting it with our childhood memories, As we have seen Tom & Jerry fight in cartoons now let's have number game based on Tom and Jerry fight. Tom is working as top architect of the company and he has given work on NumberofTask no. sites, seeing the progress of Tom, Jerry become jealous from Tom and he decided to disrupt the image of Tom. So he started to destroy the C no. buildings in nights that D no. of buildings Tom created in a day. In the end Tom gets successful in completing the project on all sites by constructing N no. of buildings per (N) sites. Now you have to calculate the minimum time that has been taken by Tom to complete the project? Constraints: 1<= NumberofTask <= 100 1<= N <= 10^5 1<= C <= D 1<=D <= N Test Cases Example Input will be given in below format: First Line: Number of Tasks assign to Tom Second Line: D(Tom C