ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Tom and Jerry | Techgig | Passed all test cases

Автор: codeflu

Загружено: 2022-05-01

Просмотров: 708

Описание: Subscribe & Like
full code link - https://www.codeflu.com/post/Competit...
Github - https://github.com/code-flu

Hiring Challenge by Amazon Code Challenge - ASE (Application Support Engineer)
challenge link - https://www.techgig.com/challenge/ama...

Tom and Jerry (100 Marks)
Tom and Jerry have become enemies because of some misunderstanding and are interfering in each other's work. Tom has been assigned a construction project of N units which is important for the firm. Jerry got to know about it and took an oath to make it hard for Tom to complete the project. Tom can do C units of work in daytime so Jerry decided to destroy D units of work in the night time.


Mr. Fred got this information and needs someone to figure out the number of days Tom will take to complete the project of N units with the given scenario. Can you do it for Mr. Fred?



Note: Tom will always be able to complete the project.



Input Format
The first line of input consists of numbers of test cases, T

Next T lines each consists of three space-separated integers C, D and N.



Constraints
1 lessthan= T lessthan=100

1 lessthan= N lessthan=10000000

1 lessthan= D lessthan C lessthan=N



Output Format
For each test case, print the number of days Tom will take to complete the project in a separate line.

Sample TestCase 1
Input
2
6 2 10
4 3 10
Output

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Tom and Jerry | Techgig | Passed all test cases

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]