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