×

Help in Codeforces #446 A

 0 Can anyone help me in understanding this problem Greed. It sounds simple but I don't seem to get the logic. Also the editorials don't have much asked 18 Nov '17, 13:59 0★montycs 105●7 accept rate: 0%

 1 Hi, Let me rephrase the question. You are given n cans, initial amount of cola present in it and also the capacity of each can. We are asked that whether any 2 cans can put all cola in it? So, we should pick the maximum and second maximum capacity cans, and check whether max1+max2 is greater than equal to all cola. Feel free to ask any questions. answered 18 Nov '17, 14:54 111●1●6 accept rate: 11%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×682

question asked: 18 Nov '17, 13:59

question was seen: 225 times

last updated: 18 Nov '17, 14:54