СºÚÓÎÏ·×îÐÂÊÖ»úÓÎÏ·ÏÂÔØÆ½Ì¨

ÊÖÓÎ×ÊѶ ×î½ü¸üРÈÈÃÅÅÅÐÐ
ÄúÏÖÔÚµÄλÖãºÊ×Ò³ > ÊÖ»úÓÎÏ· > ÒæÖÇÓÎÏ· > TheJarsII
TheJarsII
77.12%
7.57%

TheJarsII

  • ÓÎÏ·½éÉÜ
  • ÓÎÏ·½ØÍ¼
  • Ïà¹ØÏÂÔØ
º£Í⾫ƷÓÎÏ·Õý°æÊÚȨ£¬ÌåÑé°æÕýʽÉÏÏߣ¬ÖÐÎİæÕýÔÚºº»¯ÖУ¬ÈÃÎÒÃÇÒ»ÆðÆÚ´ý°É£¡TheJarsIIisasimplepuzzlegamebasedonbasicmathematicallogic.ThebarservesDraftBeer.Somecustomersdemandthatacertainexactquantityofbeerbeplacedontheirtable.Unfortunately,thebardoesnothaveapintorquartmeasuretodrawtheexactquantityfromthecask.Ithoweverhas2jarswhichholdexactly5and3pints.Thefirstexerciseistodraw4pints.Thesecondandthirdexercisesareifthecapacityofthe2jarsare7&4todrawexactly5or6pints.youmustreturnanyexcessbeertotheCaskwhendone.Logicsuggeststhatwith3operationsthiscanbedone:FILLajarfromtheCask.POURbetweenthejars.EMPTYajarintothecask.

ÓÎÏ·ÆÀÂÛ ¹Ø×¢Ð¡ºÚÓÎÏ· Óиü¶à¾ªÏ²£¡

Çë×Ô¾õ×ñÊØ»¥ÁªÍøÏà¹ØÕþ²ß·¨¹æ£¬ÆÀÂÛÄÚÈÝÖ»´ú±íÍøÓѹ۵㣬Óë±¾Õ¾Á¢³¡Î޹أ¡
ÍøÓÑÆÀÂÛ