The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Â
Delta is the Coding Club of NIT Trichy. Recently they planned to go for a trip. Two girls Aarti and Bhavya got stuck while packing. Aarti had a bag of weight holding capacity w1 and bhavya had a bag of weight holding capacity of w2 .They had n1 objects with weight 1 unit each and n2 objects with weight 2 units each.
Your task is simple. Help them find the maximum weight of objects that can fit in these 2 bags.
Â
Â
Input description.
Â
Â
Â
Output description.
Â
Â
Â
Â
Input: 2 2 2 1 1 3 2 3 2 Output: 3 5
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll