Q: You have 10 bottles of candies. Each bottle contains candies of equal weight, except…
- User
Q: You have 10 bottles of candies. Each bottle contains candies of equal weight, except for one which has candies that are heavier.You can use a weighing scale only once. How do you find the heavy bottle?
Assistant
A classic problem!
Here's the solution:
- Number the bottles from 1 to 10.
- Take 1 candy from bottle 1, 2 candies from bottle 2, 3 candies from bottle 3, and so on, up to 10 candies from bottle 10.
- Put all these candies on the weighing scale together.
- The total weight of the candies will be the sum of the weights of the candies from each bottle. Since all bottles except one have candies of equal weight, the total weight will be a multiple of the weight of a single candy, plus the extra weight of the heavier candies from the faulty bottle.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.