Ò»µÀÖÇÁ¦Ì⣬»ººÍÒ»ÏÂÞÏÞεÄÆø·Õ£¬Ï£Íû°ßÖñÖö¥£¡ÓÐ100¸öÎÞÆÚͽÐÌÇôͽ£¬±»¹ØÔÚ100¸ö¶ÀÁ¢µÄС·¿¼ä£¬»¥ÏàÎÞ·¨Í¨ÐÅ¡£
ÿÌì»áÓÐÒ»¸öÇôͽ±»Ëæ»úµØ³é³öÀ´·Å·ç£¬Ëæ»ú¾ÍÊÇ˵¿ÉÄܱ»³éµ½¶à´Î£¬Ò²¿ÉÄÜÒ»´Î³é²»µ½¡£
·Å·çµÄµØ·½ÓÐÒ»ÕµµÆ£¬Çôͽ¿ÉÒÔ´ò¿ª»òÕß¹ØÉÏ£¬³ýÇôͽÍ⣬ûÓбðÈË»áÈ¥¶¯Õâ¸öµÆ¡£
ÿ¸öÈ˳ý·Ç³öÀ´·À·ç£¬ÊÇ¿´²»µ½Õâ¸öµÆµÄ¡£
Ò»Ì죬ȫÌåÇôͽ´ó»á£¬¹úÍõ´óÉ⣬¸ø´ó¼ÒÒ»¸ö»ú»á£º
Èç¹ûijһÌ죬ij¸öÇôͽÄܹ»Ã÷È·±íʾ£¬ËùÓеÄÇôͽ¶¼ÒѾ±»·Å¹ý·çÁË£¬¶øÇÒµÄÈ·Èç´Ë£¬ÄÇôËùÓÐÇôͽÊÍ·Å£»Èç¹ûÈÔÓÐÇôͽδ±»·Å¹ý·ç£¬ÄÇôËùÓеÄÇôͽһÆð´¦ËÀ£¡
Çôͽ´ó»áºó¸ø´ó¼Ò20·ÖÖÓʱ¼äÌÖÂÛ£¬ÇôͽÃÇÄÜÕÒµ½·½·¨Ã´£¿
³ýÁËÄǸöµÆÒÔÍ⣬ÇôͽÃDz»ÄÜÒÔÆäËû·½Ê½ÁªÏµ
[ (3-25 1:26, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]1Â¥
ÎÒ²»ÖªµÀ´ð°¸£¬Ï£ÍûÆäËû²»ÖªµÀµÄÈËÒ²°ï涥£¡Ï£ÍûÓÐÈ˸ø³öºÏÀíµÄ´ð°¸£¡[ (3-25 1:38, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]2Â¥
Let me have a try...´ÓijһÌ쿪ʼ£¬ÉèÒ»¸öÇôͽAµ±¹Û²ìÕß¡£µ±ÆäËûÇôͽ·Å·çʱ£¬Ö»¿ÉÒÔ´ò¿ªÒ»´ÎµÆ£¬Ö»ÓÐA¿ÉÒԹصƣ¬¹ØÁËÒԺ󣬵ڶþ¸ö·À·çµÄ²Å¿ÉÒÔ¿ªµÆ...µ½99ʱ£¬¾ÍÈ«¶¼·Å¹ý·çÁË[animal (3-25 1:40, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]3Â¥
(ÒýÓà animal:Let me have a try...´ÓijһÌ쿪ʼ£¬ÉèÒ»¸öÇôͽAµ±¹Û²ìÕß¡£µ±ÆäËûÇôͽ·Å·çʱ£¬Ö»¿ÉÒÔ´ò¿ªÒ»´ÎµÆ£¬Ö»ÓÐA¿ÉÒԹصƣ¬¹ØÁËÒԺ󣬵ڶþ¸ö·À·çµÄ...)ÏÈÓÃÊýѧ·½·¨ËãÁËһϣ¬¹À¼Æµ½ÄǸöÈ˹صÚ100´ÎµÄʱºò£¬»ù±¾ÊÇûÈË»î×ÅÁË¡£¡£¡£[Òì¹úÇéÌì (3-25 2:20, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]4Â¥
(ÒýÓà Òì¹úÇéÌì:ÏÈÓÃÊýѧ·½·¨ËãÁËһϣ¬¹À¼Æµ½ÄǸöÈ˹صÚ100´ÎµÄʱºò£¬»ù±¾ÊÇûÈË»î×ÅÁË¡£¡£¡£)¸Ä³ÉÒ»¿ªÒ»¹ØÄÇ?[skysun (3-25 2:22, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]5Â¥
ÖÇÁ¦Ì⻹ÊÇÄÔ¾«¼±×ªÍ䣿һÌ죬ȫÌåÇôͽ´ó»á
Çôͽ´ó»áºó¸ø´ó¼Ò20·ÖÖÓʱ¼äÌÖÂÛ
˵Ã÷Çô·¸¿ÉÒÔÀûÓÃÕâ¸ö20·ÖÖÓÌÖÂÛ£¬Õâ¸öûÓÐÈ˻ỳÒÉ°É£¿·ñÔòÕâ¸öÌâĿҲûÒâÒåÁË¡£
¶øÇÒÌâĿҲûÓÐ˵Ã÷·À·çÊÇ´Ó¿ª´ó»áÒÔºó¿ªÊ¼¼ÆËãµÄ¡£
ÄÇô¼ÙÉè·À·ç²»ÊÇ´Ó¿ª»áÒÔºóËãÆðµÄ£º
ËùÒÔ¿ª´ó»áµÄʱºò¾ÍÄÜÕÒ³öÀ´ËûÓзŹý·ç¡£µ±È»Èç¹ûÈ«¶¼·Å¹ý·çµÄ£¬ÄÇôËûÃǵ±³¡ÊÍ·Å¡£Èç¹û»¹ÓÐÈËûÓзŹý·ç£¬ÄÇô¾Í°ÑµÆÅÝ´òËé(Ë˵µÆÅÝÒ»¶¨Òª·¢¹â:p)£¬ÕâЩûÓзŹý·çµÄÈËÿ´ÎÈ¥¹ý²»¹Ü¶àÉٴΣ¬Ö»ÄÜÔÚµØÉÏijһ¸öÊÂÏÈÉÌÁ¿ºÃµÄµØ·½·ÅÒ»¿éËéƬ¡£µ½Ê±ºò²»¹ÜËÖ»Òª¿´µ½µØÉϵÄËéƬºÍ¿ª»áʱºòͳ¼Æ³öÀ´µÄûÓзŹý·çµÄÈËÊýÒ»Ñù£¬¾Í¿ªÊ¼ÏòÉϼ¶Áìµ¼»ã±¨À²¡£
Èç¹û¼ÙÉè·À·çÊÇ´Ó¿ª´ó»áÒÔºó¼ÆËãµÄ
ÄÇôÉÏÃæµÄ·½·¨ÈÔÈ»Êʺϣ¬Ö»²»¹ýÒª°ÑµÆÅÝŪ³É100¿éËéƬ¡£
Èç¹ûÓеÄÈËҪ˵£¬°ÑµÆÅÝŪËéÁ˾ÍûÓйâÁË¿´²»µ½ËéƬ£¬ÄÇôÈç¹û°Ñ·¸È˹ØÔÚÒ»¸öÉìÊÖ²»¼ûÎåÖ¸µÄ²»Íµ¹âµÄ·¿¼äÀïÃ棬ÄÇ»¹½Ð¡°·À·ç¡±Âð£¿[|^_^| (3-25 6:48, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]6Â¥
(ÒýÓà |^_^|:ÖÇÁ¦Ì⻹ÊÇÄÔ¾«¼±×ªÍ䣿һÌ죬ȫÌåÇôͽ´ó»á Çôͽ´ó»áºó¸ø´ó¼Ò20·ÖÖÓʱ¼äÌÖÂÛ ËµÃ÷Çô·¸¿ÉÒÔÀûÓÃÕâ¸ö20·ÖÖÓÌÖÂÛ£¬Õâ¸öûÓÐÈ˻ỳÒÉ°É£¿·ñÔ...)Ö»ÄÜ˵ÄãµÄÏë·¨ºÜ±ä̬£¬ºÇºÇ~~~[ (3-25 13:59, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]7Â¥
Çô·¸ÓÐЬÂð?Ò»ÈËÍÑÒ»Ö»·ÅÔÚÄÇÀï²»¾Í¿ÉÒÔÁ˺ǺÇ
ÓÐ100Ö»µÄʱºò¾Í³É¹¦Á˵Ĺþ[ (3-25 14:14, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]8Â¥
ºÇºÇ¡¡Õâ¸öÎÊÌâѽһ´ÎÎÒÃÇresearch meeting ʱ£¬ÀÏ°åÄÃÕâµÀÌâÀ´¸øÎÒÃÇÌÖÂÛ£¬½á¹ûÒ»×éÈËÌÖÂÛÁË2¸öСʱ²ÅÕÒµ½½â¾ö°ì·¨µÄ³ûÐΣ¬Ö»ÊdzûÐΣ¨Ò²¾ÍÊÇÊýѧģÐÍ£©¶øÒÑ¡£
ÎÒÃÇgroupÊÇרßãalgorithmµÄ¡¡
´ð°¸ºÜ¸´ÔÓ£¬ÓпնùÔÙÌù°É£¡[Ó¹ÈË (3-25 15:31, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]9Â¥
(ÒýÓà ӹÈË:ºÇºÇ¡¡Õâ¸öÎÊÌâѽһ´ÎÎÒÃÇresearch meeting ʱ£¬ÀÏ°åÄÃÕâµÀÌâÀ´¸øÎÒÃÇÌÖÂÛ£¬½á¹ûÒ»×éÈËÌÖÂÛÁË2¸öСʱ²ÅÕÒµ½½â¾ö°ì·¨µÄ³ûÐΣ¬Ö»ÊdzûÐΣ¨...)µÈһϣ¬ÄãµÄÎÊÌâºÃÏñÓÐÎÊÌâÎҼǵÃÄǸöÎÊÌâ½Ð¡°23·¸ÈË¡±ÎÊÌ⣨ÆäʵֻҪ´óÓÚ2¸ö·¸ÈË£¬½â¾ö°ì·¨¾ÍÒ»Ñù£©¡£ÊÇ˵һ¸ö·¿¼äÀïÃæÓÐÁ½¸öswitch A ºÍ B£¬·¸È˽øÈ¥Ö®ºó±ØÐë¸Ä±äÆäÖÐÒ»¸öswitchµÄstatus£¨on->off»òÕßoff->on£©£¬²»¿ÉÒÔ²»×öÈκÎÊÂÇ飬Ҳ²»¿ÉÒԸıäÁ½¸ö¡£È»ºó·¸ÈËÖ®¼äûÓÐÈκÎÆäËûÁªÏµ·½·¨£¬²»ÖªµÀ½ñÌì˽øÈ¥ÁË£¬Ê²Ã´·ÅЬ֮ÀàµÄ¶¼²»¿ÉÒÔ¡£ÔõÑù²ÅÄÜÈ·¶¨ËùÓÐ23¸öÈ˶¼Ôø¾À´¹ýÕâ¸ö·¿¼ä¡£
Ò»¸öswitchÊǿ϶¨²»¿ÉÒԵģ¬ÎÒÃÇÖ¤Ã÷¹ýÁË£¡[Ó¹ÈË (3-25 15:41, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]10Â¥
(ÒýÓà animal:Let me have a try...´ÓijһÌ쿪ʼ£¬ÉèÒ»¸öÇôͽAµ±¹Û²ìÕß¡£µ±ÆäËûÇôͽ·Å·çʱ£¬Ö»¿ÉÒÔ´ò¿ªÒ»´ÎµÆ£¬Ö»ÓÐA¿ÉÒԹصƣ¬¹ØÁËÒԺ󣬵ڶþ¸ö·À·çµÄ...)ÄãµÄ×ö·¨Ö»ÊÊÓÃÓÚÁ½¸ö·¸ÈË£¬ÔÒò×Ô¼ºÏëÏë¡¡[Ó¹ÈË (3-25 15:41, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]11Â¥
(ÒýÓà ӹÈË:µÈһϣ¬ÄãµÄÎÊÌâºÃÏñÓÐÎÊÌâÎҼǵÃÄǸöÎÊÌâ½Ð¡°23·¸ÈË¡±ÎÊÌ⣨ÆäʵֻҪ´óÓÚ2¸ö·¸ÈË£¬½â¾ö°ì·¨¾ÍÒ»Ñù£©¡£ÊÇ˵һ¸ö·¿¼äÀïÃæÓÐÁ½¸öswitch A ...)Ò»¸öΪʲô²»¿ÉÒÔ£¿£¿Ö»²»¹ýʱ¼ä¾ÃÒ»µã¶øÒÑ¡£¡£¡£
[Öí×Ó½´*è (3-25 15:55, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]12Â¥
(ÒýÓà Öí×Ó½´*è:Ò»¸öΪʲô²»¿ÉÒÔ£¿£¿Ö»²»¹ýʱ¼ä¾ÃÒ»µã¶øÒÑ¡£¡£¡£
)some ambiguous in the original problemaccording to Ò»µ¶n¶Ï's orginal question, he didn't say that how many choices can the poison has?
My understanding is they can choose switch the light status once (either on->off or off->one) or don't touch it. If that is, then there is no difference between his question and mine.
However, if the king specified that one poison must switch the light once, cannot do nothing. Then that's imposible.[Ó¹ÈË (3-25 16:10, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]13Â¥
(ÒýÓà ӹÈË:some ambiguous in the original problemaccording to Ò»µ¶n¶Ï's orginal question, he didn't say that how many choices can the poiso...)·¸ÈË¿ÉÒÔÑ¡Ôñ²»¶¯¿ª¹Ø£¡[ (3-25 17:25, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]14Â¥
ÎÒÌÖÑáÕâ¸öÎÊÌâ¡£ÔÙ¼ÓÉÏûÈËÄÜ˵³ö´ð°¸£¬ÎÒ¸üÌÖÑᣡ[ÎÒ²»ÊÇÄãµÄÅ®ÈË (3-25 22:03, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]15Â¥