Elevator Installation: Ravi wants to install an elevator at his home for domestic uses, He has everything except equal weight boxes to balance it on the either side(two weights) of the elevator. Help ravi installing the elevator with the multiple weight boxes he has by returning the final weight which can be formed by merging possible unequal weights. The only condition here is the final weight boxes should be of equal weights. Return the maximum possible final weight so that elevator can be more balanced. Sample Input: 123 Output: Explanation : Here to balance the weights the only possible

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Piease note Vour video and audi beg
enture
Time Left: 0
Question No 01
Q Q
Please comp
Elevator35
Ravi wants to install an elevator at his home for domestic
uses, He has everything except equal weight boxes to
balance it on the either side(two weights) of the elevator.
Help ravi installing the elevator with the multiple weight
boxes he has by returning the final weight which can be
formed by merging possible unequal weights. The only
condition here is the final weight boxes should
Onstallation:
will result in
Compile
100 compilation
#include
3.
int main(
4.
Int an
Int 1
int su
7.
be of equal weights. Return the maximum possible final
weight so that elevator can be more balanced.
cin
for(
sum-(s
10
11
12
Sample Input:
13
123
14
15
16
Output:
17
16
19
20
Explanation : Here to balance the weights the only possible
Transcribed Image Text:Piease note Vour video and audi beg enture Time Left: 0 Question No 01 Q Q Please comp Elevator35 Ravi wants to install an elevator at his home for domestic uses, He has everything except equal weight boxes to balance it on the either side(two weights) of the elevator. Help ravi installing the elevator with the multiple weight boxes he has by returning the final weight which can be formed by merging possible unequal weights. The only condition here is the final weight boxes should Onstallation: will result in Compile 100 compilation #include 3. int main( 4. Int an Int 1 int su 7. be of equal weights. Return the maximum possible final weight so that elevator can be more balanced. cin for( sum-(s 10 11 12 Sample Input: 13 123 14 15 16 Output: 17 16 19 20 Explanation : Here to balance the weights the only possible
Please note Your video and adi
accenture
Time
Question No; 01
Q Q
Plea
UAES Ie Jiàs vy ELU y uie ai wery WIGH Gan e
will r
formed by merging possible unequal weights. The only
condition here is the final weight boxes should
849
be of equal weights. Return the maximum possible final
weight so that elevator can be more balanced.
100 c
2021
Sample Input:
123
Output:
20
21
Explanation : Here to balance the weights the only possible
way is to merge the weights 1 and 2, such that we can form
13
two final
weight boxes of 3.
Transcribed Image Text:Please note Your video and adi accenture Time Question No; 01 Q Q Plea UAES Ie Jiàs vy ELU y uie ai wery WIGH Gan e will r formed by merging possible unequal weights. The only condition here is the final weight boxes should 849 be of equal weights. Return the maximum possible final weight so that elevator can be more balanced. 100 c 2021 Sample Input: 123 Output: 20 21 Explanation : Here to balance the weights the only possible way is to merge the weights 1 and 2, such that we can form 13 two final weight boxes of 3.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY