Чертей рисую (flaass) wrote in ru_math,
Чертей рисую
flaass
ru_math

Gnomy i ljudoed

Pro ljudoeda i gnomov v kolpakax (ili pro shaxa i mudrecov) zadach mnogo, odna nedavno probezhala v ru_math. A vot eshhe variant, po formulirovke - proshhe, po resheniju - slozhnee.

Belosnezhka pojmala 7 gnomov, na kazhdogo nadela chernuju ili beluju shapochku. Kazhdyj gnom vidit shapochki vsex ostal'nyx. Po komande "NNNUUU?!!!"
kazhdyj gnom mozhet libo promolchat', libo nazvat' cvet svoej shapochki. Esli kto-to iz ne promolchavshix oshibetsa, ili esli vse promolchat - vsex v shaxtu. Inache vsex otpuskajut.

Kak oni dolzhny sgovorit'sa pered etoj proceduroj, chtoby s naibol'shej verojatnostju izbezhat' shaxty?

Reshenie polozhu k sebe domoj, cherez nekotoroe vremja.

Podskazka: verojatnoist' zametno bol'she 1/2.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 9 comments