[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 266

 
if( Шар1=="Ч")//Если первый шар Ч
   {
      if( Шар2=="Ч")//Если второй шар Ч
      {
         if( КорШар3=="ЧЧ")//Если на коробке третьего шара ЧЧ
         {
            КорЧЧ="2 белых шара";//В коробке ЧЧ лежит 2 белых шара
            КорЧБ="2 черных шара";//В коробке ЧБ лежит 2 черных шара
            КорББ="1 черный 1 белый 1";//В коробке ББ лежит 1Ч+1Б
         }
         else //Если на коробке третьего шара ЧБ
         {
            КорЧБ="2 белых шара";//В коробке ЧБ лежит 2 белых шара
            КорББ="2 черных шара";//В коробке ББ лежит 2 черных шара
            КорЧЧ="1 черный 1 белый 1";//В коробке ЧЧ лежит 1Ч+1Б
         }
      }
   }
......................
И. Т. Д..........
does that answer count? :-)
 

The correct answer is 1. Why ?

 
Mathemat >>:

Mischek, всю малину испортил. Так хотелось полюбоваться, как народ мучается... Эхх...


deleted

The handyman must have read it and the rest of us are asleep.)

 

No, I didn't have time (

 
xeon >>:
такой ответ засчитывается? :-)

Actually, it doesn't count for ordinary people. But for you, Igor, as an exception, you will still find a way to optimise it somehow.

 
And in fact the conditions allow you to pull all the balls "one at a time"
 

What do you mean?

The answer is unequivocal: it's enough to take one ball out, one time. You just have to know from which box.

 

Чтобы узнать, какие шары лежат в каждой из трех коробок, разрешается вынимать по одному шару из коробки и, не заглядывая внутрь, возвращать его обратно. Какое минимальное число шаров нужно вынуть, чтобы с уверенностью определить содержимое всех коробок?

That way they can all be re-excavated )


 

But the question is to find the minimum that is sufficient to solve the problem.

 
At any time since the beginning of the experiment, minimum =1 ))) Since more prohibits the condition