Computer Science, asked by 1411941arjun, 15 days ago

Q1. A new Hanging Bridge is constructed in the Coimbatore city. Visitors will be able to walk 200 ft on the bridge, hanging around 50 ft above the ground, and enjoy a wide-angle view of the breathtaking greenery. There is a limit on the maximum number of people on the bridge and Rahul, the manager has to now ensure the count of people on the bridge currently should not exceed the limit. He then approximately estimated that C adults and D kids who came to the show, were on the hanging bridge. He also noticed that there are L legs of the people touching the bridge. Rahul knows that kids love to ride on the adults and they might ride on the adults, and their legs won't touch the ground and hence he would miss counting their legs. Also Rahul knew that the adults would be strong enough to ride at max two kids on their back. Rahul is now wondering whether he counted the legs properly or not. Specifically, he is wondering is there some possibility of his counting being correct. Please help Rahul in finding it. Input Format Three space separated integers C, D, L denoting number of the adults, number of the kids and number of legs of people counted by Rahul, respectively. Output Format Display Yes/No according to the situation. Sample Input 1 1 4 Sample Output Yes Sample Input 2 4 16 Sample Output No​

Answers

Answered by studylover001
15

Answer:

Answer :

A new Hanging Bridge is constructed in the Coimbatore city. Visitors will be able to walk 200 ft on the bridge, hanging around 50 ft above the ground, and enjoy a wide-angle view of the breathtaking greenery. There is a limit on the maximum number of people on the bridge and Rahul, the manager has to now ensure the count of people on the bridge currently should not exceed the limit. He then approximately estimated that C adults and D kids who came to the show, were on the hanging bridge. He also noticed that there are L legs of the people touching the bridge. Rahul knows that kids love to ride on the adults and they might ride on the adults, and their legs won't touch the ground and hence he would miss counting their legs. Also Rahul knew that the adults would be strong enough to ride at max two kids on their back. Rahul is now wondering whether he counted the legs properly or not. Specifically, he is wondering is there some possibility of his counting being correct. Please help Rahul in finding it. Input Format Three space separated integers C, D, L denoting number of the adults, number of the kids and number of legs of people counted by Rahul, respectively. Output Format Display Yes/No according to the situation. Sample Input 1 1 4 Sample Output Yes Sample Input 2 4 16 Sample Output No

Hope it helps you :)

Similar questions