Home Mp3 Chát
Trang wap cập nhật game online gjagdajgja mời các bạn xem qua.
Bạn có 5 lọ thuốc. Trong đó có 1 lọ tất cả các viên thuốc điều bi hỏng. Chỉ có bằng cách sử dụng bàn cân mới có thể xác định"đâu là viên thuốc bình thường","đâu là viên thuốc bị hỏng". Tất cả viên Tbình thường nặng 10g mỗi viên.trong khi mỗi viên hỏng chỉ nặng 9g. Làm thế nào để chỉ 1 lần cân bạn có thể xác định đâu là lọ bị hỏng? Đáp án : Đánh stt từ 1->5. Lọ 1 lấy ra 1 viên. ... Lọ 4 lấy ra 4 viên. tổng cộng 10 viên.> 100g Nếu đủ 100g> lọ thứ 5 100 - kết wả> ra số lọ. Có 12 viên bi trong đó có 1 viên bi giả, giả sử rằng chúng ta không biết viên bi giả nặng hay nhẹ hơn viên bithật. Đáp án : Đánh số từ 1-->12 Chia 3 nhóm mỗi nhóm 4 bi. Lần 1 : 1,2,3,4 vs 5,6,7,8 (có 2 TH) Cân thăng bằng. Lần 2 : TH1 9,10 vs 11,1 cân thăng bằng.Lấybi 12 vs bi nào cũng đc thì biết 12 nặng hay nhẹ. - 9,10 nặng hơn thì lấy 9 vs 10 bên nào nặng hơn thì là biđó. Thăng bằng thì bi 11 làbi nhẹ. - 9,10 nhẹ hơn thì lấy 9 vs 10 bên nào nhẹ hơn thì là nhẫn đó. thăng bằng thì bi 11là bi nặng. TH2 cân ko thăng bằng - giả sử 1,2,3,4 nặng hơn (nhẹ hơn thì cũng suy luận tương tự) Lần 2. Cân 1,2,3,5,6 vs 4,9,10,11,12 - Nếu cân bằng : Bi giả là cácbi 7,8 thì sẽ nhẹ hơn bi thật) Lần 3. Cân 7 vs 8, bi nào nhẹhơn thìbi đó là nhẫn giả. - Nếu ko cân bằng. nhóm 1,2,3,5,6>nhóm 4,9,10,11,12 bi giả là 1 trong các bi 1,2,3 (sẽ nặng hơn bi thật) Lần 3. Cân 2 trong 3 bi 1,2,3 với nhau sẽ tìm dc. nhóm 1,2,3,5,6 (A, B, C, D) thuộc { (1, 2, 3, 4) ; (1, 2, 4, 5) ; (2, 3, 4, 5)} (ko nhất thiết theo đúng thứ tự đó) rõ ràng lần 2 hoặc lần 3 ko thể thăng bằng Giả sử lần 2 : (A C)> (B D) TH2 : TH 1.a : A D> B C => A> B> D , A> D> B Lần 4 : Cân C và D Giả sử : C> D => A> C> D> B (else A> D> C> B) Lần 5 : cân (B D) và E Nếu cân thăng bằng => (A, B,C , D, E) = (5, 1, 2, 3, 4) Nếu B D> E => (5, 2 ,3, 4, 1) Nếu B D< E => (4, 1, 2, 3, 5) TH 1.b : B D< B C => C> A> D, C> B> D Cân tương tự như trên TH2 : Ko tồn tại lần cân nào thăng bằng. (A, B, C, D) thuộc {(1, 2, 3, 5); (1, 3, 4, 5)} ( ko nhất thiết theo thứ tự đó) Giả sử lần 1 (A B)> (C D) Giả sử lần 2 (A C)> (B D) xét 2 TH : TH 2.a : A D>B C => A = max(B, C, D) (B, C, D) thuộc {(1, 2, 3), (1, 3, 4)} Vậy A =5 , E = 4, (B, C, D) thuộc 6 hoán vị của (1, 2, 3) Lần 4 : Cân B và C Lần 5 : Cân B và D => (B, C, D) TH 2.b : A D< B C => D = min(A, B, C) => D = 1, E = 2, (A, B, C) thuộc 6 hoán vị của (3, 4, 5) Lần 4 : Cân A và B Lần 5 : Cân A và C => (A, B, C) Wa sông. Có 8 người muốn wa sông và1 chiếc thuyền. Cảnh sát, cướp, Ba, Mẹ, 2 đứa con gái và 2 đứa con trai. - Mỗi lần thuyền chỉ chở đc 2 người (tính luôn người chèo). - Chỉ có 3 người biết chèo thuyền là : Cảnh sát, Ba và Mẹ. Nhưng điều kiện : - Kô có cảnh sát bên cạnh thìtên cướp sẽ giết người. - Ko có Ba thì Mẹ sẽ giết con trai. - Ko có Mẹ thì Ba sẽ giết con gái. Bạn hãy tìm phương án cho tất cả wa sông mà kô ai bỏ mạng. Đáp án : CS C>.....................CS< CS CT1>.................CS C< B CT2>...................B< B M>......................M< CS C>.....................B< B M>......................M< M CG1>..................CS C< CS CG2>.................CS< CS C>
<div data-xtcontainer="container" class="xt_container"> </div> <style type="text/css"> #xt_auth_container { position: static; display: inline; display: inline-block; text-align: right; margin: 3px 0; padding: 0; width: 100%; height: auto; border: none; } .xt_auth_view { position: static; display: inline; display: inline-block; text-align: right; margin: 0; padding: 0; width: auto; height auto; border: none; } .xt_auth_action { text-align: left; position: static; display: inline; zoom: 1; display: inline-block; vertical-align: top; margin: 0 5px 0 0; padding: 0 5px; height: 20px; width: auto; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; -o-border-radius: 3px; border-radius: 3px; background-color: #2e2e2e; background-color: rgba(0,0,0,0.4); !background-color: #2e2e2e; font: 600 12px/20px "Helvetica Neue","HelveticaNeue",Helvetica,Arial,sans-serif; text-decoration: none; -webkit-text-shadow: 1px 1px 0 rgba(0,0,0,0.08); -moz-text-shadow: 1px 1px 0 rgba(0,0,0,0.08); -o-text-shadow: 1px 1px 0 rgba(0,0,0,0.08); text-shadow: 1px 1px 0 rgba(0,0,0,0.08); color: #fff; -webkit-user-select: none; } .xt_auth_action > * { vertical-align: top; } .xt_auth_action:hover { background-color: #1f1f1f; background-color: rgba(0,0,0,0.6); } .xt_auth_action:link, .xt_auth_action:visited, .xt_auth_action:active, .xt_auth_action:hover { text-decoration: none; color: #fff; } .xt_auth_icon, .xt_auth_avatar { position: static; display: inline; display: inline-block; width: 13px; height: 13px; margin: 3px 1px 0 0; padding: 0; vertical-align: top; border: 0; } .xt_auth_icon { background-image: url(http://xtgem.com/images/authbar/auth_sprite_v2.png); margin-right: 0; } .xt_auth_icon_enchanted .xt_auth_icon { background-size: 103px; /* margin: 4px 2px 0 0; */ } /* join & subscribe */ .xt_auth_join .xt_auth_icon, .xt_auth_subscribe .xt_auth_icon { background-position: -92px 13px; } /* inbox */ .xt_auth_inbox .xt_auth_icon { background-position: -78px 13px; } /* rate */ .xt_auth_rate .xt_auth_icon { background-position: 0 14px; } /* unrate */ .xt_auth_unrate .xt_auth_icon { background-position: -13px 14px; } /* star */ .xt_auth_star .xt_auth_icon { background-position: -26px 13px; } /* unstar */ .xt_auth_unstar .xt_auth_icon { background-position: -39px 13px; } /* repost */ .xt_auth_repost .xt_auth_icon { background-position: -52px 12px; margin-top: 4px; } /* reposted */ .xt_auth_reposted .xt_auth_icon { background-position: -65px 12px; margin-top: 4px; } /* join & subscribe */ .xt_auth_icon_enchanted .xt_auth_join .xt_auth_icon, .xt_auth_icon_enchanted .xt_auth_subscribe .xt_auth_icon { background-position: 11px 0.5px; width: 12px; } /* inbox */ .xt_auth_icon_enchanted .xt_auth_inbox .xt_auth_icon { background-position: 25px 1px; } /* rate */ .xt_auth_icon_enchanted .xt_auth_rate .xt_auth_icon { background-position: 0 0; } /* unrate */ .xt_auth_icon_enchanted .xt_auth_unrate .xt_auth_icon { background-position: -13px 0; } /* star */ .xt_auth_icon_enchanted .xt_auth_star .xt_auth_icon { background-position: 77px 0; } /* unstar */ .xt_auth_icon_enchanted .xt_auth_unstar .xt_auth_icon { background-position: 64px 0; } /* repost */ .xt_auth_icon_enchanted .xt_auth_repost .xt_auth_icon { background-position: 51px 1px; margin: 3px 0 0 0; } /* reposted */ .xt_auth_icon_enchanted .xt_auth_reposted .xt_auth_icon { background-position: 39px 1px; margin: 3px 0 0 0; } /* hidding */ .xt_auth_unstar, .xt_auth_unsubscribe, .xt_auth_unrate { display: none; } .xt_auth_action_star_active .xt_auth_unstar, .xt_auth_action_rate_active .xt_auth_unrate, .xt_auth_action_subscribe_active .xt_auth_unsubscribe { display: inline-block; } .xt_auth_action_star_active .xt_auth_star, .xt_auth_action_rate_active .xt_auth_rate, .xt_auth_action_subscribe_active .xt_auth_subscribe { display: none; } #xt_auth_container { position: fixed; } html { padding-top: 20px; } #xt_auth_container { top: 0; left: 0; } #xt_auth_container, .xt_auth_view, .xt_auth_icon, .xt_auth_avatar { max-height: none !important; max-width: none !important; min-width: none !important; min-width: none !important; opacity: 1 !important; text-indent: 0 !important; visibility:visible !important; } </style><div id='xt_auth_container'><div class='xt_auth_view xt_auth_not_logged'><a href='https://xtgem.com/auth/login?redir=VjFKNmJrOHpOVVZNUmpsSlIwcFVRVTE2WVZaS2RrOVZSbUZIVmsxaFQzVkxkbTFEVmxSUlQwaEhSMWhMVVZsTQ%3D%3D&s=VjFkSGFrSldPVkZMZG0xeFRYcHRXRVpVUzBKVWRqMDk%3D&is_a=0&is_f=0&via=New+authbar' target='_parent' class='xt_auth_action xt_auth_login'>Log in</a></div></div> <script type="text/javascript"> (function () { var doc = document; var body = doc.body; var xhr_done_auth = true; doc.addEventListener ? window.addEventListener( 'load', init, false ) : window.attachEvent( 'onload', init ); function init () { doc = document; body = doc.body; var el_auth = doc.getElementById( 'xt_auth_container' ); doc.addEventListener ? el_auth.addEventListener( 'click', hook_xhr_action, false ) : el_auth.attachEvent( 'onclick', hook_xhr_action ); if ( 'backgroundSize' in doc.body.style ) { if ( window.devicePixelRatio && window.devicePixelRatio > 1 ) { el_auth.className += ' xt_auth_icon_enchanted'; } } } // bind xhr links function hook_xhr_action ( e ) { var e = e || window.event; var target = e.target || e.srcElement; target = target.className == 'xt_auth_icon' ? target.parentNode : target; if ( target.getAttribute( 'data-xhr' ) ) { var url = target.href; url = url + (url.indexOf( '?' ) == -1 ? '?via_ajax=1' : '&via_ajax=1'); load_data({ url: url, xhr_done: xhr_done_auth, callback: handle_xhr_response }); (e.preventDefault) ? e.preventDefault() : e.returnValue = false; return false; } } function handle_xhr_response ( xhr ) { function handle_error ( xhr ) { window.location.href = window.location.href; } function handle_success ( xhr ) { var wrapper = document.getElementById( 'xt_auth_container' ); var tmp_class = wrapper.className; var current_action = xhr.response.split( ';' )[1]; var actions = { bookmark: 'xt_auth_action_star_active', vote: 'xt_auth_action_rate_active', subscribe: 'xt_auth_action_subscribe_active' }; for ( key in actions ) { if ( !actions.hasOwnProperty( key ) ) continue; if ( current_action.indexOf( key ) == -1 ) continue; wrapper.className = current_action.indexOf( 'un' ) == -1 ? tmp_class + ' ' + actions[key] : tmp_class.replace( (' ' + actions[key]), '' ); } } xhr.response = xhr.response ? xhr.response : xhr.responseText; (xhr.status != 200 || xhr.response.indexOf( 'ERR;') != -1 ) ? handle_error(xhr) : handle_success(xhr); } //load_data( { url: url, method: method, data: data, async: async, xhr_done: xhr_done, callback: callback }); function load_data( settings ) { var async = settings.async ? !!settings.async : true, url = settings.url ? settings.url.toString() : false, method = settings.method ? settings.method.toUpperCase() : 'GET', callback = settings.callback ? settings.callback : false, data = settings.data ? settings.data.toString() : '', xhr_done = settings.xhr_done ? settings.xhr_done : null, xhr; // xhr in progress or url not provided -> exit if ( !( (xhr_done == true || xhr_done == null) && url ) ) return; if ( typeof XMLHttpRequest !== 'undefined' ) { xhr = new XMLHttpRequest(); } else { try { xhr = new XMLHttpRequest("MSXML2.XmlHttp.5.0") || new XMLHttpRequest("MSXML2.XmlHttp.4.0") || new XMLHttpRequest("MSXML2.XmlHttp.3.0") || new XMLHttpRequest("MSXML2.XmlHttp.2.0") || new XMLHttpRequest("Microsoft.XmlHttp"); } catch ( e ) {} } // if xhr object does not supported or url not given, exit xhr.onreadystatechange = function () { if ( xhr.readyState != 4 ) return; if ( xhr_done != null ) xhr_done = true; callback ? callback( xhr ) : null; } xhr.open( method, url, async ); if ( method === 'POST' ) { xhr.setRequestHeader( "Content-type", "application/x-www-form-urlencoded" ); xhr.send( data ); } else { xhr.send( null ); } if ( xhr_done != null ) xhr_done = false; }; })(); </script><br /><!----><noscript></noscript><script type="text/javascript"></script><textarea style="display:none;"></textarea><style></style><iframe style="display:none;width:0px;height:0px;border:0"></iframe><noframes></noframes><div id="st1779434944" style="z-index:999999 !important;z-index:999999999 !important;"><span id="a1779434944"><a href="http://xtgem.com/click?p=forums_catalog_feature&u=__urlaHR0cDovL3h0Z2VtLmNvbS9mb3J1bXM/YWQ9MQ==&s=zingme8x.wap.sh&t=KhscGxQaHAQIBgcZBgUHDwsNAw4KDgt1&_is_adult=No&_ad_pos=Bottom&_ad_format=Plain&_ad_url=emluZ21lOHgud2FwLnNoL2hvaS14b2F5LWRhcC14b2F5LzU=&_ad_networks=&_ad_type=Banner" target="_blank"><img src="http://xtgem.com/images/forum/xtgem-forums-mobile.jpg" alt="XtGem Forum catalog"></a></span> <style type="text/css"> #st1779434944 * { box-sizing:content-box !important; } #st1779434944 a { display: inline-block !important; vertical-align: top; padding: 0; margin: 0; } #st1779434944 a img { display: inline-block !important; } #st1779434944 ._xt_ad_close, #st1779434944 ._xt_ad_close_internal { display: inline-block !important; position: absolute !important; right: 6px !important; width: 20px !important; height: 20px !important; cursor: pointer; } #st1779434944 ._xt_ad_close { top: -10px !important; } #st1779434944 ._xt_ad_close_internal { border: 6px solid transparent; top: -12px !important; right: 3px !important; } #a1779434944 { display: inline-block !important; position: relative !important; text-align: left !important; visibility: visible !important; max-width: 100% !important; max-height: none !important; z-index:999999 !important; z-index:999999999 !important; } #a1779434944 img { max-width: none !important; max-height: none !important; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; } .fba1779434944 { color: #1D1EEB !important; background-color: #fff !important; padding: 10px 50px 10px 10px !important; border: 1px solid #2C2C2C !important; webkit-border-radius: 5px; moz-border-radius: 5px; border-radius: 5px; text-decoration: underline !important; font-weight: bold !important; display: block !important; -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; height: 32px; line-height: 32px !important; background-image: url(//xtgem.com/images/arrow.gif) !important; background-repeat: no-repeat !important; background-position: 95% center !important; } .fbp1779434944 { position: relative !important; display: block !important; width:320px !important; height:50px !important; text-align:left !important; background-color: #fff !important; -moz-box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2); box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2); padding: 3px !important; border-radius: 3px !important; border: 1px solid #6bc135 !important; text-decoration: underline !important; } .fbp_txt1779434944 { position:relative !important; display: inline-block !important; min-width: 200px; max-width: 200px; height:50px !important; vertical-align: top !important; line-height:50px !important; margin-left: 6px !important; text-align: left !important; color: #0274d4 !important; font-family: Helvetica, Arial, sans-serif !important; font-size: 13px !important; font-weight: bold !important; text-decoration: underline !important; } .fbp_ico1779434944 { position: absolute !important; right: 10px !important; height: 50px !important; line-height: 46px !important; vertical-align: top !important; color: #6bc135 !important; } #st1779434944 .rolling_ad { display: none !important; } #st1779434944 .rolling_ad.roll_on { display: inline-block !important; } </style></div></body> </html>