{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2025-12-14T01:33:56.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2025-12-14T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":1902,"title":"GJam 2014 China Rd A: Read Phone Number (Large)","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number\u003e. Large Case.\r\n\r\nThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u003e 10 repeats occurs in the Large Data set.\r\n\r\n\r\n*Input:* [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\r\n\r\n*Output:* Text, a string of the reading based upon segments\r\n\r\n*Examples:*\r\n\r\n  [Number,Segments]  [Text]\r\n    ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n    ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n    \r\n\r\n*Contest Performance:* Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard\"\u003eGJam 2014 China Read Phone Number\u003c/a\u003e. Large Case.\u003c/p\u003e\u003cp\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u003e 10 repeats occurs in the Large Data set.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Text, a string of the reading based upon segments\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[Number,Segments]  [Text]\r\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\u003c/p\u003e","function_template":"function Text = Phone_CH(str,v) %\r\n Text='';\r\nend\r\n\r\n% One method for inserting strings from a cell array\r\nfunction valuestr=Phone_number(x)\r\n valuecell={'zero' 'one' 'two' 'three' 'four' 'five' 'six' 'seven' 'eight' 'nine'};\r\n valuestr=valuecell{x+1};\r\nend\r\n\r\nfunction qtystr=Phone_qty(x)\r\n qtycell={'' 'double' 'triple' 'quadruple' 'quintuple' 'sextuple' 'septuple' 'octuple' 'nonuple' 'decuple'};\r\n qtystr=qtycell{x};\r\nend","test_suite":"%%\r\ntic\r\nzstr='0000000000';\r\nzv=[10 ];\r\nvexp='decuple zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';\r\nzv=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';\r\nzv=[1 2 3 4 5 6 7 8 9 10 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one double one triple one quadruple one quintuple one sextuple one septuple one octuple one nonuple one decuple one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6701604014038409645317871541814818042765712319652041768196456846465134589785405932716870450845696942';\r\nzv=[18 53 27 2 ];\r\nvexp='six seven zero one six zero four zero one four zero three eight four zero nine six four five three one seven eight seven one five four one eight one four eight one eight zero four two seven six five seven one two three one nine six five two zero four one seven six eight one nine six four five six eight four six four six five one three four five eight nine seven eight five four zero five nine three two seven one six eight seven zero four five zero eight four five six nine six nine four two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7948353719781965623468317824953101456187089254894578076436069073736717501261569457261541306241739435';\r\nzv=[67 24 2 7 ];\r\nvexp='seven nine four eight three five three seven one nine seven eight one nine six five six two three four six eight three one seven eight two four nine five three one zero one four five six one eight seven zero eight nine two five four eight nine four five seven eight zero seven six four three six zero six nine zero seven three seven three six seven one seven five zero one two six one five six nine four five seven two six one five four one three zero six two four one seven three nine four three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4278368013428262027948460184086902458706181428387549853031942964639495026306271567618562640383239305';\r\nzv=[99 1 ];\r\nvexp='four two seven eight three six eight zero one three four two eight two six two zero two seven nine four eight four six zero one eight four zero eight six nine zero two four five eight seven zero six one eight one four two eight three eight seven five four nine eight five three zero three one nine four two nine six four six three nine four nine five zero two six three zero six two seven one five six seven six one eight five six two six four zero three eight three two three nine three zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9464820841980697178401716583034690432403485084358767843859195212565106243810816790591659815789420929';\r\nzv=[23 54 6 3 12 2 ];\r\nvexp='nine four six four eight two zero eight four one nine eight zero six nine seven one seven eight four zero one seven one six five eight three zero three four six nine zero four three two four zero three four eight five zero eight four three five eight seven six seven eight four three eight five nine one nine five two one two five six five one zero six two four three eight one zero eight one six seven nine zero five nine one six five nine eight one five seven eight nine four two zero nine two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1239417614204605186382638961928216123515856310156537949350505058426185417564013152480630168120385902';\r\nzv=[9 20 68 3 ];\r\nvexp='one two three nine four one seven six one four two zero four six zero five one eight six three eight two six three eight nine six one nine two eight two one six one two three five one five eight five six three one zero one five six five three seven nine four nine three five zero five zero five zero five eight four two six one eight five four one seven five six four zero one three one five two four eight zero six three zero one six eight one two zero three eight five nine zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5705658716138187897089238034926826854932909071213569698472175680807126039351827987289593273256549721';\r\nzv=[23 49 6 21 1 ];\r\nvexp='five seven zero five six five eight seven one six one three eight one eight seven eight nine seven zero eight nine two three eight zero three four nine two six eight two six eight five four nine three two nine zero nine zero seven one two one three five six nine six nine eight four seven two one seven five six eight zero eight zero seven one two six zero three nine three five one eight two seven nine eight seven two eight nine five nine three two seven three two five six five four nine seven two one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5496587298081832124197901212051639570370452063174067189290683532890857290152921651676725291709858268';\r\nzv=[84 12 1 1 2 ];\r\nvexp='five four nine six five eight seven two nine eight zero eight one eight three two one two four one nine seven nine zero one two one two zero five one six three nine five seven zero three seven zero four five two zero six three one seven four zero six seven one eight nine two nine zero six eight three five three two eight nine zero eight five seven two nine zero one five two nine two one six five one six seven six seven two five two nine one seven zero nine eight five eight two six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6046727253505468724903978269465059754529308478929632170216741630304035454232162816186394257019613649';\r\nzv=[21 13 16 7 19 17 7 ];\r\nvexp='six zero four six seven two seven two five three five zero five four six eight seven two four nine zero three nine seven eight two six nine four six five zero five nine seven five four five two nine three zero eight four seven eight nine two nine six three two one seven zero two one six seven four one six three zero three zero four zero three five four five four two three two one six two eight one six one eight six three nine four two five seven zero one nine six one three six four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9709324183067148146829125827086805141425714050976780595295963087561738097976891946025083503270131874';\r\nzv=[19 40 15 25 1 ];\r\nvexp='nine seven zero nine three two four one eight three zero six seven one four eight one four six eight two nine one two five eight two seven zero eight six eight zero five one four one four two five seven one four zero five zero nine seven six seven eight zero five nine five two nine five nine six three zero eight seven five six one seven three eight zero nine seven nine seven six eight nine one nine four six zero two five zero eight three five zero three two seven zero one three one eight seven four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5935294040195821091284183159414635231362074061646489573631084519431981565623091096745285242356956132';\r\nzv=[49 2 47 2 ];\r\nvexp='five nine three five two nine four zero four zero one nine five eight two one zero nine one two eight four one eight three one five nine four one four six three five two three one three six two zero seven four zero six one six four six four eight nine five seven three six three one zero eight four five one nine four three one nine eight one five six five six two three zero nine one zero nine six seven four five two eight five two four two three five six nine five six one three two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68420979858341861054645438226544';\r\nzv=[9 14 9 ];\r\nvexp='six eight four two zero nine seven nine eight five eight three four one eight six one zero five four six four five four three eight double two six five double four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='95673537815030404160202058788558325698592015367995915420';\r\nzv=[3 12 11 12 7 10 1 ];\r\nvexp='nine five six seven three five three seven eight one five zero three zero four zero four one six zero two zero two zero five eight seven double eight double five eight three two five six nine eight five nine two zero one five three six seven double nine five nine one five four two zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2917155597708068980673145819211425430909609607407685919790633007543533613';\r\nzv=[8 4 12 5 15 4 8 12 5 ];\r\nvexp='two nine one seven one triple five nine double seven zero eight zero six eight nine eight zero six seven three one four five eight one nine two double one four two five four three zero nine zero nine six zero nine six zero seven four zero seven six eight five nine one nine seven nine zero six double three double zero seven five four three five double three six one three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7898081583437702364634490213008907725195448';\r\nzv=[10 12 6 12 2 1 ];\r\nvexp='seven eight nine eight zero eight one five eight three four three double seven zero two three six four six three four four nine zero two one three double zero eight nine zero double seven two five one nine five double four eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='437260442554900624648844197922288914270446';\r\nzv=[11 6 9 6 3 1 3 2 1 ];\r\nvexp='four three seven two six zero double four two double five four nine double zero six two four six four double eight double four one nine seven nine triple two eight eight nine one four two seven zero double four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2789225013517271635527397201226697731452904643719381232152395186872927418002375223547884014744';\r\nzv=[5 9 7 2 15 1 6 4 8 9 9 3 7 5 4 ];\r\nvexp='two seven eight nine two two five zero one three five one seven two seven one six three double five two seven three nine seven two zero one double two double six nine double seven three one four five two nine zero four six four three seven one nine three eight one two three two one five two three nine five one eight six eight seven two nine two seven four one eight double zero two three seven five double two three five four seven double eight four zero one four seven double four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='745443046641006460911871735664538092408084394952066353448004450489821840381778094629976796';\r\nzv=[9 1 15 14 15 8 14 7 3 2 1 1 ];\r\nvexp='seven four five double four three zero four six six four one double zero six four six zero nine double one eight seven one seven three five double six four five three eight zero nine two four zero eight zero eight four three nine four nine five two zero double six three five three double four eight double zero double four five zero four eight nine eight two one eight four zero three eight one seven seven eight zero nine four six two double nine seven six seven nine six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9389581629278714115270272359258386234328448241872301648883';\r\nzv=[15 3 1 13 6 5 7 5 3 ];\r\nvexp='nine three eight nine five eight one six two nine two seven eight seven one four double one five two seven zero two seven two three five nine two five eight three eight six two three four three two eight double four eight two four one eight seven two three zero one six four eight double eight three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='638110728463471172123321819781344177341197656065297520823913148755582611608';\r\nzv=[10 6 8 1 15 12 5 7 2 3 4 1 1 ];\r\nvexp='six three eight double one zero seven two eight four six three four seven double one seven two one two double three two one eight one nine seven eight one three double four one double seven three four double one nine seven six five six zero six five two nine seven five two zero eight two three nine one three one four eight seven double five five eight two six double one six zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1133185809510432';\r\nzv=[15 1 ];\r\nvexp='double one double three one eight five eight zero nine five one zero four three two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='238728670935325997878047006508522404463678112601608414215085957397966';\r\nzv=[13 8 4 13 10 15 6 ];\r\nvexp='two three eight seven two eight six seven zero nine three five three two five double nine seven eight seven eight zero four seven zero zero six five zero eight five double two four zero double four six three six seven eight double one two six zero one six zero eight four one four two one five zero eight five nine five seven three nine seven nine double six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='85658191899305236022867183837318073902283214947760248177452103132443861485891';\r\nzv=[1 10 15 8 4 6 7 15 8 1 1 1 ];\r\nvexp='eight five six five eight one nine one eight double nine three zero five two three six zero double two eight six seven one eight three eight three seven three one eight zero seven three nine zero two two eight three two one four nine four double seven six zero two four eight one double seven four five two one zero three one three two four four three eight six one four eight five eight nine one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='21770416464691789037472471701235435696232613781886745983083308143822448829';\r\nzv=[2 8 11 10 8 14 6 11 1 1 1 1 ];\r\nvexp='two one double seven zero four one six four six four six nine one seven eight nine zero three seven four seven two four seven one seven zero one two three five four three five six nine six two three two six one three seven eight one double eight six seven four five nine eight three zero eight three three zero eight one four three eight double two double four eight eight two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='983249024136170290772296855218428763965301110152249';\r\nzv=[2 15 14 15 4 1 ];\r\nvexp='nine eight three two four nine zero two four one three six one seven zero two nine zero double seven double two nine six eight double five two one eight four two eight seven six three nine six five three zero triple one zero one five double two four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3480983214378717507995103066016574662185732516268288798294927774350570';\r\nzv=[13 10 15 11 3 3 14 1 ];\r\nvexp='three four eight zero nine eight three two one four three seven eight seven one seven five zero seven double nine five one zero three zero double six zero one six five seven four double six two one eight five seven three two five one six two six eight two double eight seven nine eight two nine four nine two triple seven four three five zero five seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='839728044162856119809065784052255130156664';\r\nzv=[9 7 10 15 1 ];\r\nvexp='eight three nine seven two eight zero double four one six two eight five six one one nine eight zero nine zero six five seven eight four zero five double two double five one three zero one five triple six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1299716932675600468864013262733864936641800591739546149687053359054618';\r\nzv=[5 7 14 1 12 3 14 6 4 2 1 1 ];\r\nvexp='one two double nine seven one six nine three two six seven five six double zero four six double eight six four zero one three two six two seven double three eight six four nine three double six four one eight zero zero five nine one seven three nine five four six one four nine six eight seven zero five double three five nine zero five four six one eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7896269726657598138802619158139810768633428179202282443571484595761847181128041281628185246';\r\nzv=[2 7 8 5 6 6 11 9 5 10 12 3 7 ];\r\nvexp='seven eight nine six two six nine seven two double six five seven five nine eight one three double eight zero two six one nine one five eight one three nine eight one zero seven six eight six double three four two eight one seven nine two zero double two eight two double four three five seven one four eight four five nine five seven six one eight four seven one eight double one two eight zero four one two eight one six two eight one eight five two four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='477658486684842559974665174626263159299857463838945503033';\r\nzv=[11 11 6 14 10 2 3 ];\r\nvexp='four double seven six five eight four eight double six eight four eight four two double five double nine seven four six six five one seven four six two six two six three one five nine two double nine eight five seven four six three eight three eight nine four double five zero three zero double three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='06875538368304839162889133713';\r\nzv=[3 10 1 14 1 ];\r\nvexp='zero six eight seven double five three eight three six eight three zero four eight three nine one six two double eight nine one double three seven one three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='45256104997445504657800410480176721551263917689055037098246476060427763254223140';\r\nzv=[14 10 11 2 3 5 12 15 1 4 2 1 ];\r\nvexp='four five two five six one zero four double nine seven double four five five zero four six five seven eight double zero four one zero four eight zero one seven six seven two one double five one two six three nine one seven six eight nine zero double five zero three seven zero nine eight two four six four seven six zero six zero four two double seven six three two five four double two three one four zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6500507266637983912546668295413265536254049737120594152282943472025861287250184';\r\nzv=[3 9 4 9 13 7 7 15 10 1 1 ];\r\nvexp='six five zero zero five zero seven two triple six three seven nine eight three nine one two five four triple six eight two nine five four one three two six double five three six two five four zero four nine seven three seven one two zero five nine four one five double two eight two nine four three four seven two zero two five eight six one two eight seven two five zero one eight four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='90536923431844238372096379800359312024577754107934353901';\r\nzv=[9 14 14 11 5 3 ];\r\nvexp='nine zero five three six nine two three four three one eight double four two three eight three seven two zero nine six three seven nine eight double zero three five nine three one two zero two four five triple seven five four one zero seven nine three four three five three nine zero one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='194851729139154581103404918805045722094939046615745185586389015707908521547319803514384134067';\r\nzv=[6 4 13 10 9 14 6 11 3 9 2 2 3 1 ];\r\nvexp='one nine four eight five one seven two nine one three nine one five four five eight double one zero three four zero four nine one double eight zero five zero four five seven double two zero nine four nine three nine zero four double six one five seven four five one eight double five eight six three eight nine zero one five seven zero seven nine zero eight five two one five four seven three one nine eight zero three five one four three eight four one three four zero six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7180221794361';\r\nzv=[3 7 3 ];\r\nvexp='seven one eight zero double two one seven nine four three six one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='328104734424917711259192901583138150643217809';\r\nzv=[3 8 8 15 5 5 1 ];\r\nvexp='three two eight one zero four seven three double four two four nine one double seven double one two five nine one nine two nine zero one five eight three one three eight one five zero six four three two one seven eight zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4012446744';\r\nzv=[8 1 1 ];\r\nvexp='four zero one two double four six seven four four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='75159567609950672038714189757246751900662587864067030579646570165557726996672';\r\nzv=[13 15 11 7 1 15 8 3 4 ];\r\nvexp='seven five one five nine five six seven six zero double nine five zero six seven two zero three eight seven one four one eight nine seven five seven two four six seven five one nine double zero six six two five eight seven eight six four zero six seven zero three zero five seven nine six four six five seven zero one six triple five double seven two six double nine double six seven two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3799620377074233419333355599242743805155864309640885130882726110701418994547411411126234428060';\r\nzv=[7 9 1 15 13 7 8 15 8 2 6 3 ];\r\nvexp='three seven double nine six two zero three double seven zero seven four two double three four one nine quadruple three triple five double nine two four two seven four three eight zero five one double five eight six four three zero nine six four zero double eight five one three zero double eight two seven two six double one zero seven zero one four one eight double nine four five four seven four double one four triple one two six two three double four two eight zero six zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4044617922891601574869890265644168731524925085154541620867323759734908590210726392474762696192267779';\r\nzv=[11 10 11 14 12 2 4 1 11 7 10 2 1 4 ];\r\nvexp='four zero double four six one seven nine double two eight nine one six zero one five seven four eight six nine eight nine zero two six five six double four one six eight seven three one five two four nine two five zero eight five one five four five four one six two zero eight six seven three two three seven five nine seven three four nine zero eight five nine zero two one zero seven two six three nine two four seven four seven six two six nine six one nine double two six triple seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='496013127684385845636701597670212145677337967472957547809568709115873526515';\r\nzv=[3 3 8 7 2 10 9 4 15 9 5 ];\r\nvexp='four nine six zero one three one two seven six eight four three eight five eight four five six three six seven zero one five nine seven six seven zero two one two one four five six double seven double three seven nine six seven four seven two nine five seven five four seven eight zero nine five six eight seven zero nine double one five eight seven three five two six five one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='820821167030568093577157791027439613729645803722099835506620383';\r\nzv=[10 5 12 5 9 7 12 1 1 1 ];\r\nvexp='eight two zero eight two double one six seven zero three zero five six eight zero nine three five double seven one five double seven nine one zero two seven four three nine six one three seven two nine six four five eight zero three seven double two zero double nine eight three double five zero double six two zero three eight three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='408657487448884114668701663855295152810754544275633734090577026733934929585122688051672821523';\r\nzv=[9 12 14 7 13 4 11 14 5 1 1 2 ];\r\nvexp='four zero eight six five seven four eight seven double four triple eight four double one four double six eight seven zero one double six three eight double five two nine five one five two eight one zero seven five four five double four two seven five six double three seven three four zero nine zero five seven seven zero two six seven double three nine three four nine two nine five eight five one double two six double eight zero five one six seven two eight two one five two three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='83666830362426720310982782694422780383449883455418709';\r\nzv=[12 1 5 6 9 9 3 2 5 1 ];\r\nvexp='eight three triple six eight three zero three six two four two six seven two zero three one zero nine eight two seven eight two six nine double four double two seven eight zero three eight three double four nine eight eight three four double five four one eight seven zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='70';\r\nzv=[2 ];\r\nvexp='seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='65766688929471206192343267171090766327239398418349595012751051227962607';\r\nzv=[3 11 13 6 13 11 9 5 ];\r\nvexp='six five seven triple six double eight nine two nine four seven one two zero six one nine two three four three two six seven one seven one zero nine zero seven double six three two seven two three nine three nine eight four one eight three four nine five nine five zero one two seven five one zero five one double two seven nine six two six zero seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='48133338660378550326078225767453276529';\r\nzv=[11 14 13 ];\r\nvexp='four eight one quadruple three eight double six zero three seven eight double five zero three two six zero seven eight double two five seven six seven four five three two seven six five two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='36891843662484180026365939189054753849425696106318144849957054540856';\r\nzv=[1 5 14 8 6 13 11 4 2 3 1 ];\r\nvexp='three six eight nine one eight four three double six two four eight four one eight double zero two six three six five nine three nine one eight nine zero five four seven five three eight four nine four two five six nine six one zero six three one eight one double four eight four double nine five seven zero five four five four zero eight five six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='34612462486594272419457058352837598957197066493857794521556931700796417114875';\r\nzv=[4 3 13 11 10 4 7 7 6 8 4 ];\r\nvexp='three four six one two four six two four eight six five nine four two seven two four one nine four five seven zero five eight three five two eight three seven five nine eight nine five seven one nine seven zero double six four nine three eight five double seven nine four five two one double five six nine three one seven double zero seven nine six four one seven double one four eight seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='589307734140137421765302377855535665358764079941118868097';\r\nzv=[5 11 10 15 1 13 1 1 ];\r\nvexp='five eight nine three zero double seven three four one four zero one three seven four two one seven six five three zero two three seven seven eight triple five three five double six five three five eight seven six four zero seven double nine four triple one double eight six eight zero nine seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3672631606882947123107630174376653028408088502237547432460099875379219240390535201264402423';\r\nzv=[12 1 6 4 1 9 13 15 7 12 6 2 3 ];\r\nvexp='three six seven two six three one six zero six double eight two nine four seven one two three one zero seven six three zero one seven four three seven double six five three zero two eight four zero eight zero double eight five zero two two three seven five four seven four three two four six double zero double nine eight seven five three seven nine two one nine two four zero three nine zero five three five two zero one two six double four zero two four two three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='071297839181663799718842689232241580363293469938821908366311';\r\nzv=[8 9 3 4 4 1 4 9 15 2 1 ];\r\nvexp='zero seven one two nine seven eight three nine one eight one double six three seven nine nine seven one double eight four two six eight nine two three double two four one five eight zero three six three two nine three four six double nine three double eight two one nine zero eight three double six three one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='76980639645671034156972091320389208';\r\nzv=[5 9 7 9 2 2 1 ];\r\nvexp='seven six nine eight zero six three nine six four five six seven one zero three four one five six nine seven two zero nine one three two zero three eight nine two zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5521307963254865684315120841260812155841496873543096528814951132569054';\r\nzv=[13 5 14 11 13 8 1 3 2 ];\r\nvexp='double five two one three zero seven nine six three two five four eight six five six eight four three one five one two zero eight four one two six zero eight one two one double five eight four one four nine six eight seven three five four three zero nine six five two double eight one four nine five double one three two five six nine zero five four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9288';\r\nzv=[2 1 1 ];\r\nvexp='nine two eight eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0477182564467935086';\r\nzv=[15 3 1 ];\r\nvexp='zero four double seven one eight two five six double four six seven nine three five zero eight six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1433203960656799099205210173223686919427402173272324965993447708611755416843183525933643187989942239';\r\nzv=[8 10 1 14 8 13 15 6 1 13 8 3 ];\r\nvexp='one four double three two zero three nine six zero six five six seven double nine zero nine nine two zero five two one zero one seven three double two three six eight six nine one nine four two seven four zero two one seven three two seven two three two four nine six five double nine three double four double seven zero eight six double one seven five five four one six eight four three one eight three five two five nine double three six four three one eight seven nine eight double nine four two two three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82446767675781104095354046763771917813590078380710445861437926027908370597627610';\r\nzv=[9 1 2 4 4 3 2 15 14 9 4 6 1 5 1 ];\r\nvexp='eight two double four six seven six seven six seven five seven eight double one zero four zero nine five three five four zero four six seven six three double seven one nine one seven eight one three five nine double zero seven eight three eight zero seven one zero double four five eight six one four three seven nine two six zero two seven nine zero eight three seven zero five nine seven six two seven six one zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='305859569860086103046061825673705281159146364994491117222909271811137063811520971285027239387660793';\r\nzv=[12 2 7 15 6 3 1 6 3 8 7 10 5 10 4 ];\r\nvexp='three zero five eight five nine five six nine eight six zero zero eight six one zero three zero four six zero six one eight two five six seven three seven zero five two eight one one five nine one four six three six four nine nine double four nine double one one seven two double two nine zero nine two seven one eight triple one three seven zero six three eight double one five two zero nine seven one two eight five zero two seven two three nine three eight seven double six zero seven nine three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5190986793820061002';\r\nzv=[8 7 4 ];\r\nvexp='five one nine zero nine eight six seven nine three eight two double zero six one double zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='732818804656837051738362946791984298270657440266341399683255575214033229065283049378339674351';\r\nzv=[10 3 8 14 3 4 13 7 3 4 14 9 1 ];\r\nvexp='seven three two eight one double eight zero four six five six eight three seven zero five one seven three eight three six two nine four six seven nine one nine eight four two nine eight two seven zero six five seven double four zero two double six three four one three double nine six eight three two triple five seven five two one four zero double three double two nine zero six five two eight three zero four nine three seven eight double three nine six seven four three five one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='22878757492589018002205051162666163148087357471571794221657045672188988933603952144766843';\r\nzv=[7 10 8 14 13 5 11 4 15 1 1 ];\r\nvexp='double two eight seven eight seven five seven four nine two five eight nine zero one eight double zero double two zero five zero five double one six two triple six one six three one four eight zero eight seven three five seven four seven one five seven one seven nine four double two one six five seven zero four five six seven two one double eight nine double eight nine double three six zero three nine five two one double four seven double six eight four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68748245479848622009943617274780676690467343336858764026953343';\r\nzv=[1 11 14 3 10 13 5 1 1 2 1 ];\r\nvexp='six eight seven four eight two four five four seven nine eight four eight six double two double zero double nine four three six one seven two seven four seven eight zero six seven double six nine zero four six seven three four triple three six eight five eight seven six four zero two six nine five three three four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='812443820860567150296801089721522978252459617325444234454527699088834091962915459804249813572793576';\r\nzv=[2 8 1 1 15 4 8 14 1 10 8 8 15 1 2 1 ];\r\nvexp='eight one two double four three eight two zero eight six zero five six seven one five zero two nine six eight zero one zero eight nine seven two one five double two nine seven eight two five two four five nine six one seven three two five triple four two three four four five four five two seven six double nine zero triple eight three four zero nine one nine six two nine one five four five nine eight zero four two four nine eight one three five seven two seven nine three five seven six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='00993661068572459991536596938758768256572549986877220';\r\nzv=[9 11 7 7 12 7 ];\r\nvexp='double zero double nine three double six one zero six eight five seven two four five triple nine one five three six five nine six nine three eight seven five eight seven six eight two five six five seven two five four double nine eight six eight double seven double two zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='27715163656297176275418439056931612320615454463000744707732526889213294949588908195775568';\r\nzv=[15 2 13 1 3 6 2 15 4 1 10 9 7 1 ];\r\nvexp='two double seven one five one six three six five six two nine seven one seven six two seven five four one eight four three nine zero five six nine three one six one two three two zero six one five four five double four six three triple zero seven double four seven zero double seven three two five two six double eight nine two one three two nine four nine four nine five double eight nine zero eight one nine five double seven double five six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='66836591190528744386233121519205009660791065830470';\r\nzv=[9 10 6 12 13 ];\r\nvexp='double six eight three six five nine double one nine zero five two eight seven double four three eight six two double three one two one five one nine two zero five double zero nine double six zero seven nine one zero six five eight three zero four seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9908105226888800867627299504353445485000888760967649670742';\r\nzv=[5 6 8 5 2 10 6 7 3 3 3 ];\r\nvexp='double nine zero eight one zero five double two six eight triple eight double zero eight six seven six two seven two nine nine five zero four three five three double four five four eight five triple zero double eight eight seven six zero nine six seven six four nine six seven zero seven four two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='23013192041633596995161673827352665194498573133742450639121977';\r\nzv=[14 9 11 9 10 5 4 ];\r\nvexp='two three zero one three one nine two zero four one six double three five nine six double nine five one six one six seven three eight two seven three five two double six five one nine double four nine eight five seven three one double three seven four two four five zero six three nine one two one nine double seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='561876161628602626933868362823471568496758529903516004832334874950999565539';\r\nzv=[2 14 12 12 1 3 10 14 1 5 1 ];\r\nvexp='five six one eight seven six one six one six two eight six zero two six two six nine double three eight six eight three six two eight two three four seven one five six eight four nine six seven five eight five two double nine zero three five one six double zero four eight three two double three four eight seven four nine five zero double nine nine five six double five three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0659336967718923857487379930716973116724796708015053702806099696109';\r\nzv=[15 10 2 5 12 9 11 2 1 ];\r\nvexp='zero six five nine double three six nine six double seven one eight nine two three eight five seven four eight seven three seven nine nine three zero seven one six nine seven three double one six seven two four seven nine six seven zero eight zero one five zero five three seven zero two eight zero six zero double nine six nine six one zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2544353234854864102426825493629094429744221828448703587259611510954048582897631523802527480763958';\r\nzv=[9 9 5 9 1 11 2 9 5 4 1 10 12 10 ];\r\nvexp='two five double four three five three two three four eight five four eight six four one zero two four two six eight two five four nine three six two nine zero nine double four two nine seven double four double two one eight two eight double four eight seven zero three five eight seven two five nine six one one five one zero nine five four zero four eight five eight two eight nine seven six three one five two three eight zero two five two seven four eight zero seven six three nine five eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='743482174037207702159915214008';\r\nzv=[2 10 10 7 1 ];\r\nvexp='seven four three four eight two one seven four zero three seven two zero double seven zero two one five double nine one five two one four double zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='971685936861297496680545';\r\nzv=[2 1 3 3 8 3 2 2 ];\r\nvexp='nine seven one six eight five nine three six eight six one two nine seven four nine double six eight zero five four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='06384119765848786807703567200612243886752458257039700258908161';\r\nzv=[10 1 12 5 9 7 1 8 5 2 2 ];\r\nvexp='zero six three eight four double one nine seven six five eight four eight seven eight six eight zero double seven zero three five six seven two zero zero six one double two four three double eight six seven five two four five eight two five seven zero three nine seven double zero two five eight nine zero eight one six one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='661888688696858666215517613281167258136127005883725278169489607542378190912692984613629598';\r\nzv=[12 6 4 10 8 13 9 12 8 2 2 3 1 ];\r\nvexp='double six one triple eight six double eight six nine six eight five eight triple six two one double five one seven six one three two eight double one six seven two five eight one three six one two seven double zero five double eight three seven two five two seven eight one six nine four eight nine six zero seven five four two three seven eight one nine zero nine one two six nine two nine eight four six one three six two nine five nine eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='11869488318253809620396499';\r\nzv=[8 8 4 4 2 ];\r\nvexp='double one eight six nine four double eight three one eight two five three eight zero nine six two zero three nine six four double nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3247242326877973396352267916489703639981791';\r\nzv=[10 6 9 1 14 3 ];\r\nvexp='three two four seven two four two three two six eight double seven nine seven three three nine six three five double two six seven nine one six four eight nine seven zero three six three double nine eight one seven nine one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8446827840499583394994945831973919523300569749298887484989096588752282260';\r\nzv=[13 4 10 14 13 11 8 ];\r\nvexp='eight double four six eight two seven eight four zero four double nine five eight double three nine four double nine four nine four five eight three one nine seven three nine one nine five two double three double zero five six nine seven four nine two nine triple eight seven four eight four nine eight nine zero nine six five double eight seven five double two eight double two six zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='411450';\r\nzv=[3 2 1 ];\r\nvexp='four double one four five zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4392336769670743812140126277793124578244122498979213427064735267724740372712';\r\nzv=[11 12 7 15 6 5 10 5 4 1 ];\r\nvexp='four three nine two double three six seven six nine six seven zero seven four three eight one two one four zero one two six two triple seven nine three one two four five seven eight two double four one double two four nine eight nine seven nine two one three four two seven zero six four seven three five two six double seven two four seven four zero three seven two seven one two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='787130205914703441344904';\r\nzv=[5 6 7 4 1 1 ];\r\nvexp='seven eight seven one three zero two zero five nine one four seven zero three double four one three double four nine zero four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='12774525496510270478837791597218598140900';\r\nzv=[3 3 14 8 5 1 6 1 ];\r\nvexp='one two seven seven four five two five four nine six five one zero two seven zero four seven eight eight three double seven nine one five nine seven two one eight five nine eight one four zero nine zero zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8337240067278766126028792694666601545641';\r\nzv=[1 3 2 9 7 3 12 3 ];\r\nvexp='eight double three seven two four double zero six seven two seven eight seven six six one two six zero two eight seven nine two six nine four quadruple six zero one five four five six four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='07284423399956161619055960652374322967216';\r\nzv=[3 1 12 6 10 8 1 ];\r\nvexp='zero seven two eight double four two double three triple nine five six one six one six one nine zero five five nine six zero six five two three seven four three double two nine six seven two one six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='014588023080298629688';\r\nzv=[1 11 4 4 1 ];\r\nvexp='zero one four five double eight zero two three zero eight zero two nine eight six two nine six eight eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='391932612615185460799778659969591684168549057796895984';\r\nzv=[13 7 2 2 7 3 14 2 3 1 ];\r\nvexp='three nine one nine three two six one two six one five one eight five four six zero seven nine nine seven seven eight six five double nine six nine five nine one six eight four one six eight five four nine zero five double seven nine six eight nine five nine eight four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='85267068576145';\r\nzv=[9 3 1 1 ];\r\nvexp='eight five two six seven zero six eight five seven six one four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-29T21:50:16.000Z","updated_at":"2013-09-29T21:58:27.000Z","published_at":"2013-09-29T21:58:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Read Phone Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Large Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u0026gt; 10 repeats occurs in the Large Data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Text, a string of the reading based upon segments\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[Number,Segments]  [Text]\\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44715,"title":"007: Chinese Barrack Invasion","description":"*MISSION:* Successfully invade a military barrack located in China.\r\n\r\n*WARNING:* There is a row of _n_ security switches protecting the military installation entrance. The switches can be manipulated as follows:\r\n\r\n* The rightmost switch may be turned on or off at will.\r\n\r\n* Any other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,\r\nare off.\r\n\r\n* Only one switch may be toggled at a time.\r\n\r\nAll _n_ security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves _m_ (toggling one switch is considered one move.) An alarm will be triggered if more than _m_ moves are made. Quickly, determine the minimum number of moves _m_ . \r\n\r\nBe Careful. Do not get caught!!!\r\n\r\n*HINT:* The security system was designed by the Chinese.","description_html":"\u003cp\u003e\u003cb\u003eMISSION:\u003c/b\u003e Successfully invade a military barrack located in China.\u003c/p\u003e\u003cp\u003e\u003cb\u003eWARNING:\u003c/b\u003e There is a row of \u003ci\u003en\u003c/i\u003e security switches protecting the military installation entrance. The switches can be manipulated as follows:\u003c/p\u003e\u003cul\u003e\u003cli\u003eThe rightmost switch may be turned on or off at will.\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003eAny other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,\r\nare off.\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003eOnly one switch may be toggled at a time.\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAll \u003ci\u003en\u003c/i\u003e security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves \u003ci\u003em\u003c/i\u003e (toggling one switch is considered one move.) An alarm will be triggered if more than \u003ci\u003em\u003c/i\u003e moves are made. Quickly, determine the minimum number of moves \u003ci\u003em\u003c/i\u003e .\u003c/p\u003e\u003cp\u003eBe Careful. Do not get caught!!!\u003c/p\u003e\u003cp\u003e\u003cb\u003eHINT:\u003c/b\u003e The security system was designed by the Chinese.\u003c/p\u003e","function_template":"function m = Invasion(n)\r\n  \r\nend","test_suite":"%%\r\nassert(isequal(Invasion(0),0))\r\n\r\n%%\r\nassert(isequal(Invasion(1),1))\r\n\r\n%%\r\nassert(isequal(Invasion(2),2))\r\n\r\n%%\r\nassert(isequal(Invasion(3),5))\r\n\r\n%%\r\nassert(isequal(Invasion(4),10))\r\n\r\n%%\r\nassert(isequal(Invasion(5),21))\r\n\r\n%%\r\nassert(isequal(Invasion(6),42))\r\n\r\n%%\r\nassert(isequal(Invasion(7),85))\r\n\r\n%%\r\nassert(isequal(Invasion(8),170))\r\n\r\n%%\r\nassert(isequal(Invasion(9),341))\r\n\r\n%%\r\nassert(isequal(Invasion(10),682))\r\n\r\n%%\r\nassert(isequal(Invasion(11),1365))\r\n\r\n%%\r\nassert(isequal(Invasion(12),2730))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":178544,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":23,"test_suite_updated_at":"2018-09-07T18:01:16.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-08-04T14:29:49.000Z","updated_at":"2025-12-16T03:09:27.000Z","published_at":"2018-08-04T14:32:20.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eMISSION:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Successfully invade a military barrack located in China.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eWARNING:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e There is a row of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e security switches protecting the military installation entrance. The switches can be manipulated as follows:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe rightmost switch may be turned on or off at will.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAny other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,are off.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOnly one switch may be toggled at a time.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAll\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (toggling one switch is considered one move.) An alarm will be triggered if more than\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e moves are made. Quickly, determine the minimum number of moves\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e .\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBe Careful. Do not get caught!!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eHINT:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The security system was designed by the Chinese.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1934,"title":"GJam 2014 China Rd B: Sudoku Checker","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku\u003e. Large Case.\r\n\r\nThe Goal is determine if the Sudoku square is valid. Each row and column  must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\r\n\r\n\r\n*Input:* [M], NxN matrix (3^2\u003c=N\u003c=6^2)\r\n\r\n*Output:* TF, 1=Valid, 0=Invalid\r\n\r\n*Examples:*\r\n\r\n  TF=1\r\n  5 3 4 6 7 8 9 1 2\r\n  6 7 2 1 9 5 3 4 8\r\n  1 9 8 3 4 2 5 6 7\r\n  8 5 9 7 6 1 4 2 3\r\n  4 2 6 8 5 3 7 9 1\r\n  7 1 3 9 2 4 8 5 6\r\n  9 6 1 5 3 7 2 8 4\r\n  2 8 7 4 1 9 6 3 5\r\n  3 4 5 2 8 6 1 7 9\r\n  \r\n  TF=0\r\n  5 3 4 6 7 8 9 1 2\r\n  6 7 2 1 9 5 3 4 8\r\n  1 9 8 3 4 2 5 6 7\r\n  8 5 9 7 6 1 4 2 3\r\n  4 2 6 8 999 3 7 9 1\r\n  7 1 3 9 2 4 8 5 6\r\n  9 6 1 5 3 7 2 8 4\r\n  2 8 7 4 1 9 6 3 5\r\n  3 4 5 2 8 6 1 7 9\r\n\r\n\r\n*Contest Performance:* Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p0\"\u003eGJam 2014 China Sudoku\u003c/a\u003e. Large Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine if the Sudoku square is valid. Each row and column  must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M], NxN matrix (3^2\u0026lt;=N\u0026lt;=6^2)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF, 1=Valid, 0=Invalid\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eTF=1\r\n5 3 4 6 7 8 9 1 2\r\n6 7 2 1 9 5 3 4 8\r\n1 9 8 3 4 2 5 6 7\r\n8 5 9 7 6 1 4 2 3\r\n4 2 6 8 5 3 7 9 1\r\n7 1 3 9 2 4 8 5 6\r\n9 6 1 5 3 7 2 8 4\r\n2 8 7 4 1 9 6 3 5\r\n3 4 5 2 8 6 1 7 9\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eTF=0\r\n5 3 4 6 7 8 9 1 2\r\n6 7 2 1 9 5 3 4 8\r\n1 9 8 3 4 2 5 6 7\r\n8 5 9 7 6 1 4 2 3\r\n4 2 6 8 999 3 7 9 1\r\n7 1 3 9 2 4 8 5 6\r\n9 6 1 5 3 7 2 8 4\r\n2 8 7 4 1 9 6 3 5\r\n3 4 5 2 8 6 1 7 9\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\u003c/p\u003e","function_template":"function TF=Sudoku_CH(m)\r\n TF=0;\r\nend","test_suite":"%%\r\nzm=[13 4 3 6 1 8 7 10 5 12 11 14 9 16 15 2 ;2 5 8 7 6 9 12 11 10 13 16 15 14 1 4 3 ;15 14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 ;16 11 10 9 4 15 14 13 8 3 2 1 12 7 6 5 ;1 8 7 10 5 12 11 14 9 16 15 2 13 4 3 6 ;6 9 12 11 10 13 16 15 14 1 4 3 2 5 8 7 ;3 2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 ;4 15 14 13 8 3 2 1 12 7 6 5 16 11 10 9 ;5 12 11 14 9 16 15 2 13 4 3 6 1 8 7 10 ;10 13 16 15 14 1 4 3 2 5 8 7 6 9 12 11 ;7 6 9 4 11 10 13 8 15 14 1 12 3 2 5 16 ;8 3 2 1 12 7 6 5 16 11 10 9 4 15 14 13 ;9 16 15 2 13 4 3 6 1 8 7 10 5 12 11 14 ;14 1 4 3 2 5 8 7 6 9 12 11 10 13 16 15 ;11 10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 ;12 7 6 5 16 11 10 9 4 15 14 13 8 3 2 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 ;20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 ;27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 ;34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 ;35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 ;12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 ;13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 ;26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 ;33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 ;4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 ;5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 ;18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 ;19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 ;32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 ;3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 28 26 13 24 11 4 33 32 19 30 17 10 ;10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 ;11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 ;24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 ;25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 ;2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 ;9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 ;16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 ;17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 ;30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 ;31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 ;8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 ;15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 ;22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 ;23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 ;36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 ;1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 ;14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 ;21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 ;28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 ;29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 ;6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[5 8 7 10 9 12 11 14 13 16 15 2 1 4 3 6 ;14 13 13 11 2 1 16 15 6 5 4 3 10 9 8 7 ;3 6 1 4 7 10 5 8 11 14 9 12 15 2 13 16 ;16 15 2 9 4 3 6 13 8 7 10 1 12 11 14 5 ;9 12 11 14 13 16 15 2 1 4 3 6 5 8 7 10 ;2 1 16 15 6 5 4 3 10 9 8 7 14 13 12 11 ;7 10 5 8 11 14 9 12 15 2 13 16 3 6 1 4 ;4 3 6 13 8 7 10 1 12 11 14 5 16 15 2 9 ;13 16 15 2 1 4 3 6 5 8 7 10 9 12 11 14 ;6 5 4 3 10 9 8 7 14 13 12 11 2 1 16 15 ;11 14 9 12 15 2 13 16 3 6 1 4 7 10 5 8 ;8 7 10 1 12 11 14 5 16 15 2 9 4 3 6 13 ;1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 2 ;10 9 8 7 14 13 12 11 2 1 16 15 6 5 4 3 ;15 2 13 16 3 6 1 4 7 10 5 8 11 14 9 12 ;12 11 14 5 16 15 2 9 4 3 6 13 8 7 10 1 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[5 12 3 14 9 16 7 2 13 4 11 6 1 8 15 10 ;6 9 4 11 10 13 8 16 14 1 12 3 2 5 16 7 ;7 10 1 16 11 14 5 4 15 2 9 8 3 6 13 12 ;8 15 2 13 12 3 6 1 16 7 10 5 4 11 14 9 ;9 16 7 2 13 4 11 6 1 8 15 10 5 12 3 14 ;10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 11 ;11 14 5 4 15 2 9 8 3 6 13 12 7 10 1 16 ;12 3 6 1 16 7 10 5 4 11 14 9 8 15 2 13 ;13 4 11 6 1 8 15 10 5 12 3 14 9 16 7 2 ;14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 15 ;15 2 9 8 3 6 13 12 7 10 1 16 11 14 5 4 ;16 7 10 5 4 11 14 9 8 15 2 13 12 3 6 1 ;1 8 15 10 5 12 3 14 9 16 7 2 13 4 11 6 ;2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 3 ;3 6 13 12 7 10 1 16 11 14 5 4 15 2 9 8 ;4 11 14 9 8 15 2 13 12 3 6 1 16 7 10 5 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 3 8 4 6 2 7 9 5 ;2 7 6 5 1 9 8 4 3 ;9 5 4 3 8 7 6 2 1 ;4 6 2 7 9 5 1 3 8 ;5 1 9 8 4 3 2 7 6 ;3 8 7 6 2 1 9 5 4 ;7 9 5 1 3 8 4 6 2 ;8 4 3 2 7 6 5 1 9 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 ;14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 ;3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 ;16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 ;23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 ;30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 ;1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 ;20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 ;9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 ;22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 ;29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 ;36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 ;7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 ;26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 29 9 14 25 6 29 34 15 20 31 12 35 4 21 ;15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 ;28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 ;35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 ;6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 ;13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 ;32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 ;21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 ;34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 ;5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 ;12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 ;19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 ;2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 ;27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 ;4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 ;11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 ;18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 ;25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 ;8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 ;33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 ;10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 ;17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 ;24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 12 7 14 5 16 11 2 9 4 15 6 13 8 3 10 ;10 13 16 3 14 2 4 7 2 5 8 11 6 9 12 15 ;15 2 5 8 3 6 9 12 7 10 13 16 11 14 1 4 ;4 11 6 9 8 15 10 13 12 3 14 1 16 7 2 5 ;5 16 11 2 9 4 15 6 13 8 3 10 1 12 7 14 ;14 1 4 7 2 5 8 11 6 9 12 15 10 13 16 3 ;3 6 9 12 7 10 13 16 11 14 1 4 15 2 5 8 ;8 15 10 13 12 3 14 1 16 7 2 5 4 11 6 9 ;9 4 15 6 13 8 3 10 1 12 7 14 5 16 11 2 ;2 5 8 11 6 9 12 15 10 13 16 3 14 1 4 7 ;7 10 13 16 11 14 1 4 15 2 5 8 3 6 9 12 ;12 3 14 1 16 7 2 5 4 11 6 9 8 15 10 13 ;13 8 3 10 1 12 7 14 5 16 11 2 9 4 15 6 ;6 9 12 15 10 13 16 3 14 1 4 7 2 5 8 11 ;11 14 1 4 15 2 5 8 3 6 9 12 7 10 13 16 ;16 7 2 5 4 11 6 9 8 15 10 13 12 3 14 1 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 ;26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 ;27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 ;22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 ;5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 ;24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 ;13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 ;32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 ;33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 ;28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 ;11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 ;30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 ;19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 ;2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 ;3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 ;34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 ;17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 ;36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 ;25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 ;8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 ;9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 ;4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 ;23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 ;6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 ;31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 ;14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 ;15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 ;10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 ;29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 ;12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 ;1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 ;20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 ;21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 ;16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 ;35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 ;18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 8 11 2 5 12 15 6 9 16 3 10 13 4 7 14 ;14 9 12 7 2 13 16 11 6 1 4 15 10 5 8 3 ;3 10 13 4 7 14 1 8 11 2 5 12 15 6 9 16 ;16 15 6 5 4 3 10 9 8 7 14 13 12 11 2 1 ;5 12 15 6 9 16 3 10 13 4 7 14 1 8 11 2 ;2 13 16 11 6 1 4 15 10 5 8 3 14 9 12 7 ;7 14 1 8 11 2 5 12 15 6 9 16 3 10 13 4 ;4 3 10 9 8 7 14 13 12 11 2 1 16 15 6 5 ;9 16 3 10 13 4 7 14 1 8 11 2 5 12 15 6 ;6 1 4 15 10 5 8 3 14 9 12 7 2 13 16 11 ;11 2 5 12 15 6 9 16 3 10 13 4 7 14 1 8 ;8 7 14 13 12 11 2 1 16 15 6 5 4 3 10 9 ;13 4 7 14 1 8 11 2 5 12 15 6 9 16 3 10 ;10 5 8 3 14 9 12 7 2 13 16 11 6 1 4 15 ;15 6 9 16 3 10 13 4 7 14 1 8 11 2 5 12 ;12 11 2 1 16 15 6 5 4 3 10 9 8 7 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 ;20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 ;3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 ;10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 ;11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 ;12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 ;13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 ;26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 ;9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 ;16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 ;17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 ;18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 ;19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 ;32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 ;15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 ;22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 ;23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 ;24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 ;25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 ;2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 ;21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 ;28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 ;29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 ;30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 ;31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 ;8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 ;27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 ;34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 ;35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 ;36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 ;1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 ;14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 ;33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 ;4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 ;5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 ;6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 3 8 1 6 2 4 9 5 ;2 1 6 5 4 9 8 7 3 ;9 5 4 3 8 7 6 2 1 ;1 6 2 4 9 5 7 3 8 ;5 4 9 8 7 3 2 1 6 ;3 8 7 6 2 1 9 5 4 ;4 9 6 7 3 8 1 6 2 ;8 7 3 2 1 6 5 4 9 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 16 3 2 13 4 7 6 1 8 11 10 5 12 15 14 ;6 13 4 15 10 1 8 3 14 5 12 7 2 9 16 11 ;11 14 1 12 15 2 5 16 3 6 9 4 7 10 13 8 ;8 7 10 5 12 11 14 9 16 15 2 13 4 3 6 1 ;13 4 7 6 1 8 11 10 5 12 15 14 9 16 3 2 ;10 1 8 3 14 5 12 7 2 9 16 11 6 13 4 15 ;15 2 5 16 3 6 9 4 7 10 13 8 11 14 1 12 ;12 11 14 9 16 15 2 13 4 3 6 1 8 7 10 5 ;1 8 11 10 5 12 15 14 9 16 3 2 13 4 7 6 ;14 5 12 7 2 9 16 11 6 13 4 15 10 1 8 3 ;3 6 9 4 7 10 13 8 11 14 1 12 15 2 5 16 ;16 15 2 13 4 3 6 1 8 7 10 5 12 11 14 9 ;5 12 15 14 9 16 3 2 13 4 7 6 1 8 11 10 ;2 9 16 11 6 13 4 15 10 1 8 3 14 5 12 7 ;7 10 13 8 11 14 1 12 15 2 5 16 3 6 9 4 ;4 3 6 1 8 7 10 5 12 11 14 9 16 15 2 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 ;22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 ;3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 ;4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 ;15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 ;21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 ;2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 ;8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 ;9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 ;20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 ;1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 ;7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 ;13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 ;14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 ;25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 ;6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 ;12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 ;18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 ;19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 ;5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 ;11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 ;17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 ;23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 ;24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 ;10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 ;17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 ;8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 ;19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 ;5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 ;6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 ;22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 ;13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 ;24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 ;10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 ;11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 ;2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 ;18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 ;4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 ;15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 ;16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 ;7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 ;23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 ;9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 ;20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 ;21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 ;12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 ;3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 ;14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 ;25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 ;20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 ;33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 ;4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 ;35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 ;18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 ;7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 ;26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 ;3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 ;10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 ;5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 ;24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 ;13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 ;32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 ;9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 ;16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 ;11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 ;30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 ;19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 ;2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 ;15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 ;22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 ;17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 ;36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 ;25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 ;8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 ;21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 ;28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 ;23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 ;6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 ;31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 ;14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 ;27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 ;34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 ;29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 ;12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[4 3 8 7 6 2 1 9 5 ;2 1 9 5 4 3 8 7 6 ;6 5 7 9 8 1 3 2 4 ;7 6 2 1 9 5 4 3 8 ;5 4 3 8 7 6 2 1 9 ;9 8 1 3 2 4 6 5 7 ;1 9 5 4 3 8 7 6 2 ;8 7 6 2 1 9 5 4 3 ;3 2 4 6 5 7 9 8 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 9 8 4 3 2 7 6 5 ;2 7 6 5 1 9 8 4 3 ;3 5 4 6 8 7 9 2 1 ;4 3 2 7 6 5 1 9 8 ;5 1 9 8 4 3 2 7 6 ;6 8 7 9 2 1 3 5 4 ;7 6 5 1 9 8 4 3 2 ;8 4 3 2 7 6 5 1 9 ;9 2 1 3 5 4 6 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 ;7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 ;23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 ;9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 ;15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 ;16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 ;12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 ;3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 ;14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 ;20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 ;21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 ;17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 ;8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 ;19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 ;25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 ;1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 ;22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 ;13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 ;24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 ;5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 ;6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 ;2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 ;18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 ;4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 ;10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 ;8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 ;21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 ;10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 ;5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 ;36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 ;7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 ;14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 ;27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 ;16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 ;11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 ;6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 ;13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 ;20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 ;33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 ;22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 ;17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 ;12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 ;19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 ;26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 ;3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 ;28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 ;23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 ;18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 ;25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 ;32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 ;9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 ;34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 ;29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 ;24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 ;31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 ;2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 ;15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 ;4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 ;35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 ;30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 ;2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 ;3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 ;22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 ;5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 ;6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 ;19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 ;8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 ;9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 ;28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 ;11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 ;12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 ;25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 ;14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 ;15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 ;34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 ;17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 ;18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 ;31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 ;20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 ;21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 ;4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 ;23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 ;24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 ;1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 ;26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 ;27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 ;10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 ;29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 ;30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 ;7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 ;32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 ;33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 ;16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 ;35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 ;36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[429 428 430 432 431 433 426 434 427 ;427 426 434 430 429 428 433 432 431 ;431 433 432 434 427 426 428 430 429 ;432 431 433 426 434 427 429 428 430 ;430 429 428 433 432 431 427 426 434 ;434 427 426 428 430 429 431 433 432 ;426 434 427 429 428 430 432 431 433 ;433 432 431 427 426 434 430 429 428 ;428 430 429 431 433 432 434 427 426 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 ;20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 ;15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 ;34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 ;29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 ;6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 ;13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 ;26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 ;21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 ;4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 ;35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 ;12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 ;19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 ;32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 ;27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 ;10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 ;5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 ;18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 ;25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 ;2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 ;33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 ;16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 ;11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 ;24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 ;31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 ;8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 ;3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 23 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 ;22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 ;17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 ;30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 ;1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 ;14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 ;9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 ;28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 ;23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 ;36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 ;22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 ;18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 ;14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 ;25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 ;1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 ;2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 ;23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 ;19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 ;5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 ;6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 ;7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 ;3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 ;24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 ;10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 ;11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 ;12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 ;8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 ;4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 ;15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 ;16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 ;17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 ;13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 ;9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 ;20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 ;14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 ;3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 ;16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 ;29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 ;36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 ;25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 ;20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 ;9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 ;22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 ;35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 ;6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 ;31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 ;26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 ;15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 ;28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 ;5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 ;12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 ;1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 ;32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 ;21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 ;34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 ;11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 ;18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 ;7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 ;2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 ;27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 ;4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 ;17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 ;24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 ;13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 ;8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 ;33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 ;10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 ;23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 ;30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 6 8 1 9 2 4 3 5 ;2 1 3 5 4 6 8 7 9 ;9 5 4 3 8 7 6 2 1 ;1 9 2 4 3 5 7 6 8 ;5 4 6 8 7 9 2 1 3 ;3 8 7 6 2 1 9 5 4 ;4 3 5 7 6 8 1 9 2 ;8 7 9 2 1 3 5 4 6 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 ;8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 ;21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 ;34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 ;23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 ;36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 ;7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 ;14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 ;27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 ;4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 ;29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 ;6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 ;13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 ;20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 ;33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 ;10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 ;35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 ;12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 ;19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 ;26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 ;3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 ;16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 ;5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 ;18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 ;25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 ;32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 ;9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 ;22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 ;11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 ;24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 ;31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 ;2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 ;15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 ;28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 ;17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 ;30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 16 3 10 13 4 7 14 1 8 11 2 5 12 15 6 ;2 13 4 15 6 1 8 3 10 5 12 7 14 9 16 11 ;7 6 1 12 11 10 5 16 15 14 9 4 3 2 13 8 ;8 11 14 5 12 15 2 9 16 3 6 13 4 7 10 1 ;13 4 7 14 1 8 11 2 5 12 15 6 9 16 3 10 ;6 1 8 3 10 5 12 7 14 9 16 11 2 13 4 15 ;11 10 5 16 15 14 9 4 3 2 13 8 7 6 1 12 ;12 15 2 9 16 3 6 13 4 7 10 1 8 11 14 5 ;1 8 11 2 5 12 15 6 9 16 3 10 13 4 7 14 ;10 5 12 7 14 9 16 11 2 13 4 15 6 1 8 3 ;15 14 9 4 3 2 13 8 7 6 1 12 11 10 5 16 ;16 3 6 13 4 7 10 1 8 11 14 5 12 15 2 9 ;5 12 15 6 9 16 3 10 13 4 7 14 1 8 11 2 ;14 9 16 11 2 13 4 15 6 1 8 3 10 5 12 7 ;3 2 13 8 7 6 1 12 11 10 5 16 15 14 9 4 ;4 7 10 1 8 11 14 5 12 15 2 9 16 3 6 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 ;22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 ;3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 ;4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 ;10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 ;6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 ;2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 ;8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 ;9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 ;15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 ;11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 ;7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 ;13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 ;14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 ;20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 ;16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 ;12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 ;18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 ;19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 ;25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 ;21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 ;17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 ;23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 ;24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 ;5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[13 8 15 6 1 12 3 10 5 16 7 14 9 4 11 2 ;14 5 4 3 2 9 8 7 6 13 12 11 10 1 16 15 ;7 2 9 12 11 6 13 16 15 10 1 4 3 14 5 8 ;16 11 10 1 4 15 14 5 8 3 2 9 12 7 6 13 ;1 12 3 10 5 16 7 14 9 4 11 2 13 8 15 6 ;2 9 8 7 6 13 12 11 10 1 16 15 14 5 4 3 ;11 6 13 16 15 10 1 4 3 14 5 8 7 2 9 12 ;4 15 14 5 8 3 2 9 12 7 6 13 16 11 10 1 ;5 16 7 14 9 4 11 2 13 8 15 6 1 12 3 10 ;6 13 12 11 10 1 16 15 14 5 4 3 2 9 8 7 ;15 10 1 4 3 14 5 8 7 2 10 12 11 6 13 16 ;8 3 2 9 12 7 6 13 16 11 10 1 4 15 14 5 ;9 4 11 2 13 8 15 6 1 12 3 10 5 16 7 14 ;10 1 16 15 14 5 4 3 2 9 8 7 6 13 12 11 ;3 14 5 8 7 2 9 12 11 6 13 16 15 10 1 4 ;12 7 6 13 16 11 10 1 4 15 14 5 8 3 2 9 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 ;7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 ;8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 ;19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 ;20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 ;1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 ;12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 ;13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 ;24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 ;25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 ;6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 ;17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 ;18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 ;4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 ;5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 ;11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 ;22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 ;23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 ;9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 ;10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 ;16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 ;2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 ;3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 ;14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 ;15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 8 7 6 13 12 11 10 1 16 15 14 5 4 3 2 ;14 1 4 11 2 5 8 15 6 9 12 3 10 13 16 7 ;3 2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 ;12 15 10 13 16 3 14 1 4 7 2 5 8 11 6 9 ;13 12 11 10 1 16 15 14 5 4 3 2 9 8 7 6 ;2 5 8 15 6 9 12 3 10 13 16 7 14 1 4 11 ;7 6 9 4 11 10 13 8 15 14 1 12 3 2 5 16 ;16 3 14 1 4 7 2 5 8 11 6 9 12 15 10 13 ;1 16 15 14 5 4 3 2 9 8 7 6 13 12 11 10 ;6 9 12 3 10 13 16 7 14 1 4 11 2 5 8 15 ;11 10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 ;4 7 2 5 8 11 6 9 12 15 10 13 16 3 14 1 ;5 4 3 2 9 8 7 6 13 12 11 10 1 16 15 14 ;10 13 16 7 14 1 4 11 2 5 8 15 6 9 12 3 ;15 14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 ;8 11 6 9 12 15 10 13 16 3 14 1 4 7 2 5 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 ;8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 ;9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 ;16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 ;35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 ;36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 ;7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 ;14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 ;15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 ;22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 ;5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 ;6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 ;13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 ;20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 ;21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 ;28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 ;11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 ;12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 ;19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 ;26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 ;27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 ;34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 ;17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 ;18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 ;25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 ;32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 ;33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 ;4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 ;23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 ;24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 ;31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 ;2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 ;3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 ;10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 ;29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 ;30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":66,"test_suite_updated_at":"2013-10-14T05:18:15.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-14T02:09:35.000Z","updated_at":"2025-12-15T20:06:09.000Z","published_at":"2013-10-14T02:26:56.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Sudoku\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Large Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine if the Sudoku square is valid. Each row and column must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M], NxN matrix (3^2\u0026lt;=N\u0026lt;=6^2)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF, 1=Valid, 0=Invalid\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[TF=1\\n5 3 4 6 7 8 9 1 2\\n6 7 2 1 9 5 3 4 8\\n1 9 8 3 4 2 5 6 7\\n8 5 9 7 6 1 4 2 3\\n4 2 6 8 5 3 7 9 1\\n7 1 3 9 2 4 8 5 6\\n9 6 1 5 3 7 2 8 4\\n2 8 7 4 1 9 6 3 5\\n3 4 5 2 8 6 1 7 9\\n\\nTF=0\\n5 3 4 6 7 8 9 1 2\\n6 7 2 1 9 5 3 4 8\\n1 9 8 3 4 2 5 6 7\\n8 5 9 7 6 1 4 2 3\\n4 2 6 8 999 3 7 9 1\\n7 1 3 9 2 4 8 5 6\\n9 6 1 5 3 7 2 8 4\\n2 8 7 4 1 9 6 3 5\\n3 4 5 2 8 6 1 7 9]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1903,"title":"GJam 2014 China Rd A: Maze with a Left Hand Rule","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard#s=p3 GJam 2014 China Cross the Maze\u003e.\r\n\r\nThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\r\n\r\n\r\n*Input:* [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\r\n\r\n*Output:* Path, a string of Movements {N,S,E,W}. If Path is \u003e10,000 moves or No solution return a null string.\r\n\r\n*Examples:*\r\n\r\n  .##.#\r\n  .....\r\n  ...#.\r\n  .###.\r\n  ...#.\r\n  1 1 5 3\r\n\r\nNote: (1,1) is Top Left and start point for this case. \r\n\r\nThe # are replaced by 1s and '.' will be 0s.\r\n\r\nOutput: SEEENSESSSNNNWWSWWSSEE\r\n\r\n*Contest Performance:* Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard#s=p3\"\u003eGJam 2014 China Cross the Maze\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Path, a string of Movements {N,S,E,W}. If Path is \u003e10,000 moves or No solution return a null string.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e.##.#\r\n.....\r\n...#.\r\n.###.\r\n...#.\r\n1 1 5 3\r\n\u003c/pre\u003e\u003cp\u003eNote: (1,1) is Top Left and start point for this case.\u003c/p\u003e\u003cp\u003eThe # are replaced by 1s and '.' will be 0s.\u003c/p\u003e\u003cp\u003eOutput: SEEENSESSSNNNWWSWWSSEE\u003c/p\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\u003c/p\u003e","function_template":"function Path=Maze_CH(m,sf);\r\n  Path='';;\r\nend","test_suite":"%%\r\ntic\r\nzm=[0 1 ;1 0 ];\r\nzsf=[1 1 2 2 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 1 0 1 ;0 0 0 0 0 ;0 0 0 1 0 ;0 1 1 1 0 ;0 0 0 1 0 ];\r\nzsf=[1 1 5 3 ];\r\nvexp='SEEENSESSSNNNWWSWWSSEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 ;0 1 0 ;0 0 0 ];\r\nzsf=[1 1 3 3 ];\r\nvexp='EESS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 2 2 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 1 0 1 0 1 ;0 0 0 0 0 0 0 0 ;1 1 1 1 1 1 1 0 ;0 0 0 0 0 0 0 0 ;0 1 0 1 0 1 0 1 ;0 1 1 1 1 1 1 1 ;0 1 0 1 0 1 0 1 ;0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 8 8 ];\r\nvexp='SEENSEENSEENSESSWSNWWSNWWSNWWSSSSEENSEENSEENSE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 3 1 ];\r\nvexp='EEEEEEEESESSSSSSSSWWWWWWWWWNNNNNNN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 7 1 ];\r\nvexp='EEEEEEEEESSSSSSSSSWWWWWWWWWNNN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 1 0 0 ;0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 1 ;0 0 0 1 0 0 0 0 0 0 ;0 1 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 3 ];\r\nvexp='NNNNNENNWNNEEEEEEEEESSSSSWSSESSWWWWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 2 ];\r\nvexp='NNNNNNNNNEEEEEEEEESWSSESSSSSSWWWWWNWWSW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 1 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 1 10 ];\r\nvexp='WWWWWWWWWNNNNNNNNNEEWSSEENENEEEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 5 10 ];\r\nvexp='WWWWWWWWWNNNNNNNNNEEEEEEEEESSSS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 1 0 1 0 0 0 ;0 0 0 0 0 1 0 1 0 1 ;0 0 0 0 1 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 1 ;0 0 0 1 0 0 0 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 9 1 ];\r\nvexp='SEENEEEEEEESWSSESSSWSSESWWWWWWWWNW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 1 0 0 0 0 0 1 1 ;0 1 0 0 0 1 0 1 1 0 ;0 0 0 1 0 1 0 1 0 1 ;0 0 1 0 1 0 1 0 0 1 ;0 0 0 1 0 0 0 0 0 1 ;0 1 0 0 1 0 0 1 1 1 ;0 0 0 1 0 1 0 0 0 1 ;0 1 0 0 0 1 0 0 0 0 ;1 0 0 1 0 0 1 0 0 0 ;0 1 0 1 1 0 0 0 0 1 ];\r\nzsf=[10 1 9 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 1 0 0 0 0 0 0 ;0 1 0 0 0 0 1 0 0 0 ;1 0 0 1 0 0 1 0 0 0 ;1 0 0 1 1 0 0 0 0 0 ;0 1 1 0 1 0 1 1 1 0 ;1 1 1 0 0 0 0 0 0 0 ;1 0 0 0 1 0 1 0 0 0 ;1 1 1 1 0 1 0 0 1 0 ;1 1 0 1 1 0 1 1 1 1 ;0 1 1 1 1 0 1 1 1 0 ];\r\nzsf=[1 1 10 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 0 0 0 0 1 1 ;1 0 0 1 1 0 0 1 0 1 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 0 1 ;0 0 1 0 0 1 0 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ;0 0 1 1 1 1 1 1 0 0 ;1 0 0 0 1 0 1 1 1 0 ;1 0 0 0 1 1 0 1 1 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 3 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ;1 0 0 1 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 1 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 1 0 0 ];\r\nzsf=[10 1 10 3 ];\r\nvexp='NNNNNSESEENNWNWNNWNESEENEEEEEESSSSSSSSSWNNWWSSWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 1 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 1 0 0 0 0 1 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 1 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 0 0 0 1 0 1 ;0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ];\r\nzsf=[1 1 5 3 ];\r\nvexp='EESEENSEENEEESWSSEWSWSWSSEENSESSNWWSWWWWWWWNNNNNEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 1 1 ;0 1 0 0 0 0 0 1 0 0 ;0 0 0 1 0 0 1 1 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 1 0 0 ;0 0 0 0 1 0 0 0 0 0 ];\r\nzsf=[10 10 8 10 ];\r\nvexp='WWWWNWWSWWWNNNNNNNNNEEEEEEEWSWSWSSEENEENNESSSSWWSSEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;1 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 1 1 0 ;0 0 0 0 0 0 1 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 1 0 0 0 0 ;1 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 10 ];\r\nvexp='ENSEENNWNWWSNNNENENNWWNEEESEENEEEESSSSNWWWSWSSEENESESSS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 1 0 0 0 0 0 ;1 1 1 0 0 0 1 0 0 0 ;0 0 1 1 1 0 1 0 0 0 ;0 0 0 1 1 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 1 0 ;0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 6 10 ];\r\nvexp='WWWWWWNWWSWNNNNNNNESEWSSEENEENNNWWNWWWEEESEENEEEESSSWSSE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 1 1 0 0 1 ;0 0 0 0 0 0 0 1 0 0 ;1 0 0 0 0 1 0 0 1 0 ;0 0 0 0 0 0 0 0 0 1 ;0 0 0 1 1 0 1 0 0 0 ;0 1 1 1 0 0 0 1 0 0 ;0 0 0 0 1 0 1 0 0 0 ];\r\nzsf=[1 10 6 2 ];\r\nvexp='SSWSSESNWNWNNWWSWSSEESESESESSWWENNWNWWSSEWSNWENNWWWSWWSSEEEWWWNNNEN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 0 0 0 ;0 0 0 1 0 1 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 1 0 ;0 0 0 0 0 0 0 1 1 0 ;1 1 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 2 8 ];\r\nvexp='SSSSSSSSSWWWWWWWNWWSNEENNWWNEENNWWNNNEEEEEWSSEWSSEENENN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[1 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 1 0 ;0 0 1 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 1 ;1 0 0 0 1 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 1 0 0 1 0 0 0 0 ;0 0 0 0 0 1 0 1 0 0 ;0 0 1 0 0 0 1 0 1 0 ];\r\nzsf=[1 10 1 6 ];\r\nvexp='SSSWSSESSSSNWNWWSNNWWSSSEWWNWWSWNNNENNWNENNWENEEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 0 1 0 1 0 ;0 0 0 0 0 0 0 0 1 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ;1 0 0 1 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 1 0 ];\r\nzsf=[1 1 7 4 ];\r\nvexp='EEEEESSEENNEESSSSSSSSSNNWWSSWWNWWSWWWNNEENNWNWESESE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 1 1 1 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 1 0 0 ;0 0 0 1 1 1 0 0 0 0 ;1 1 1 0 0 0 0 0 1 0 ;0 1 0 0 0 1 0 0 0 1 ;0 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 1 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 5 ];\r\nvexp='NNNNSESEENNWENEEENNWWWNWWSSEWWNNNSEENESEEEENSEENSSSSNWWSSESESSSWWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 1 0 1 ;0 0 1 0 0 0 0 0 0 0 ;0 1 0 1 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 1 ;0 0 0 0 1 0 0 1 0 0 ;0 0 0 0 1 0 0 1 0 1 ;0 0 0 0 0 1 0 0 1 0 ;0 0 0 0 0 1 1 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ];\r\nzsf=[10 1 9 2 ];\r\nvexp='NNNNNNNNNEEEEESEEENSESSWSSEWSNNWWSSSESEENSSWWNNWNWNNWWSSSESSEWWNWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 1 0 0 0 ;1 0 0 0 0 1 1 0 0 1 ;0 0 1 1 0 0 0 0 1 0 ;0 1 0 1 0 0 0 0 1 0 ;1 1 0 0 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ;1 0 0 0 1 0 0 0 0 1 ;0 0 0 0 0 1 0 1 0 0 ];\r\nzsf=[10 1 8 4 ];\r\nvexp='ENNWNEENNNSEENNNWWWSWSNENNWEESEENEWSSEEENNEEWSWSSSEENNSSSSSWSSEWNWWSNWNWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\ntoc","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-30T03:46:21.000Z","updated_at":"2026-02-10T13:15:01.000Z","published_at":"2013-09-30T04:01:29.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard#s=p3\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Cross the Maze\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Path, a string of Movements {N,S,E,W}. If Path is \u0026gt;10,000 moves or No solution return a null string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[.##.#\\n.....\\n...#.\\n.###.\\n...#.\\n1 1 5 3]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: (1,1) is Top Left and start point for this case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe # are replaced by 1s and '.' will be 0s.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: SEEENSESSSNNNWWSWWSSEE\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1901,"title":"GJam 2014 China Rd A: Read Phone Number","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number\u003e. Small Case.\r\n\r\nThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\r\n\r\n\r\n*Input:* [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\r\n\r\n*Output:* Text, a string of the reading based upon segments\r\n\r\n*Examples:*\r\n\r\n  [Number,Segments]  [Text]\r\n    ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n    ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n    \r\n\r\n*Contest Performance:* Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard\"\u003eGJam 2014 China Read Phone Number\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Text, a string of the reading based upon segments\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[Number,Segments]  [Text]\r\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\u003c/p\u003e","function_template":"function Text = Phone_CH(str,v) %\r\n Text='';\r\nend\r\n\r\n% One method for inserting strings from a cell array\r\nfunction valuestr=Phone_number(x)\r\n valuecell={'zero' 'one' 'two' 'three' 'four' 'five' 'six' 'seven' 'eight' 'nine'};\r\n valuestr=valuecell{x+1};\r\nend\r\n\r\nfunction qtystr=Phone_qty(x)\r\n qtycell={'' 'double' 'triple' 'quadruple' 'quintuple' 'sextuple' 'septuple' 'octuple' 'nonuple' 'decuple'};\r\n qtystr=qtycell{x};\r\nend","test_suite":"%%\r\ntic\r\nzstr='1';\r\nzv=[1 ];\r\nvexp='one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='22';\r\nzv=[2 ];\r\nvexp='double two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='333';\r\nzv=[3 ];\r\nvexp='triple three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4444';\r\nzv=[4 ];\r\nvexp='quadruple four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='55555';\r\nzv=[5 ];\r\nvexp='quintuple five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='666666';\r\nzv=[6 ];\r\nvexp='sextuple six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7777777';\r\nzv=[7 ];\r\nvexp='septuple seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='88888888';\r\nzv=[8 ];\r\nvexp='octuple eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='999999999';\r\nzv=[9 ];\r\nvexp='nonuple nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0000000000';\r\nzv=[10 ];\r\nvexp='decuple zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111';\r\nzv=[1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111';\r\nzv=[1 2 3 4 ];\r\nvexp='one double one triple one quadruple one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6701604014';\r\nzv=[1 4 5 ];\r\nvexp='six seven zero one six zero four zero one four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4096453178';\r\nzv=[8 2 ];\r\nvexp='four zero nine six four five three one seven eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5418148180';\r\nzv=[5 3 2 ];\r\nvexp='five four one eight one four eight one eight zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2319652041';\r\nzv=[8 2 ];\r\nvexp='two three one nine six five two zero four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9645684646';\r\nzv=[6 2 1 1 ];\r\nvexp='nine six four five six eight four six four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4508456969';\r\nzv=[5 3 2 ];\r\nvexp='four five zero eight four five six nine six nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1839791609';\r\nzv=[5 1 3 1 ];\r\nvexp='one eight three nine seven nine one six zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9398750802';\r\nzv=[1 1 1 4 2 1 ];\r\nvexp='nine three nine eight seven five zero eight zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5263950835';\r\nzv=[4 5 1 ];\r\nvexp='five two six three nine five zero eight three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1456187089';\r\nzv=[3 6 1 ];\r\nvexp='one four five six one eight seven zero eight nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='64360690';\r\nzv=[8 ];\r\nvexp='six four three six zero six nine zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7367';\r\nzv=[2 1 1 ];\r\nvexp='seven three six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2441739';\r\nzv=[5 2 ];\r\nvexp='two double four one seven three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7532179';\r\nzv=[1 1 2 2 1 ];\r\nvexp='seven five three two one seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0850664';\r\nzv=[3 4 ];\r\nvexp='zero eight five zero double six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8013334';\r\nzv=[5 2 ];\r\nvexp='eight zero one double three three four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0184088';\r\nzv=[2 1 4 ];\r\nvexp='zero one eight four zero double eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='706181428';\r\nzv=[4 4 1 ];\r\nvexp='seven zero six one eight one four two eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='98530';\r\nzv=[5 ];\r\nvexp='nine eight five three zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='29664';\r\nzv=[5 ];\r\nvexp='two nine double six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='49502';\r\nzv=[2 3 ];\r\nvexp='four nine five zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='15';\r\nzv=[2 ];\r\nvexp='one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='562640038';\r\nzv=[4 4 1 ];\r\nvexp='five six two six four double zero three eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1148979';\r\nzv=[6 1 ];\r\nvexp='double one four eight nine seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='79982';\r\nzv=[3 1 1 ];\r\nvexp='seven double nine eight two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='769';\r\nzv=[3 ];\r\nvexp='seven six nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1742234';\r\nzv=[6 1 ];\r\nvexp='one seven four double two three four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='81818447';\r\nzv=[5 1 1 1 ];\r\nvexp='eight one eight one eight four four seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5';\r\nzv=[1 ];\r\nvexp='five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='86';\r\nzv=[2 ];\r\nvexp='eight six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0573913609';\r\nzv=[6 1 2 1 ];\r\nvexp='zero five seven three nine one three six zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='497772738';\r\nzv=[1 3 2 3 ];\r\nvexp='four nine double seven seven two seven three eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2252931';\r\nzv=[1 5 1 ];\r\nvexp='two two five two nine three one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='19664';\r\nzv=[3 2 ];\r\nvexp='one nine six six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='566175';\r\nzv=[5 1 ];\r\nvexp='five double six one seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='92433';\r\nzv=[4 1 ];\r\nvexp='nine two four three three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='912039567';\r\nzv=[1 6 2 ];\r\nvexp='nine one two zero three nine five six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4820841';\r\nzv=[5 1 1 ];\r\nvexp='four eight two zero eight four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='71';\r\nzv=[1 1 ];\r\nvexp='seven one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4690';\r\nzv=[1 1 2 ];\r\nvexp='four six nine zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='106624';\r\nzv=[4 2 ];\r\nvexp='one zero double six two four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7900005';\r\nzv=[6 1 ];\r\nvexp='seven nine quadruple zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='407';\r\nzv=[2 1 ];\r\nvexp='four zero seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7738672895';\r\nzv=[8 1 1 ];\r\nvexp='double seven three eight six seven two eight nine five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='027326244';\r\nzv=[2 2 4 1 ];\r\nvexp='zero two seven three two six two four four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='115855';\r\nzv=[2 1 2 1 ];\r\nvexp='double one five eight five five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6553794';\r\nzv=[5 1 1 ];\r\nvexp='six double five three seven nine four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='426185417';\r\nzv=[8 1 ];\r\nvexp='four two six one eight five four one seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='31';\r\nzv=[1 1 ];\r\nvexp='three one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68';\r\nzv=[1 1 ];\r\nvexp='six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='05658716';\r\nzv=[4 4 ];\r\nvexp='zero five six five eight seven one six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='87';\r\nzv=[1 1 ];\r\nvexp='eight seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='99329';\r\nzv=[3 2 ];\r\nvexp='double nine three two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='21';\r\nzv=[1 1 ];\r\nvexp='two one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82';\r\nzv=[1 1 ];\r\nvexp='eight two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3273256549';\r\nzv=[8 1 1 ];\r\nvexp='three two seven three two five six five four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4';\r\nzv=[1 ];\r\nvexp='four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0';\r\nzv=[1 ];\r\nvexp='zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='780409';\r\nzv=[4 1 1 ];\r\nvexp='seven eight zero four zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='252966140';\r\nzv=[4 3 2 ];\r\nvexp='two five two nine double six one four zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3416708243';\r\nzv=[10 ];\r\nvexp='three four one six seven zero eight two four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='715';\r\nzv=[2 1 ];\r\nvexp='seven one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='714860127';\r\nzv=[7 2 ];\r\nvexp='seven one four eight six zero one two seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='148725';\r\nzv=[4 2 ];\r\nvexp='one four eight seven two five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='130';\r\nzv=[2 1 ];\r\nvexp='one three zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='59696645';\r\nzv=[1 1 1 2 3 ];\r\nvexp='five nine six nine six six four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='221065';\r\nzv=[2 2 2 ];\r\nvexp='double two one zero six five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='57715162';\r\nzv=[2 3 2 1 ];\r\nvexp='five seven seven one five one six two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='110';\r\nzv=[2 1 ];\r\nvexp='double one zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7537367';\r\nzv=[1 4 2 ];\r\nvexp='seven five three seven three six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9526681205';\r\nzv=[6 3 1 ];\r\nvexp='nine five two double six eight one two zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0818593729';\r\nzv=[1 3 2 4 ];\r\nvexp='zero eight one eight five nine three seven two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='729800081';\r\nzv=[9 ];\r\nvexp='seven two nine eight triple zero eight one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2124';\r\nzv=[1 1 1 1 ];\r\nvexp='two one two four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7045';\r\nzv=[3 1 ];\r\nvexp='seven zero four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6317406';\r\nzv=[7 ];\r\nvexp='six three one seven four zero six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='922906835';\r\nzv=[8 1 ];\r\nvexp='nine double two nine zero six eight three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='55';\r\nzv=[2 ];\r\nvexp='double five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='70985826';\r\nzv=[3 2 1 2 ];\r\nvexp='seven zero nine eight five eight two six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1619499314';\r\nzv=[8 1 1 ];\r\nvexp='one six one nine four double nine three one four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='89375';\r\nzv=[1 1 3 ];\r\nvexp='eight nine three seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='655162';\r\nzv=[1 5 ];\r\nvexp='six double five one six two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='180902';\r\nzv=[3 3 ];\r\nvexp='one eight zero nine zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='39106';\r\nzv=[5 ];\r\nvexp='three nine one zero six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82361352';\r\nzv=[6 2 ];\r\nvexp='eight two three six one three five two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='39';\r\nzv=[1 1 ];\r\nvexp='three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='63';\r\nzv=[2 ];\r\nvexp='six three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='16748';\r\nzv=[5 ];\r\nvexp='one six seven four eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\ntoc\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-29T21:29:44.000Z","updated_at":"2013-09-29T21:55:08.000Z","published_at":"2013-09-29T21:45:58.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Read Phone Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Text, a string of the reading based upon segments\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[Number,Segments]  [Text]\\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1944,"title":"GJam 2014 China Rd B: Dragon Maze","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p3 GJam 2014 China Dragon Maze\u003e. Small Case.\r\n\r\nThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path. \r\n\r\nThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)).\r\nEntrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\r\n\r\n\r\n*Input:* [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u003c=10).\r\n\r\n*Output:* [P] maximum Points. If Impossible P=-1;\r\n\r\n*Examples:*\r\n\r\n  [VEE] [M]   [P]\r\n  [0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]\r\n\r\n \r\n*Contest Performance:* Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\r\n\r\n\r\n*Strategy:*\r\n\r\n  1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \r\n  2) A ring of Zeros around the array may simplify processing.\r\n  3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p3\"\u003eGJam 2014 China Dragon Maze\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path.\u003c/p\u003e\u003cp\u003eThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)).\r\nEntrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u0026lt;=10).\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [P] maximum Points. If Impossible P=-1;\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[VEE] [M]   [P]\r\n[0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\u003c/p\u003e\u003cp\u003e\u003cb\u003eStrategy:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \r\n2) A ring of Zeros around the array may simplify processing.\r\n3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.\r\n\u003c/pre\u003e","function_template":"function P=Dragon_CH(ee,m)\r\n  P=0;\r\nend","test_suite":"%%\r\ntic\r\nzee=[0 0 0 1];\r\nzm=[97 68 ];\r\nvexp=165;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[1 0 0 0];\r\nzm=[11 ;92 ];\r\nvexp=103;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 1 1];\r\nzm=[47 -1 ;-1 41 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[9541 9311 1035 9921 9342 2262 8685 7151 184 8189 ;3885 4455 8295 4011 4030 7427 4325 7756 3404 3014 ;4402 9158 999 4298 6612 1696 5965 1822 9039 12 ;6015 8579 9322 7049 4851 5015 5663 9888 8517 5846 ;4428 2402 6653 9074 2764 682 6500 3440 8437 6256 ;6453 9191 1765 7452 3488 8377 5499 9452 6550 4537 ;5815 8916 9467 1489 5965 4317 2855 1627 556 1372 ;3824 1335 125 476 409 9240 1158 6908 2679 5946 ;9515 9131 5136 1280 2934 8623 6008 8432 4427 8909 ;2968 241 7825 8786 8081 3789 9455 936 1767 10 ];\r\nvexp=135772;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[2307 5590 1345 8783 2418 1753 4374 9927 5012 7052 ;5872 879 2534 7360 2158 1820 5982 4517 251 6760 ;3425 9571 3353 1249 8356 1433 1389 7810 2368 9507 ;4172 1026 1449 1868 9808 3866 3620 533 3792 4983 ;7584 6015 5861 6470 3374 4370 8289 5708 8886 4891 ;8819 2311 813 2171 9911 5521 3604 1300 9682 5971 ;806 3853 6997 2254 5720 3156 2471 5691 3689 2614 ;7026 7624 8629 9238 445 8354 3608 5085 413 8845 ;9976 9232 7507 7140 1402 7418 2660 5005 5069 8694 ;976 5874 8898 7972 4480 4618 7479 3302 6660 1167 ];\r\nvexp=113799;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[5916 -1 5143 4544 9275 5587 9249 9234 672 9662 ;-1 6999 8893 5585 490 6646 9354 9502 1651 4422 ;8195 2626 6647 7092 6949 7478 8061 779 780 1073 ;1946 6695 1109 3440 7590 6735 9026 6838 5968 6049 ;2851 398 3047 8095 2334 3537 4741 1687 9390 6391 ;6108 7584 5368 2754 1027 8668 232 9088 9446 1011 ;6512 7743 4057 3972 1182 1646 707 6560 4835 3026 ;2608 4038 3423 2007 2132 5756 1895 6872 7442 1284 ;9614 9901 8867 1333 2655 6245 6352 9238 1684 2150 ;6600 8195 6244 656 2167 3778 8653 2873 337 3487 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[5898 9296 7524 5673 1302 6008 7780 3196 9231 5222 ;4479 5197 5122 9697 6529 4128 5942 9233 3365 7625 ;7734 9964 5820 3977 6971 4338 7754 5623 3562 4442 ;5462 5811 3738 9337 1483 1391 5344 9263 4587 4575 ;836 5417 9771 2309 1466 2651 6437 7407 8235 6153 ;1383 5968 2469 3554 6297 9439 7891 402 1414 7804 ;4844 6875 3615 4933 2563 1449 6323 7907 7063 7261 ;8833 7898 9030 4955 6559 495 3957 9347 7901 2192 ;5499 5635 4511 4319 9189 807 110 3431 7561 -1 ;1235 8756 4749 4849 3688 7311 6297 6362 -1 9712 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 2 0 9];\r\nzm=[-1 3591 -1 9384 6034 8580 2003 -1 8780 1295 ;5605 1377 2240 559 -1 -1 4017 4895 4437 -1 ;-1 -1 -1 9865 -1 1505 2777 -1 436 8170 ;1900 6344 8059 9498 8256 -1 7952 7551 -1 5927 ;-1 -1 7609 -1 1257 1902 -1 8040 4203 -1 ;1361 2292 1143 769 -1 -1 -1 -1 2197 -1 ;3846 -1 2480 -1 -1 -1 -1 -1 -1 -1 ;4444 -1 6690 489 813 8790 -1 -1 -1 -1 ;3729 5436 -1 8544 -1 -1 -1 -1 -1 -1 ;-1 3743 -1 6213 -1 -1 -1 -1 -1 -1 ];\r\nvexp=85015;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 4 3 9];\r\nzm=[256 -1 6593 -1 4076 -1 8308 8531 8388 1339 ;6280 8079 6556 5099 3523 1967 7424 -1 1469 -1 ;-1 9317 -1 6682 -1 2996 -1 3140 3913 -1 ;2927 2797 -1 9032 9111 -1 1637 5917 -1 5971 ;3285 -1 6158 5977 -1 -1 -1 6944 5424 6439 ;2389 7565 -1 5558 5485 588 -1 -1 4093 -1 ;-1 8297 -1 -1 7995 -1 -1 -1 6639 8591 ;-1 -1 -1 -1 -1 2803 5365 7702 9610 -1 ;-1 -1 -1 -1 -1 6383 -1 -1 8763 3884 ;-1 -1 -1 -1 -1 -1 4980 966 7330 -1 ];\r\nvexp=81434;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 7 0 9];\r\nzm=[9117 4644 7637 2065 8336 9446 7761 9053 -1 3232 ;-1 9846 -1 898 -1 1074 -1 1715 4774 5778 ;-1 8864 -1 -1 5687 9951 5462 -1 4536 -1 ;-1 -1 -1 -1 -1 7870 -1 7507 1777 4773 ;-1 -1 89 3307 79 1280 -1 -1 -1 2898 ;-1 -1 -1 -1 4952 -1 2748 572 1991 5243 ;-1 -1 -1 -1 2706 4551 -1 8752 -1 7862 ;-1 -1 -1 5293 6847 -1 -1 4293 -1 308 ;-1 -1 -1 -1 -1 8374 5932 3627 -1 9426 ;-1 -1 -1 -1 -1 -1 -1 983 -1 3561 ];\r\nvexp=24552;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 3 9 0];\r\nzm=[-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 3869 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 7888 2830 -1 -1 -1 -1 -1 -1 ;-1 257 4329 -1 2131 -1 -1 -1 -1 -1 ;-1 2582 -1 6446 8398 -1 -1 6063 6484 -1 ;8837 9043 5373 9819 -1 8087 -1 6474 -1 1335 ;866 -1 4087 -1 424 8975 1557 4839 -1 5800 ;868 7116 -1 6357 8115 -1 8722 -1 1184 5178 ;-1 8558 9689 2863 -1 3838 -1 1762 -1 6184 ;9784 3468 -1 6082 8935 7345 1958 7935 9830 2768 ];\r\nvexp=40444;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1 2 3 4 5 6 7 8 9 10 ;11 12 13 14 15 16 17 18 19 20 ;21 22 23 24 25 26 27 28 29 30 ;31 32 33 34 35 36 37 38 39 40 ;41 42 43 44 45 46 47 48 49 50 ;51 52 53 54 55 56 57 58 59 60 ;61 62 63 64 65 66 67 68 69 70 ;71 72 73 74 75 76 77 78 79 80 ;81 82 83 84 85 86 87 88 89 90 ;91 92 93 94 95 96 97 98 99 100 ];\r\nvexp=1324;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1 11 21 31 41 51 61 71 81 91 ;2 12 22 32 42 52 62 72 82 92 ;3 13 23 33 43 53 63 73 83 93 ;4 14 24 34 44 54 64 74 84 94 ;5 15 25 35 45 55 65 75 85 95 ;6 16 26 36 46 56 66 76 86 96 ;7 17 27 37 47 57 67 77 87 97 ;8 18 28 38 48 58 68 78 88 98 ;9 19 29 39 49 59 69 79 89 99 ;10 20 30 40 50 60 70 80 90 100 ];\r\nvexp=1324;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 1 4 1];\r\nzm=[-1 -1 1134 9086 5787 -1 -1 9759 -1 ;-1 5195 1440 5405 6267 9573 4021 -1 -1 ;-1 8437 7138 1518 3828 -1 4927 7037 5390 ;4445 9948 -1 -1 8054 5367 -1 -1 6378 ;2675 6263 1410 8224 1185 1056 6214 -1 -1 ;3465 4891 179 -1 8233 3186 3146 4940 -1 ;9212 -1 622 9232 2128 -1 4591 -1 -1 ;853 2385 8569 3381 -1 31 9357 1202 -1 ;9153 437 481 3041 9860 -1 802 -1 5243 ;-1 3979 1226 -1 3966 8037 -1 7564 -1 ];\r\nvexp=11154;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[6 1 5 4];\r\nzm=[8935 7055 9523 5947 9420 1029 1519 9655 7310 -1 ;5347 6550 956 3676 -1 -1 1605 165 9339 924 ;7608 -1 -1 -1 9106 2457 7428 1436 1464 -1 ;-1 8605 753 3273 -1 5557 -1 4895 86 471 ;6830 5364 -1 -1 -1 8767 -1 -1 1753 8126 ;1440 -1 -1 -1 7917 7380 870 -1 -1 8426 ;9518 1719 246 1756 1823 -1 -1 6500 9647 6158 ;-1 3753 9179 3752 -1 -1 3927 -1 28 8762 ;3442 1154 -1 2977 -1 -1 -1 -1 497 -1 ;5046 4922 8565 5170 9416 7140 4702 5262 5264 8821 ];\r\nvexp=13461;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 9 0 7];\r\nzm=[-1 -1 -1 -1 5591 -1 6865 6361 -1 9574 ;5326 2417 -1 -1 6193 9084 1910 5890 9530 4249 ;5130 -1 -1 -1 2376 -1 -1 3886 8309 1892 ;-1 4623 6047 744 2180 817 6660 2425 2867 4950 ;-1 -1 -1 7617 1260 2832 4751 -1 -1 5698 ;-1 2864 4297 8644 3112 1812 2562 5793 4826 1341 ;737 4961 6790 3341 876 9914 9275 -1 9924 756 ;7283 3200 4971 4962 -1 8083 -1 8819 -1 7409 ;7651 5137 -1 1403 6483 -1 6406 7515 -1 -1 ;7345 1246 2469 3331 251 -1 8029 6777 3210 -1 ];\r\nvexp=43605;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 6 9 8];\r\nzm=[4471 2340 6565 -1 -1 3663 -1 -1 4562 8294 ;8432 -1 -1 383 9745 3207 944 340 7820 3426 ;2977 97 5374 1193 4024 2963 2227 2262 6405 2380 ;4866 6164 3694 178 1313 4376 6297 6060 4583 9330 ;9358 7274 6389 6195 2179 -1 3397 7809 557 2087 ;1977 -1 2617 9973 -1 907 -1 5864 -1 -1 ;-1 6127 2119 7554 3268 7556 -1 4465 1297 3716 ;-1 -1 730 1361 5616 -1 -1 7981 7319 3103 ;-1 -1 6599 4345 -1 5421 7790 4406 876 1764 ;7527 -1 -1 8441 7260 9243 9942 -1 8987 -1 ];\r\nvexp=46698;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[3 5 3 4];\r\nzm=[5297 1690 2134 6500 -1 378 99 -1 7714 7786 ;1895 -1 5584 1030 1354 3108 9637 -1 4744 4892 ;-1 7743 6128 3847 -1 9009 -1 -1 9951 -1 ;9108 2993 -1 4347 2520 1147 3077 8541 5470 2062 ;-1 6534 4545 1801 -1 -1 1137 8521 -1 7866 ];\r\nvexp=3667;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[7 6 4 6];\r\nzm=[199 9295 8751 5145 2157 3343 -1 -1 7184 -1 ;3780 3730 6605 -1 8658 -1 3573 -1 -1 -1 ;6749 6135 -1 7631 -1 4179 -1 -1 4080 -1 ;3592 1382 9020 -1 6831 -1 6736 8383 -1 2258 ;1674 -1 4663 -1 6161 2406 268 -1 931 4237 ;100 6649 6439 -1 -1 5266 3204 4114 5940 5908 ;1230 -1 4134 6819 3172 8035 6784 -1 6391 -1 ;9181 -1 -1 7310 -1 1576 1892 5821 4469 2080 ];\r\nvexp=12148;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 3 2 0];\r\nzm=[290 -1 5107 7466 7064 ;6249 -1 3213 6568 -1 ;1037 -1 4971 4915 -1 ;6851 9043 8163 1379 6540 ;2051 8939 1483 -1 4184 ;7062 137 -1 5275 9462 ;-1 -1 4316 3265 2838 ;-1 -1 1471 9758 7724 ;-1 -1 3883 -1 4987 ;6843 7025 6749 7147 1906 ];\r\nvexp=51934;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[7 2 5 2];\r\nzm=[3900 9521 7343 2759 -1 ;5239 -1 1132 4911 3520 ;1517 9058 -1 -1 -1 ;-1 -1 -1 -1 8097 ;-1 7717 4099 5529 7959 ;-1 6950 9579 5029 -1 ;6687 9672 -1 -1 -1 ;1507 5064 2149 1922 7228 ;-1 8639 6134 -1 933 ;-1 511 -1 -1 744 ];\r\nvexp=33414;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 5 6 0];\r\nzm=[6137 3305 6360 4891 6396 4463 8888 7982 ;7881 -1 4743 6730 360 4945 9032 -1 ;7273 3476 8679 -1 3569 2493 -1 7527 ;5487 562 9739 813 6484 6067 -1 9545 ;-1 5162 -1 4989 8112 -1 8032 1019 ;-1 -1 5009 404 1699 1676 5849 8070 ;1003 4164 2297 4730 4313 6194 5684 -1 ];\r\nvexp=24377;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 2 6 7];\r\nzm=[8353 7263 7609 -1 2120 5314 -1 9477 1416 3433 ;-1 590 7657 2619 -1 -1 4684 9284 -1 -1 ;3862 -1 2692 4001 1891 -1 7719 6477 -1 5973 ;-1 8015 -1 -1 148 2255 3535 -1 1866 1644 ;1340 1620 3925 5165 -1 3694 4100 1434 3612 -1 ;7843 -1 -1 1391 7637 -1 5855 -1 7250 9629 ;1768 2379 -1 -1 3330 410 -1 9549 -1 -1 ;9493 9719 4813 1231 -1 -1 -1 5478 -1 5106 ;82 8285 251 6695 8652 -1 4552 79 -1 3502 ;3118 7594 8758 -1 -1 -1 8470 4711 -1 2424 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 4 7 0];\r\nzm=[6808 5848 -1 9349 6503 5045 2772 -1 -1 8778 ;9668 4184 2263 -1 1288 1153 2705 7033 2495 -1 ;5880 2410 -1 7454 -1 2978 2427 4378 -1 4913 ;208 2853 -1 4005 3964 -1 9828 -1 4786 7602 ;-1 -1 -1 -1 -1 329 7985 -1 -1 28 ;-1 -1 -1 -1 4433 4085 9221 6038 7258 3834 ;9013 -1 5560 2745 5061 -1 3495 -1 -1 -1 ;2760 6565 7246 6924 -1 2700 -1 -1 4588 -1 ;9953 4344 8740 -1 152 8435 6756 3520 3078 9535 ;9930 9193 2399 246 4552 5468 -1 -1 -1 -1 ];\r\nvexp=35734;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 0 7 0];\r\nzm=[919 3728 6660 -1 5410 4513 8419 6070 482 6421 ;111 -1 4828 8468 -1 3201 -1 4659 -1 4738 ;-1 361 8017 4673 8999 4687 852 -1 7981 -1 ;-1 1520 9557 5945 8837 3767 9832 9775 -1 9935 ;5796 9072 -1 -1 392 341 3808 4109 4905 -1 ;9614 -1 8450 977 247 2107 7400 6786 -1 -1 ;4341 -1 4733 2658 -1 6043 8860 1838 6912 523 ;2432 4045 -1 -1 5361 895 -1 3895 1321 6672 ;2026 5899 1723 1201 1691 9580 1387 -1 -1 1689 ];\r\nvexp=22183;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[1 2 2 1];\r\nzm=[-1 -1 -1 -1 7201 7409 -1 9659 2860 9119 ;-1 9984 7612 9104 607 -1 9877 -1 2932 1986 ;5397 1618 2580 -1 69 2446 -1 -1 1160 7900 ;-1 9269 -1 6227 5896 200 5386 8138 -1 8909 ;7316 1699 -1 3087 -1 -1 -1 4699 -1 3670 ;8428 9133 3314 3461 4829 6483 7198 8227 8516 5217 ;325 54 8642 8561 -1 8582 -1 6678 3552 -1 ;7012 3037 6339 9407 6933 -1 9350 1820 5500 -1 ];\r\nvexp=19214;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1505 3402 2754 9713 414 2610 2749 8975 8948 1456 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 8381 ;2838 4740 4009 1596 442 4853 3416 6467 6705 1640 ;9059 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;7197 4825 212 7826 2129 6298 2502 1979 9061 4006 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 1733 ;1814 3718 8498 4423 2818 7472 9722 625 2204 8912 ;5365 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;6212 507 5806 7416 274 8624 4120 1914 7683 7669 ;3090 4246 1846 5219 6895 4347 3549 5955 8352 5281 ];\r\nvexp=259550;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 0];\r\nzm=[4120 8421 130 8543 1238 7601 4616 1863 6156 3527 ;3579 8719 386 9384 6135 7011 4359 6606 5276 8393 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 626 ;8366 2638 2471 3584 5884 6817 3484 8190 5168 8765 ;2310 9940 5246 7204 1178 2847 1819 9392 5354 1698 ;2970 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;4073 8435 8705 6559 1797 3063 9516 7073 1456 142 ;1790 445 2612 1725 6329 9429 5208 4518 948 3972 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 6827 ;888 5570 382 8417 4768 2201 7808 121 250 7129 ];\r\nvexp=243332;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 0 0 9];\r\nzm=[4193 5036 5833 7103 6832 8895 6619 3904 350 6760 ;2045 7147 9371 3769 3475 8799 8977 4344 9747 9300 ;7523 6986 4869 7904 5402 9636 104 3209 9757 6705 ;337 301 1740 6169 7404 8572 1415 4022 8827 8117 ;7133 872 5263 6503 4640 8737 1654 3616 9432 7752 ;9268 6954 4737 4136 4858 138 3772 1313 9698 3528 ;8018 6386 180 6109 8906 7583 1032 320 7956 9859 ;8436 5088 7082 50 1591 8073 5138 9596 8041 4570 ;7347 7308 1523 2083 1443 6380 8572 1566 4045 4621 ;1445 2062 1006 1625 4522 9911 5559 5554 230 3515 ];\r\nvexp=137679;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[3 7 3 6];\r\nzm=[-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 2896 5067 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ];\r\nvexp=7963;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-19T03:06:44.000Z","updated_at":"2026-02-10T13:28:34.000Z","published_at":"2013-10-19T03:25:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p3\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Dragon Maze\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)). Entrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u0026lt;=10).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [P] maximum Points. If Impossible P=-1;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[VEE] [M]   [P]\\n[0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eStrategy:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \\n2) A ring of Zeros around the array may simplify processing.\\n3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1881,"title":"GJam 2013 China Event: Happy Teams","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 9 minutes, 789 out of 1984 correct\r\n\r\n\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n% names is an array of cell arrays   \r\n% N columns of {1x2 cell}\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'Dead_Bowie' 'Nyssa_Raatko'} {'Animora' 'Lafety_Le_Fei'} {'Animora' 'Mothergod'} {'Animora' 'Nyssa_Raatko'} {'Dead_Bowie' 'Genevieve_Savidge'} {'Dead_Bowie' 'Lafety_Le_Fei'} {'Animora' 'Genevieve_Savidge'} {'Dead_Bowie' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'New_Wave'} {'Mephista' 'Ursa'} {'Zaladane' 'Mai_Shen'} {'Mephista' 'Mai_Shen'} {'White_Rabbit' 'Hypnota'} {'White_Rabbit' 'New_Wave'} {'Ursa' 'Scandal'} {'Zaladane' 'New_Wave'} {'Ursa' 'Hypnota'} {'Zaladane' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magenta' 'Golden_Glider'} {'Tala' 'Mothergod'} {'The_Lightning' 'Shiv'} {'The_Lightning' 'Prank'} {'Magenta' 'Shiv'} {'Tala' 'Prank'} {'Trinity' 'Golden_Glider'} {'Magenta' 'Prank'} {'The_Lightning' 'Mothergod'} {'Trinity' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Star_Sapphire'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Dead_Bowie'} {'Lady_Quark' 'Fury_Leika'} {'Lady_Quark' 'Star_Sapphire'} {'The_Lightning' 'Dead_Bowie'} {'Asbestos_Lady' 'Queen_Of_Fables'} {'Unicron' 'Lady_Quark'} {'Asbestos_Lady' 'Star_Sapphire'} {'The_Lightning' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Scandal'} {'Lashina' 'King_Ghidorah'} {'Doctor_Cyber' 'Tala'} {'Lashina' 'Evinlea'} {'Dr_Evil' 'Tala'} {'Zaladane' 'King_Ghidorah'} {'Doctor_Cyber' 'Evinlea'} {'Doctor_Cyber' 'King_Ghidorah'} {'Dr_Evil' 'Scandal'} {'Lashina' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Rampage'} {'Deuce' 'Ursa'} {'Bombshell' 'Ursa'} {'Lady_Octopus' 'Rampage'} {'Doctor_Cyber' 'Black_Mamba'} {'Deuce' 'Madame_Rouge'} {'Doctor_Cyber' 'Rampage'} {'Lady_Octopus' 'Madame_Rouge'} {'Doctor_Cyber' 'Madame_Rouge'} {'Lady_Octopus' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Cyborgirl' 'Fury_Leika'} {'Asbestos_Lady' 'Margaret_Love'} {'Amazing_Grace' 'Fury_Leika'} {'Cyborgirl' 'Hypnota'} {'Duela_Dent' 'Amazing_Grace'} {'Duela_Dent' 'Hypnota'} {'Amazing_Grace' 'Margaret_Love'} {'Duela_Dent' 'Mephista'} {'Duela_Dent' 'Fury_Leika'} {'Asbestos_Lady' 'Mephista'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Poundcakes'} {'Margaret_Love' 'Star_Sapphire'} {'Snapdragon' 'Ingra'} {'Snapdragon' 'Poundcakes'} {'Snapdragon' 'Star_Sapphire'} {'Dead_Bowie' 'Star_Sapphire'} {'Jason_Kreis' 'Ingra'} {'Dead_Bowie' 'Rampage'} {'Dead_Bowie' 'Poundcakes'} {'Margaret_Love' 'Rampage'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Southpaw'} {'Dansen_Macabre' 'Jewelee'} {'Lazara' 'Amazing_Grace'} {'Osira' 'Amazing_Grace'} {'Osira' 'Coachwhip'} {'Coachwhip' 'Princess_Python'} {'Dansen_Macabre' 'Princess_Python'} {'Coachwhip' 'Southpaw'} {'Osira' 'Princess_Python'} {'Osira' 'Jewelee'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Trinity'} {'Lashina' 'Mephista'} {'Lashina' 'Shiv'} {'Lashina' 'Dr_Evil'} {'Lashina' 'Fem_Paragon'} {'Lashina' 'King_Ghidorah'} {'Lashina' 'The_Lightning'} {'Lashina' 'Syndrome'} {'Lashina' 'Margaret_Love'} {'Lashina' 'Lady_Octopus'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lotso' 'Snapdragon'} {'Animora' 'Silver_Swan'} {'Devastation' 'Animora'} {'Snapdragon' 'Devastation'} {'Silver_Swan' 'Lotso'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Livewire'} {'Jason_Kreis' 'Trinity'} {'Spider_Girl' 'Syndrome'} {'Jason_Kreis' 'Livewire'} {'Harley_Quinn' 'Livewire'} {'Spider_Girl' 'Coachwhip'} {'Lady_Octopus' 'Coachwhip'} {'Lady_Octopus' 'Syndrome'} {'Harley_Quinn' 'Coachwhip'} {'Spider_Girl' 'Trinity'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Windfall'} {'Silver_Swan' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Windfall'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Titania'} {'Livewire' 'Abominatrix'} {'Shiv' 'Ursa'} {'Shiv' 'Abominatrix'} {'Princess_Python' 'Abominatrix'} {'Silk_Fever' 'Abominatrix'} {'Livewire' 'Ursa'} {'Princess_Python' 'Titania'} {'Princess_Python' 'Poundcakes'} {'Silk_Fever' 'Poundcakes'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Amy_Madison'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Dr_Evil'} {'Lady_Vic' 'Amy_Madison'} {'Lady_Octopus' 'Ursa'} {'Lafety_Le_Fei' 'Shiv'} {'Princess_Python' 'Amy_Madison'} {'Princess_Python' 'Shiv'} {'Lafety_Le_Fei' 'Ursa'} {'Lafety_Le_Fei' 'Amy_Madison'} {'Lady_Octopus' 'Dr_Evil'} {'Lady_Vic' 'Dr_Evil'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Magenta'} {'Genevieve_Savidge' 'Magenta'} {'Spider_Girl' 'Black_Mamba'} {'Spider_Girl' 'Lady_Shiva'} {'Jinx' 'Lady_Shiva'} {'Spider_Girl' 'Mist'} {'Genevieve_Savidge' 'Lady_Shiva'} {'Jinx' 'Black_Mamba'} {'Genevieve_Savidge' 'Mist'} {'Queen_Of_Fables' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Tigress'} {'Titania' 'Tigress'} {'Golddigger' 'Tigress'} {'Titania' 'Tala'} {'Lafety_Le_Fei' 'Tala'} {'Golddigger' 'Tala'} {'Golddigger' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Livewire'} {'Roulette' 'Mai_Shen'} {'Shiv' 'Bombshell'} {'Ursa' 'Bombshell'} {'Ursa' 'Livewire'} {'Shiv' 'Doctor_Cyber'} {'Roulette' 'Bombshell'} {'Blue_Snowman' 'Mai_Shen'} {'Ursa' 'Doctor_Cyber'} {'Blue_Snowman' 'Livewire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Duela_Dent'} {'Cyborgirl' 'Lafety_Le_Fei'} {'Cyborgirl' 'Duela_Dent'} {'Black_Mamba' 'Unicron'} {'Lady_Death' 'Duela_Dent'} {'Zaladane' 'Cyborgirl'} {'Cyborgirl' 'Devastation'} {'Lady_Death' 'Lafety_Le_Fei'} {'Black_Mamba' 'Devastation'} {'Zaladane' 'Unicron'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rad' 'Jason_Kreis'} {'Emerald_Empress' 'Lady_Vic'} {'Rad' 'Magenta'} {'Lagomorph' 'Jason_Kreis'} {'Lagomorph' 'Lady_Vic'} {'Lagomorph' 'Magenta'} {'Lagomorph' 'Lady_Quark'} {'Emerald_Empress' 'Genevieve_Savidge'} {'Lady_Quark' 'Genevieve_Savidge'} {'Lady_Quark' 'Jason_Kreis'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Lady_Clay'} {'Golden_Glider' 'Titania'} {'Lady_Clay' 'Lashina'} {'Lady_Clay' 'Titania'} {'Black_Mamba' 'Lashina'} {'Lady_Clay' 'Lady_Octopus'} {'Maxima' 'Lady_Octopus'} {'Maxima' 'Titania'} {'Black_Mamba' 'Decay'} {'Golden_Glider' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Fem_Paragon'} {'Abominatrix' 'Fem_Paragon'} {'Lady_Quark' 'Princess_Python'} {'The_Crimson_Ghost' 'Ingra'} {'Abominatrix' 'Jinx'} {'Lady_Quark' 'Rampage'} {'Abominatrix' 'Rampage'} {'Princess_Python' 'Jinx'} {'The_Crimson_Ghost' 'Jinx'} {'Lady_Quark' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Ingra'} {'Dr_Horrible' 'Sun_Girl'} {'Prank' 'Duela_Dent'} {'Valentina' 'Duela_Dent'} {'Prank' 'Ingra'} {'Lazara' 'Tigress'} {'Lazara' 'Ingra'} {'Lazara' 'Sun_Girl'} {'Valentina' 'Tigress'} {'Valentina' 'Dr_Horrible'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dansen_Macabre' 'Jewelee'} {'Sun_Girl' 'Jewelee'} {'Lady_Shiva' 'Trinity'} {'Lady_Shiva' 'Ursa'} {'Poison_Ivy' 'Jewelee'} {'Dansen_Macabre' 'Ursa'} {'Poison_Ivy' 'Shimmer'} {'Poison_Ivy' 'Trinity'} {'Sun_Girl' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Eviless'} {'Superwoman' 'Typhoid_Mary'} {'Zaladane' 'Typhoid_Mary'} {'Zaladane' 'Genevieve_Savidge'} {'Superwoman' 'Eviless'} {'Zaladane' 'Bombshell'} {'Ingra' 'Bombshell'} {'Jinx' 'Genevieve_Savidge'} {'Ingra' 'Genevieve_Savidge'} {'Jinx' 'Eviless'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Decay'} {'Ingra' 'Decay'} {'Mai_Shen' 'Deuce'} {'Ingra' 'Lady_Octopus'} {'Margaret_Love' 'Bombshell'} {'Ingra' 'Deuce'} {'Margaret_Love' 'Decay'} {'Dr_Evil' 'Lady_Octopus'} {'Dr_Evil' 'Bombshell'} {'Margaret_Love' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Snapdragon'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Lady_Shiva' 'Decay'} {'Lady_Shiva' 'Lady_Octopus'} {'Nyssa_Raatko' 'Lady_Octopus'} {'Professor_Padraic_Ratigan' 'Decay'} {'Silk_Fever' 'Maxima'} {'Nyssa_Raatko' 'Decay'} {'Professor_Padraic_Ratigan' 'Lady_Octopus'} {'Lady_Shiva' 'Snapdragon'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Trinity'} {'Mothergod' 'Professor_Padraic_Ratigan'} {'Tigress' 'Dr_Horrible'} {'Tigress' 'Princess_Python'} {'Rad' 'Dr_Horrible'} {'Rad' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Trinity'} {'Tigress' 'Trinity'} {'Bombshell' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Fake_Thomas_Jefferson'} {'Evinlea' 'Southpaw'} {'Magpie' 'Southpaw'} {'Magpie' 'Jason_Kreis'} {'Mist' 'Southpaw'} {'Tigress' 'Jason_Kreis'} {'Tigress' 'Fake_Thomas_Jefferson'} {'Mist' 'Jason_Kreis'} {'Evinlea' 'Gru'} {'Magpie' 'Gru'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Nyssa_Raatko' 'Shiv'} {'Nyssa_Raatko' 'Queen_Of_Fables'} {'Jewelee' 'The_Lightning'} {'Jinx' 'Shiv'} {'Nyssa_Raatko' 'Rad'} {'Jinx' 'The_Lightning'} {'Nyssa_Raatko' 'The_Lightning'} {'Jewelee' 'Rad'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Ingra' 'Sun_Girl'} {'Southpaw' 'Golden_Glider'} {'Superwoman' 'Mothergod'} {'Ingra' 'Tigress'} {'Superwoman' 'Sun_Girl'} {'Southpaw' 'Mothergod'} {'Silk_Fever' 'Tigress'} {'Superwoman' 'Ingra'} {'Ingra' 'Golden_Glider'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Tala'} {'Mai_Shen' 'Abominatrix'} {'Mai_Shen' 'Mothergod'} {'Mai_Shen' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shiv' 'Titania'} {'Lady_Quark' 'Trinity'} {'Mothergod' 'Hypnota'} {'Shiv' 'Hypnota'} {'Lady_Quark' 'White_Rabbit'} {'Lady_Octopus' 'Trinity'} {'Shiv' 'Lady_Quark'} {'Mothergod' 'Trinity'} {'Mothergod' 'White_Rabbit'} {'Lady_Octopus' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Queen_Of_Fables'} {'Queen_Bee' 'Magpie'} {'Queen_Bee' 'Rad'} {'Lashina' 'Queen_Of_Fables'} {'Lashina' 'Superwoman'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Lashina' 'Magpie'} {'Queen_Bee' 'Queen_Of_Fables'} {'Dead_Bowie' 'Rad'} {'Lazara' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'New_Wave' 'Ingra'} {'Syndrome' 'Princess_Python'} {'New_Wave' 'Sun_Girl'} {'Lashina' 'Ingra'} {'Silk_Fever' 'Ingra'} {'New_Wave' 'Princess_Python'} {'Syndrome' 'Shiv'} {'Lashina' 'Shiv'} {'Lashina' 'Sun_Girl'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Sun_Girl'} {'Doctor_Cyber' 'Windfall'} {'Dr_Evil' 'Valentina'} {'Hypnota' 'Abominatrix'} {'Doctor_Cyber' 'Sun_Girl'} {'Mist' 'Windfall'} {'Doctor_Cyber' 'Valentina'} {'Mist' 'Abominatrix'} {'Mist' 'Sun_Girl'} {'Dr_Evil' 'Abominatrix'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Leather' 'King_Ghidorah'} {'Jinx' 'Bombshell'} {'Leather' 'Lady_Vic'} {'Leather' 'Osira'} {'Jewelee' 'Bombshell'} {'Leather' 'Bombshell'} {'Amy_Madison' 'King_Ghidorah'} {'Jinx' 'King_Ghidorah'} {'Jewelee' 'Osira'} {'Amy_Madison' 'Lady_Vic'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Rouge' 'Ingra'} {'Margaret_Love' 'Ingra'} {'Yellowjacket' 'Dansen_Macabre'} {'Margaret_Love' 'The_Crimson_Ghost'} {'Margaret_Love' 'Rad'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Yellowjacket' 'Rad'} {'Yellowjacket' 'Ingra'} {'New_Wave' 'Dansen_Macabre'} {'New_Wave' 'The_Crimson_Ghost'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'Typhoid_Mary'} {'Typhoid_Mary' 'The_Crimson_Ghost'} {'Amy_Madison' 'Spider_Girl'} {'Queen_Bee' 'Spider_Girl'} {'Queen_Bee' 'Livewire'} {'Nyssa_Raatko' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Mothergod'} {'Amy_Madison' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Livewire'} {'Nyssa_Raatko' 'Mothergod'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Shimmer'} {'Snapdragon' 'Shimmer'} {'Snapdragon' 'Lady_Octopus'} {'Snapdragon' 'Jewelee'} {'Decay' 'Poundcakes'} {'Amy_Madison' 'Poundcakes'} {'Decay' 'Lady_Octopus'} {'Margaret_Love' 'Lady_Octopus'} {'Decay' 'Jewelee'} {'Amy_Madison' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Purgatori'} {'Talia_Al_Ghul' 'Windfall'} {'Lady_Death' 'Madame_Masque'} {'Spider_Girl' 'Madame_Masque'} {'Black_Mamba' 'Saturn_Queen'} {'Black_Mamba' 'Madame_Masque'} {'Spider_Girl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Purgatori'} {'Lady_Death' 'Windfall'} {'Spider_Girl' 'Purgatori'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Queen_Of_Fables'} {'Silk_Fever' 'Lady_Quark'} {'Windfall' 'Star_Sapphire'} {'Windfall' 'Queen_Of_Fables'} {'Silk_Fever' 'Star_Sapphire'} {'Silk_Fever' 'Bombshell'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Lady_Quark'} {'Windfall' 'Lady_Quark'} {'Bombshell' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Gru'} {'Superwoman' 'Lagomorph'} {'Silver_Swan' 'Duela_Dent'} {'Silver_Swan' 'Superwoman'} {'Superwoman' 'Lady_Vic'} {'Saturn_Queen' 'Lady_Vic'} {'Saturn_Queen' 'Duela_Dent'} {'Poundcakes' 'Lagomorph'} {'Silver_Swan' 'Lady_Vic'} {'Poundcakes' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Vic' 'Queen_Bee'} {'Deuce' 'Yellowjacket'} {'Prank' 'Amazing_Grace'} {'Bombshell' 'Yellowjacket'} {'Deuce' 'Amazing_Grace'} {'Lady_Vic' 'Lady_Death'} {'Deuce' 'Prank'} {'Bombshell' 'Amazing_Grace'} {'Prank' 'Queen_Bee'} {'Deuce' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Maxima' 'Sun_Girl'} {'Spider_Girl' 'Genevieve_Savidge'} {'Spider_Girl' 'Madame_Masque'} {'Fem_Paragon' 'Margaret_Love'} {'Maxima' 'Genevieve_Savidge'} {'Maxima' 'Madame_Masque'} {'Spider_Girl' 'Sun_Girl'} {'Devastation' 'Sun_Girl'} {'Devastation' 'Margaret_Love'} {'Fem_Paragon' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Animora'} {'Tala' 'Scandal'} {'Tala' 'Amazing_Grace'} {'Tala' 'Lafety_Le_Fei'} {'Tala' 'Lady_Quark'} {'Tala' 'Silver_Banshee'} {'Tala' 'Dansen_Macabre'} {'Tala' 'Jason_Kreis'} {'Tala' 'Cyborgirl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Golddigger'} {'Southpaw' 'Deuce'} {'Southpaw' 'Golddigger'} {'Fem_Paragon' 'Sun_Girl'} {'Rad' 'Sun_Girl'} {'Southpaw' 'Sun_Girl'} {'Rad' 'Lady_Clay'} {'Fem_Paragon' 'Bombshell'} {'Deuce' 'Lady_Clay'} {'Deuce' 'Bombshell'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Lady_Octopus'} {'Poison_Ivy' 'Lazara'} {'Lazara' 'Lagomorph'} {'Poison_Ivy' 'Tala'} {'Mephista' 'Lagomorph'} {'Mai_Shen' 'Lagomorph'} {'Mephista' 'Tala'} {'Mai_Shen' 'Lady_Octopus'} {'Mephista' 'Lady_Death'} {'Lazara' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Amazing_Grace'} {'Amazing_Grace' 'Bombshell'} {'Saturn_Queen' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Bombshell'} {'Tala' 'Shiv'} {'Tala' 'Trinity'} {'Saturn_Queen' 'Bombshell'} {'Amazing_Grace' 'Trinity'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Talia_Al_Ghul'} {'Cyborgirl' 'Snapdragon'} {'Talia_Al_Ghul' 'Cyborgirl'} {'Silver_Banshee' 'Deuce'} {'New_Wave' 'Mist'} {'Osira' 'Lady_Octopus'} {'Lady_Octopus' 'Silver_Banshee'} {'Snapdragon' 'Osira'} {'Mist' 'Zaladane'} {'Deuce' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Asbestos_Lady' 'Coachwhip'} {'Asbestos_Lady' 'Jewelee'} {'Asbestos_Lady' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} {'Blue_Snowman' 'Coachwhip'} {'Ingra' 'Coachwhip'} {'Lady_Shiva' 'Ingra'} {'Lady_Shiva' 'Titania'} {'Ingra' 'Shimmer'} {'Blue_Snowman' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Tigress'} {'Queen_Bee' 'Rampage'} {'Unicron' 'Rampage'} {'Lady_Octopus' 'Poundcakes'} {'Unicron' 'Queen_Of_Fables'} {'Abominatrix' 'Queen_Bee'} {'Abominatrix' 'Queen_Of_Fables'} {'Queen_Bee' 'Poundcakes'} {'Lady_Octopus' 'Tigress'} {'Abominatrix' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Jinx'} {'Scandal' 'Doctor_Cyber'} {'Scandal' 'Roulette'} {'Queen_Bee' 'Jinx'} {'Queen_Bee' 'Roulette'} {'Queen_Bee' 'Yellowjacket'} {'Margaret_Love' 'Yellowjacket'} {'Zaladane' 'Roulette'} {'Margaret_Love' 'Doctor_Cyber'} {'Zaladane' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Silver_Banshee'} {'Magenta' 'Amy_Madison'} {'Magenta' 'Fake_Thomas_Jefferson'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Magenta' 'Silver_Banshee'} {'Evinlea' 'Trinity'} {'Cyborgirl' 'Amy_Madison'} {'Cyborgirl' 'Trinity'} {'Evinlea' 'Fake_Thomas_Jefferson'} {'Deuce' 'Silver_Banshee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jewelee' 'Madame_Rouge'} {'Jewelee' 'Fem_Paragon'} {'Jewelee' 'Professor_Padraic_Ratigan'} {'Jewelee' 'Evinlea'} {'Jewelee' 'Fury_Leika'} {'Jewelee' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'The_Crimson_Ghost'} {'Syndrome' 'Lady_Vic'} {'Syndrome' 'Lady_Quark'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Lady_Vic'} {'Shimmer' 'Lady_Quark'} {'Lagomorph' 'The_Crimson_Ghost'} {'Amy_Madison' 'Syndrome'} {'Amy_Madison' 'Poison_Ivy'} {'Shimmer' 'Poison_Ivy'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Purgatori'} {'Nyssa_Raatko' 'Purgatori'} {'Nyssa_Raatko' 'Shimmer'} {'Abominatrix' 'Nyssa_Raatko'} {'Nyssa_Raatko' 'Bombshell'} {'Silver_Swan' 'Bombshell'} {'Abominatrix' 'Duela_Dent'} {'Abominatrix' 'Purgatori'} {'Windfall' 'Duela_Dent'} {'Windfall' 'Shimmer'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fury_Leika' 'The_Lightning'} {'Amy_Madison' 'The_Lightning'} {'The_Crimson_Ghost' 'Lady_Death'} {'Shimmer' 'Lady_Death'} {'Amy_Madison' 'Queen_Of_Fables'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Fury_Leika' 'Queen_Of_Fables'} {'Amy_Madison' 'Dansen_Macabre'} {'Fury_Leika' 'Dansen_Macabre'} {'Shimmer' 'The_Lightning'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Lady_Shiva'} {'Queen_Clea' 'Fake_Thomas_Jefferson'} {'Abominatrix' 'Hypnota'} {'Jewelee' 'Lady_Shiva'} {'Madame_Masque' 'Lady_Shiva'} {'Jewelee' 'Hypnota'} {'Queen_Clea' 'Hypnota'} {'Madame_Masque' 'Maxima'} {'Jewelee' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Maxima'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Southpaw' 'Silver_Banshee'} {'Animora' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Jason_Kreis'} {'Valentina' 'Professor_Padraic_Ratigan'} {'Animora' 'Jason_Kreis'} {'Animora' 'Silver_Banshee'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Titania'} {'Valentina' 'Jason_Kreis'} {'Valentina' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Saturn_Queen' 'Lazara'} {'Decay' 'Magpie'} {'Saturn_Queen' 'Decay'} {'Harley_Quinn' 'Magpie'} {'Bombshell' 'Silver_Banshee'} {'Decay' 'Lazara'} {'Decay' 'Madame_Masque'} {'Saturn_Queen' 'Silver_Banshee'} {'Bombshell' 'Madame_Masque'} {'Harley_Quinn' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Osira'} {'Jewelee' 'Dead_Bowie'} {'Scandal' 'Poison_Ivy'} {'Scandal' 'Osira'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Rad'} {'Silver_Banshee' 'Poison_Ivy'} {'Jewelee' 'Osira'} {'Scandal' 'Shiv'} {'Silver_Banshee' 'Rad'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Roulette'} {'Poison_Ivy' 'Mephista'} {'Amazing_Grace' 'Spider_Girl'} {'Poison_Ivy' 'Roulette'} {'Scandal' 'Lafety_Le_Fei'} {'Mephista' 'Lafety_Le_Fei'} {'Mephista' 'Spider_Girl'} {'Poison_Ivy' 'Princess_Python'} {'Poison_Ivy' 'Spider_Girl'} {'Amazing_Grace' 'Princess_Python'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Genevieve_Savidge'} {'Decay' 'Windfall'} {'Dansen_Macabre' 'Princess_Python'} {'Purgatori' 'Windfall'} {'Purgatori' 'Princess_Python'} {'Purgatori' 'Mist'} {'Dr_Horrible' 'Mist'} {'Dansen_Macabre' 'Genevieve_Savidge'} {'Decay' 'Mist'} {'Dr_Horrible' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Margaret_Love'} {'Typhoid_Mary' 'Sun_Girl'} {'Typhoid_Mary' 'Osira'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Margaret_Love'} {'Deuce' 'Sun_Girl'} {'Fake_Thomas_Jefferson' 'Tala'} {'Lashina' 'Sun_Girl'} {'Lashina' 'Tala'} {'Deuce' 'Osira'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Rad'} {'Lashina' 'Mothergod'} {'White_Rabbit' 'Asbestos_Lady'} {'Star_Sapphire' 'White_Rabbit'} {'Lafety_Le_Fei' 'Star_Sapphire'} {'Mothergod' 'Lafety_Le_Fei'} {'Fury_Leika' 'Lashina'} {'Asbestos_Lady' 'Golden_Glider'} {'Rad' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Abominatrix'} {'Lady_Death' 'Abominatrix'} {'Superwoman' 'Queen_Clea'} {'Coachwhip' 'Queen_Clea'} {'Superwoman' 'Tigress'} {'Coachwhip' 'Silk_Fever'} {'Rad' 'Lady_Death'} {'Rad' 'Tigress'} {'Rad' 'Silk_Fever'} {'Lady_Death' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Leather'} {'Zaladane' 'Star_Sapphire'} {'Ursa' 'Star_Sapphire'} {'Poison_Ivy' 'Ursa'} {'Lady_Death' 'Harley_Quinn'} {'Poison_Ivy' 'Evinlea'} {'Zaladane' 'Evinlea'} {'Ursa' 'Leather'} {'Lady_Death' 'Leather'} {'Poison_Ivy' 'Harley_Quinn'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Duela_Dent'} {'Margaret_Love' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Jason_Kreis'} {'Lagomorph' 'Jewelee'} {'Lagomorph' 'Fake_Thomas_Jefferson'} {'Lagomorph' 'Duela_Dent'} {'Madame_Masque' 'Jason_Kreis'} {'Jewelee' 'Decay'} {'Margaret_Love' 'Decay'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Jewelee'} {'Fury_Leika' 'Queen_Clea'} {'Jason_Kreis' 'Unicron'} {'Fury_Leika' 'Lagomorph'} {'Fury_Leika' 'Jewelee'} {'Abominatrix' 'Lagomorph'} {'Black_Mamba' 'Lagomorph'} {'Black_Mamba' 'Unicron'} {'Abominatrix' 'Queen_Clea'} {'Abominatrix' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Golden_Glider'} {'Osira' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Golden_Glider'} {'Sun_Girl' 'Lady_Vic'} {'Queen_Bee' 'Margaret_Love'} {'Sun_Girl' 'Golden_Glider'} {'Queen_Bee' 'Lady_Vic'} {'Sun_Girl' 'Madame_Masque'} {'Sun_Girl' 'Scandal'} {'Queen_Bee' 'Scandal'} {'Sun_Girl' 'Margaret_Love'} {'Queen_Bee' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Mothergod'} {'Lashina' 'Devastation'} {'Lashina' 'Decay'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Doctor_Cyber' 'Queen_Clea'} {'Ingra' 'Spider_Girl'} {'Ingra' 'Sun_Girl'} {'Doctor_Cyber' 'Spider_Girl'} {'New_Wave' 'Queen_Clea'} {'Dansen_Macabre' 'Tigress'} {'Dansen_Macabre' 'Spider_Girl'} {'New_Wave' 'Spider_Girl'} {'Doctor_Cyber' 'Sun_Girl'} {'New_Wave' 'Tigress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Southpaw'} {'Coachwhip' 'The_Crimson_Ghost'} {'Abominatrix' 'The_Crimson_Ghost'} {'Tala' 'Hypnota'} {'Madame_Masque' 'The_Crimson_Ghost'} {'Tala' 'New_Wave'} {'Tala' 'The_Crimson_Ghost'} {'Abominatrix' 'Hypnota'} {'Madame_Masque' 'Southpaw'} {'Coachwhip' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Emerald_Empress'} {'Golddigger' 'Prank'} {'Saturn_Queen' 'Prank'} {'Golddigger' 'Nyssa_Raatko'} {'Black_Mamba' 'Hypnota'} {'Saturn_Queen' 'Nyssa_Raatko'} {'Fury_Leika' 'Nyssa_Raatko'} {'Fury_Leika' 'Prank'} {'Fury_Leika' 'Hypnota'} {'Saturn_Queen' 'Emerald_Empress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'New_Wave'} {'Dead_Bowie' 'Typhoid_Mary'} {'Queen_Clea' 'Typhoid_Mary'} {'Lotso' 'Lagomorph'} {'Lotso' 'Southpaw'} {'Decay' 'New_Wave'} {'Lotso' 'New_Wave'} {'Dead_Bowie' 'Lotso'} {'Queen_Clea' 'Southpaw'} {'Decay' 'Lagomorph'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Eviless' 'Abominatrix'} {'Prank' 'Shimmer'} {'Rampage' 'Syndrome'} {'Queen_Bee' 'Syndrome'} {'Prank' 'Queen_Clea'} {'Prank' 'Syndrome'} {'Queen_Bee' 'Abominatrix'} {'Eviless' 'Shimmer'} {'Rampage' 'Eviless'} {'Rampage' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Professor_Padraic_Ratigan'} {'Decay' 'Silver_Swan'} {'Queen_Clea' 'Black_Mamba'} {'Poundcakes' 'King_Ghidorah'} {'Poundcakes' 'Silver_Swan'} {'Poundcakes' 'Tala'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Poundcakes' 'Black_Mamba'} {'Decay' 'King_Ghidorah'} {'Tala' 'Silver_Swan'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Bombshell'} {'Tala' 'Mai_Shen'} {'Tala' 'Madame_Rouge'} {'Tala' 'Spider_Girl'} {'Tala' 'Dr_Horrible'} {'Tala' 'Madame_Masque'} {'Tala' 'Lazara'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Lady_Clay'} {'Livewire' 'Queen_Clea'} {'New_Wave' 'Queen_Clea'} {'New_Wave' 'Lady_Clay'} {'Livewire' 'Rad'} {'New_Wave' 'Rad'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Plastique' 'Cyborgirl'} {'Plastique' 'Tigress'} {'Plastique' 'Superwoman'} {'Plastique' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Animora'} {'Princess_Python' 'Shiv'} {'Sun_Girl' 'Typhoid_Mary'} {'New_Wave' 'Animora'} {'Professor_Padraic_Ratigan' 'Lady_Clay'} {'New_Wave' 'Lady_Clay'} {'Sun_Girl' 'Shiv'} {'New_Wave' 'Typhoid_Mary'} {'Princess_Python' 'Lady_Clay'} {'Sun_Girl' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Sun_Girl' 'Golddigger'} {'Jewelee' 'Golddigger'} {'Zaladane' 'Deuce'} {'Sun_Girl' 'Deuce'} {'Mai_Shen' 'Golddigger'} {'Jewelee' 'Lazara'} {'Mai_Shen' 'Lazara'} {'Sun_Girl' 'Lazara'} {'Zaladane' 'Lashina'} {'Jewelee' 'Lashina'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Amazing_Grace'} {'Maxima' 'Ursa'} {'Queen_Bee' 'Gru'} {'Jason_Kreis' 'Gru'} {'Ursa' 'Lady_Death'} {'Maxima' 'Amazing_Grace'} {'Queen_Bee' 'Tala'} {'Ursa' 'Tala'} {'Jason_Kreis' 'Lady_Death'} {'Maxima' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lagomorph' 'Doctor_Cyber'} {'Mothergod' 'Roulette'} {'Doctor_Cyber' 'Dr_Evil'} {'Roulette' 'Lagomorph'} {'Jewelee' 'Magenta'} {'Fury_Leika' 'Mothergod'} {'Dr_Evil' 'Jewelee'} {'Magenta' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Fury_Leika'} {'Fury_Leika' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Eviless'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Duela_Dent'} {'Scandal' 'Duela_Dent'} {'Emerald_Empress' 'Eviless'} {'Syndrome' 'Yellowjacket'} {'Syndrome' 'Eviless'} {'Scandal' 'Yellowjacket'} {'Emerald_Empress' 'Queen_Bee'} {'Emerald_Empress' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Blue_Snowman'} {'Lazara' 'Margaret_Love'} {'Lazara' 'Rad'} {'Lazara' 'Syndrome'} {'Lazara' 'Shiv'} {'Lazara' 'Spider_Girl'} {'Lazara' 'Silver_Swan'} {'Lazara' 'Coachwhip'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Valentina' 'Asbestos_Lady'} {'Valentina' 'Doctor_Cyber'} {'Ingra' 'Doctor_Cyber'} {'Scandal' 'Asbestos_Lady'} {'Ingra' 'Professor_Padraic_Ratigan'} {'Valentina' 'Yellowjacket'} {'Lotso' 'Professor_Padraic_Ratigan'} {'Lotso' 'Yellowjacket'} {'Lotso' 'Asbestos_Lady'} {'Scandal' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Devastation' 'Hypnota'} {'Purgatori' 'Livewire'} {'Evinlea' 'Hypnota'} {'Evinlea' 'Lazara'} {'Devastation' 'Lazara'} {'Nyssa_Raatko' 'Duela_Dent'} {'Evinlea' 'Livewire'} {'Nyssa_Raatko' 'Hypnota'} {'Purgatori' 'Hypnota'} {'Devastation' 'Duela_Dent'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shimmer' 'Saturn_Queen'} {'Shimmer' 'Lafety_Le_Fei'} {'Golden_Glider' 'Saturn_Queen'} {'Shimmer' 'Cyborgirl'} {'Poison_Ivy' 'Lafety_Le_Fei'} {'Zaladane' 'Cyborgirl'} {'Golden_Glider' 'Cyborgirl'} {'Poison_Ivy' 'Snapdragon'} {'Golden_Glider' 'Snapdragon'} {'Zaladane' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Lazara'} {'Saturn_Queen' 'Golden_Glider'} {'Queen_Of_Fables' 'Golden_Glider'} {'Fury_Leika' 'Duela_Dent'} {'Dr_Horrible' 'Golden_Glider'} {'Fury_Leika' 'Ingra'} {'Queen_Of_Fables' 'Duela_Dent'} {'Fury_Leika' 'Dr_Horrible'} {'Saturn_Queen' 'Ingra'} {'Dr_Horrible' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Abominatrix'} {'New_Wave' 'Mothergod'} {'Hypnota' 'Mothergod'} {'Harley_Quinn' 'Tigress'} {'Harley_Quinn' 'Hypnota'} {'Lady_Vic' 'Tigress'} {'New_Wave' 'Trinity'} {'New_Wave' 'Abominatrix'} {'Harley_Quinn' 'Trinity'} {'Lady_Vic' 'Abominatrix'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-18T04:20:57.000Z","updated_at":"2013-09-18T04:34:45.000Z","published_at":"2013-09-18T04:34:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1942,"title":"GJam 2014 China Rd B: Party","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p1 GJam 2014 China Party\u003e. Small Case.\r\n\r\nThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\r\n\r\nThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\r\n\r\n\r\n*Input:* [M], Bx4 matrix (B\u003c=100). Total B area of \u003c=1000\r\n\r\n*Output:* [x,y,d] where [x,y] is Party House and d is everyone's total distance\r\n\r\n*Examples:*\r\n\r\n  M   [x y d]\r\n  [0 0 2 2] [1 1 12]\r\n  [-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]\r\n\r\n \r\n*Contest Performance:* Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\r\n\r\n\r\n*Commentary:*\r\n\r\n  1) The small can be solved by brute force since fewer than 1000 points require evaluation.\r\n  2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\r\n  3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p1\"\u003eGJam 2014 China Party\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\u003c/p\u003e\u003cp\u003eThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M], Bx4 matrix (B\u0026lt;=100). Total B area of \u0026lt;=1000\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [x,y,d] where [x,y] is Party House and d is everyone's total distance\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eM   [x y d]\r\n[0 0 2 2] [1 1 12]\r\n[-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\u003c/p\u003e\u003cp\u003e\u003cb\u003eCommentary:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1) The small can be solved by brute force since fewer than 1000 points require evaluation.\r\n2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\r\n3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.\r\n\u003c/pre\u003e","function_template":"function [x,y,d]=Party_CH(p)\r\n x=0;\r\n y=0;\r\n d=0;\r\nend","test_suite":"%%\r\ntic\r\nzm=[0 0 30 30 ];\r\nvexp=[15 15 14880];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[0 0 29 29 ];\r\nvexp=[14 14 13500];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[0 1 0 100 ;0 -100 0 -1 ;-100 0 -1 0 ;1 0 100 0 ];\r\nvexp=[-1 0 20400];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[616 34 616 34 ;78 -828 78 -828 ;-762 -671 -762 -671 ;-199 -960 -199 -960 ;427 -575 427 -575 ;448 798 448 798 ;-819 -939 -819 -939 ;852 -564 852 -564 ;-145 281 -145 281 ;694 828 694 828 ;-278 963 -278 963 ;47 813 47 813 ;-393 24 -393 24 ;198 -257 198 -257 ;-393 -177 -393 -177 ;596 237 596 237 ;-678 760 -678 760 ;-180 92 -180 92 ;-590 995 -590 995 ;27 -946 27 -946 ;459 799 459 799 ;-491 -739 -491 -739 ;-691 -922 -691 -922 ;-38 185 -38 185 ;495 -471 495 -471 ;-850 532 -850 532 ;-360 798 -360 798 ;589 -104 589 -104 ;-492 -364 -492 -364 ;-797 415 -797 415 ;105 319 105 319 ;-879 -347 -879 -347 ;-795 172 -795 172 ;529 831 529 831 ;357 -199 357 -199 ;621 959 621 959 ;-475 125 -475 125 ;769 884 769 884 ;172 -706 172 -706 ;618 222 618 222 ;989 734 989 734 ;-273 478 -273 478 ;-548 930 -548 930 ;-634 889 -634 889 ;599 879 599 879 ;836 834 836 834 ;463 901 463 901 ;972 -903 972 -903 ;-319 495 -319 495 ;-727 -368 -727 -368 ;-685 -487 -685 -487 ;834 902 834 902 ;-114 -961 -114 -961 ;-984 193 -984 193 ;-388 867 -388 867 ;712 232 712 232 ;-750 19 -750 19 ;855 -455 855 -455 ;857 996 857 996 ;493 -722 493 -722 ;-582 426 -582 426 ;-824 848 -824 848 ;479 -993 479 -993 ;-976 -820 -976 -820 ;208 443 208 443 ;919 745 919 745 ;-460 -548 -460 -548 ;375 556 375 556 ;-572 980 -572 980 ;345 -411 345 -411 ;-275 613 -275 613 ;718 -895 718 -895 ;-838 -892 -838 -892 ;-241 836 -241 836 ;336 -878 336 -878 ;891 -355 891 -355 ;-986 989 -986 989 ;629 856 629 856 ;-779 787 -779 787 ;970 711 970 711 ;-578 -163 -578 -163 ;779 735 779 735 ;572 -203 572 -203 ;237 192 237 192 ;-427 -213 -427 -213 ;-338 9 -338 9 ;-905 45 -905 45 ;64 -35 64 -35 ;476 -560 476 -560 ;-370 24 -370 24 ;-836 487 -836 487 ;53 50 53 50 ;540 -897 540 -897 ;-179 -8 -179 -8 ;-979 227 -979 227 ;528 257 528 257 ;-876 615 -876 615 ;-342 -895 -342 -895 ;802 -744 802 -744 ;-458 -395 -458 -395 ];\r\nvexp=[-38 185 110298];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[241 -635 241 -635 ;75 -432 75 -432 ;-522 -517 -522 -517 ;-589 -931 -589 -931 ;-903 447 -903 447 ;-555 757 -555 757 ;-584 19 -584 19 ;420 -458 420 -458 ;-127 517 -127 517 ;-417 158 -417 158 ;542 703 542 703 ;865 -531 865 -531 ;-592 -191 -591 -190 ;570 467 570 467 ;-326 -668 -325 -668 ;197 516 197 516 ;238 -442 239 -441 ;-339 -71 -338 -70 ;255 -450 256 -450 ;408 -232 409 -231 ;302 -765 303 -764 ;-575 687 -575 688 ;-352 -651 -351 -650 ;-483 -96 -483 -95 ;285 170 286 170 ;-349 -660 -348 -659 ;518 -419 518 -418 ;555 -506 556 -506 ;900 97 901 98 ;-969 -258 -969 -257 ;-514 -199 -513 -198 ;-422 -197 -422 -197 ;-852 -115 -852 -114 ;166 -651 166 -650 ;628 -930 629 -930 ;-53 853 -52 853 ;484 503 484 504 ;-912 -976 -911 -975 ;-386 -562 -386 -561 ;521 946 521 947 ;717 -799 718 -797 ;-463 -348 -461 -348 ;-14 167 -13 169 ;-346 -677 -344 -675 ;-675 176 -673 179 ;894 807 896 811 ];\r\nvexp=[-338 -71 136630];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[468 377 468 377 ;839 -105 839 -105 ;-871 487 -871 487 ;-307 651 -307 651 ;135 -929 135 -929 ;-411 -829 -411 -829 ;745 -64 745 -64 ;336 784 336 784 ;-875 -84 -875 -84 ;-723 -736 -723 -736 ;701 -818 701 -818 ;-239 210 -239 210 ;-15 614 -15 614 ;362 225 362 225 ;894 443 894 443 ;-352 -303 -352 -303 ;-287 254 -287 255 ;-739 -960 -739 -960 ;110 28 110 28 ;540 434 541 435 ;-103 -962 -102 -962 ;913 -274 913 -273 ;835 -730 836 -730 ;544 866 545 867 ;-97 -358 -96 -358 ;-490 -319 -490 -319 ;-122 700 -122 702 ;37 902 39 902 ;103 266 104 266 ;-581 -714 -579 -710 ];\r\nvexp=[-97 -358 62565];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[28 122 30 124 ;-85 -609 -83 -607 ;763 19 764 20 ;612 -204 613 -203 ;-521 792 -520 794 ;-782 193 -781 195 ;-662 149 -661 151 ;-561 -568 -559 -567 ;-190 -897 -189 -896 ;-725 -317 -723 -315 ;704 -957 706 -956 ;-329 -967 -328 -966 ;-564 -639 -563 -637 ;-603 -86 -601 -84 ;-165 548 -164 550 ;-197 -150 -195 -148 ;-379 -581 -377 -579 ;401 -684 403 -683 ;546 -194 548 -192 ;267 573 268 574 ;-634 288 -632 290 ;593 857 595 858 ;78 -240 80 -238 ;800 981 801 982 ;473 472 474 473 ;-894 469 -893 471 ;582 347 583 349 ;516 189 518 190 ;333 -865 335 -864 ;-192 507 -191 508 ;-310 534 -309 536 ;-783 -487 -781 -486 ;-915 -696 -914 -695 ;-57 872 -56 874 ;717 -423 718 -422 ;509 -810 510 -809 ;-186 -335 -184 -333 ;-403 629 -401 631 ;-598 104 -596 106 ;-149 -210 -147 -208 ;920 911 922 913 ;819 -934 821 -932 ;518 -328 520 -326 ;-630 429 -628 431 ;348 -766 350 -764 ;242 -300 244 -298 ;387 -191 389 -189 ;-19 -871 -17 -869 ;383 723 385 725 ;-742 -327 -740 -325 ;-181 -43 -179 -41 ;799 -46 801 -44 ;729 -373 731 -371 ;-863 -16 -861 -14 ;998 -444 1000 -442 ;242 962 244 964 ;-249 -412 -247 -410 ;116 -14 118 -12 ;871 -455 873 -453 ;669 492 671 494 ;877 -447 879 -445 ;990 -938 992 -936 ;43 522 45 524 ;-70 45 -68 47 ;808 8 810 10 ;-879 -310 -877 -308 ;979 79 981 81 ;-695 202 -693 204 ;-650 469 -648 471 ;690 -624 692 -622 ;-169 -43 -167 -41 ;-81 723 -78 726 ;-789 968 -787 970 ;-913 698 -912 701 ;-597 -970 -595 -968 ;693 -79 694 -77 ;41 847 43 849 ;39 -728 41 -725 ;422 470 425 473 ;-518 -883 -517 -880 ;-858 784 -855 786 ;-246 311 -245 312 ;194 -715 197 -712 ;-370 -868 -369 -865 ;377 174 380 176 ;-697 223 -694 225 ;-489 -957 -486 -955 ;-585 -164 -583 -162 ;-283 -880 -281 -878 ;-141 -729 -140 -728 ;835 447 838 450 ;-424 -612 -423 -610 ;-280 376 -276 377 ;-351 -393 -350 -392 ;-793 -436 -788 -434 ;-548 -180 -547 -175 ;826 775 831 778 ;-664 -604 -658 -602 ;987 -65 988 -57 ;-540 -796 -533 -795 ];\r\nvexp=[-167 -43 874364];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-291 955 -289 956 ;276 -710 278 -708 ;-724 283 -722 285 ;-850 588 -848 589 ;625 -511 627 -509 ;-530 -994 -529 -993 ;-312 -655 -311 -654 ;86 -269 87 -267 ;565 -521 566 -520 ;438 320 440 321 ;-330 985 -328 986 ;-408 -942 -407 -940 ;755 792 756 794 ;847 -794 848 -793 ;436 -1 438 0 ;206 -637 208 -635 ;516 544 518 546 ;77 -200 78 -199 ;-618 276 -616 277 ;380 868 382 870 ;-664 284 -663 286 ;-526 929 -524 931 ;743 -555 745 -553 ;331 145 333 146 ;98 124 99 126 ;220 -661 222 -660 ;-92 498 -90 500 ;646 -552 647 -550 ;-531 -850 -529 -849 ;573 -80 574 -79 ;-317 299 -315 300 ;-963 713 -962 714 ;411 818 412 819 ;-99 -503 -97 -501 ;279 599 280 601 ;793 -237 794 -235 ;-41 -876 -39 -875 ;-550 -478 -549 -477 ;-107 820 -105 822 ;657 886 659 888 ;-460 684 -458 686 ;-80 455 -78 457 ;-779 -528 -777 -526 ;-829 719 -827 721 ;-760 -716 -758 -714 ;39 342 41 344 ;254 447 256 449 ;-272 -705 -270 -703 ;-900 507 -898 509 ;498 327 500 329 ;-669 168 -667 170 ;519 -367 521 -365 ;-674 323 -672 325 ;-724 519 -722 521 ;52 -596 54 -594 ;897 -724 899 -722 ;6 -387 8 -385 ;62 808 64 810 ;-84 -749 -82 -747 ;-475 -379 -473 -377 ;-467 -819 -465 -817 ;-130 232 -128 234 ;218 862 220 864 ;-206 339 -204 341 ;821 658 823 660 ;261 61 263 63 ;-704 869 -702 871 ;788 -490 790 -488 ;482 67 484 69 ;-328 -781 -326 -779 ;150 -117 152 -115 ;946 -90 948 -88 ;-68 477 -65 479 ;-704 915 -701 918 ;979 -761 980 -759 ;328 705 331 708 ;969 951 971 953 ;-638 991 -637 993 ;-621 120 -619 121 ;-546 651 -545 654 ;217 550 218 551 ;-743 196 -740 199 ;-591 847 -588 849 ;-48 -769 -46 -766 ;678 424 680 425 ;-250 268 -248 270 ;964 -389 966 -386 ;193 -818 195 -815 ;-803 107 -801 109 ;16 -725 19 -722 ;-721 -274 -720 -273 ;14 666 17 668 ;-822 933 -820 936 ;-895 -416 -894 -412 ;821 -329 824 -326 ;382 68 387 68 ;590 282 595 284 ;97 -310 103 -307 ;147 933 150 933 ;-772 -42 -765 -33 ];\r\nvexp=[-128 232 914624];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-987 -105 -985 -103 ;-22 -655 -20 -653 ;-622 412 -621 414 ;-526 641 -524 642 ;-694 573 -692 575 ;268 -697 269 -695 ;366 544 368 545 ;648 218 649 220 ;314 443 316 445 ;-589 354 -588 355 ;60 544 62 546 ;21 -444 23 -442 ;175 -224 176 -223 ;-915 -696 -914 -695 ;-417 766 -415 767 ;-874 -599 -873 -598 ;606 921 607 922 ;-672 562 -671 564 ;-17 39 -16 40 ;-708 632 -707 633 ;823 -170 825 -168 ;996 -372 997 -371 ;961 -169 962 -167 ;572 577 573 579 ;53 345 55 347 ;569 453 570 454 ;716 753 718 754 ;-803 -873 -802 -872 ;-110 940 -108 942 ;-943 841 -941 842 ;186 997 187 999 ;-107 388 -105 390 ;193 -54 195 -52 ;-231 -916 -230 -914 ;-962 749 -960 750 ;794 -458 796 -457 ;259 -909 261 -908 ;-719 65 -718 67 ;242 -481 244 -479 ;-528 -223 -526 -221 ;283 955 285 957 ;-888 946 -886 948 ;847 -707 849 -705 ;757 -814 759 -812 ;-940 -941 -938 -939 ;2 -176 4 -174 ;665 -708 667 -706 ;656 170 658 172 ;494 949 496 951 ;994 802 996 804 ;-65 785 -63 787 ;147 684 149 686 ;-488 807 -486 809 ;-875 462 -873 464 ;-152 253 -150 255 ;114 247 116 249 ;760 -206 762 -204 ;-204 569 -202 571 ;89 -752 91 -750 ;-464 -975 -462 -973 ;-783 -545 -781 -543 ;75 -251 77 -249 ;471 -462 473 -460 ;-126 -169 -124 -167 ;-311 615 -309 617 ;-398 -727 -396 -725 ;834 -915 836 -913 ;-87 -21 -85 -19 ;-301 918 -299 920 ;-740 -366 -738 -364 ;24 47 26 49 ;-929 -761 -927 -759 ;-863 -36 -861 -33 ;541 604 543 606 ;-279 -423 -276 -422 ;-620 -116 -619 -114 ;-145 571 -143 573 ;-638 133 -636 136 ;-885 546 -882 549 ;-625 -11 -622 -8 ;-610 -369 -609 -367 ;80 -655 83 -652 ;-398 -183 -395 -182 ;-71 -953 -69 -951 ;-767 939 -766 942 ;-763 -362 -760 -360 ;46 -897 47 -895 ;23 -437 25 -436 ;550 -440 553 -439 ;-660 178 -658 182 ;851 -919 853 -917 ;124 437 125 438 ;-414 -524 -411 -520 ;881 797 884 799 ;-73 -303 -68 -301 ;-373 -585 -369 -584 ;-239 963 -237 968 ;453 965 456 968 ;-742 875 -738 877 ;-894 -954 -884 -944 ];\r\nvexp=[-126 -168 1055075];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-648 -872 -646 -871 ;739 270 741 272 ;-847 -333 -845 -331 ;-510 -174 -508 -173 ;182 -353 183 -352 ;-573 277 -571 278 ;297 245 299 247 ;-223 818 -221 819 ;886 57 887 58 ;888 -773 889 -772 ;-593 513 -591 514 ;-587 -107 -585 -106 ;-564 40 -563 41 ;234 -624 236 -622 ;-82 902 -81 903 ;222 851 223 852 ;-726 476 -724 478 ;-392 -160 -390 -158 ;-153 -484 -152 -483 ;-522 -962 -520 -960 ;66 -926 68 -925 ;-535 28 -534 29 ;-603 -292 -602 -291 ;-981 -471 -980 -469 ;-367 865 -365 867 ;-445 -75 -443 -73 ;300 -40 301 -38 ;-329 -287 -328 -286 ;554 935 556 936 ;593 -932 594 -930 ;206 873 208 875 ;335 574 336 575 ;296 154 298 155 ;323 -423 325 -422 ;-144 472 -143 474 ;-284 211 -282 213 ;-289 -996 -287 -994 ;167 574 168 575 ;65 803 67 805 ;264 173 266 175 ;-820 -637 -818 -635 ;-897 813 -895 815 ;60 -524 62 -522 ;652 850 654 852 ;-837 57 -835 59 ;31 -96 33 -94 ;-607 540 -605 542 ;-240 794 -238 796 ;386 453 388 455 ;-421 -468 -419 -466 ;-838 -196 -836 -194 ;248 -366 250 -364 ;7 -933 9 -931 ;578 742 580 744 ;-634 -828 -632 -826 ;678 16 680 18 ;706 -163 708 -161 ;228 771 230 773 ;-440 -564 -438 -562 ;228 -606 230 -604 ;-361 652 -359 654 ;-608 -741 -606 -739 ;-926 42 -924 44 ;984 147 986 149 ;-132 -334 -130 -332 ;492 870 494 872 ;-470 523 -468 525 ;440 983 442 985 ;-68 -14 -66 -12 ;652 970 654 972 ;-591 -410 -589 -408 ;-252 -573 -250 -571 ;-639 -424 -637 -421 ;-306 -234 -303 -231 ;-720 81 -718 83 ;-645 845 -642 846 ;-938 507 -936 508 ;646 122 648 125 ;-76 864 -73 867 ;777 -142 778 -141 ;267 -756 269 -755 ;-151 -11 -150 -10 ;-568 -929 -567 -926 ;753 -830 756 -828 ;-205 -663 -202 -661 ;329 368 330 369 ;-402 -682 -399 -679 ;-649 463 -647 465 ;995 538 999 539 ;107 817 111 818 ;-546 -441 -544 -437 ;-856 920 -854 921 ;-587 -483 -584 -479 ;717 -641 719 -639 ;-892 -134 -890 -132 ;-300 -887 -296 -883 ;605 -228 607 -224 ;-93 -994 -90 -994 ;-421 -56 -414 -50 ;76 -592 80 -583 ];\r\nvexp=[-303 -231 855861];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-18T01:44:26.000Z","updated_at":"2013-10-18T02:33:24.000Z","published_at":"2013-10-18T02:33:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Party\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M], Bx4 matrix (B\u0026lt;=100). Total B area of \u0026lt;=1000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [x,y,d] where [x,y] is Party House and d is everyone's total distance\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[M   [x y d]\\n[0 0 2 2] [1 1 12]\\n[-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCommentary:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) The small can be solved by brute force since fewer than 1000 points require evaluation.\\n2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\\n3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":1902,"title":"GJam 2014 China Rd A: Read Phone Number (Large)","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number\u003e. Large Case.\r\n\r\nThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u003e 10 repeats occurs in the Large Data set.\r\n\r\n\r\n*Input:* [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\r\n\r\n*Output:* Text, a string of the reading based upon segments\r\n\r\n*Examples:*\r\n\r\n  [Number,Segments]  [Text]\r\n    ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n    ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n    \r\n\r\n*Contest Performance:* Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard\"\u003eGJam 2014 China Read Phone Number\u003c/a\u003e. Large Case.\u003c/p\u003e\u003cp\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u003e 10 repeats occurs in the Large Data set.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Text, a string of the reading based upon segments\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[Number,Segments]  [Text]\r\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\u003c/p\u003e","function_template":"function Text = Phone_CH(str,v) %\r\n Text='';\r\nend\r\n\r\n% One method for inserting strings from a cell array\r\nfunction valuestr=Phone_number(x)\r\n valuecell={'zero' 'one' 'two' 'three' 'four' 'five' 'six' 'seven' 'eight' 'nine'};\r\n valuestr=valuecell{x+1};\r\nend\r\n\r\nfunction qtystr=Phone_qty(x)\r\n qtycell={'' 'double' 'triple' 'quadruple' 'quintuple' 'sextuple' 'septuple' 'octuple' 'nonuple' 'decuple'};\r\n qtystr=qtycell{x};\r\nend","test_suite":"%%\r\ntic\r\nzstr='0000000000';\r\nzv=[10 ];\r\nvexp='decuple zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';\r\nzv=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';\r\nzv=[1 2 3 4 5 6 7 8 9 10 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one double one triple one quadruple one quintuple one sextuple one septuple one octuple one nonuple one decuple one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6701604014038409645317871541814818042765712319652041768196456846465134589785405932716870450845696942';\r\nzv=[18 53 27 2 ];\r\nvexp='six seven zero one six zero four zero one four zero three eight four zero nine six four five three one seven eight seven one five four one eight one four eight one eight zero four two seven six five seven one two three one nine six five two zero four one seven six eight one nine six four five six eight four six four six five one three four five eight nine seven eight five four zero five nine three two seven one six eight seven zero four five zero eight four five six nine six nine four two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7948353719781965623468317824953101456187089254894578076436069073736717501261569457261541306241739435';\r\nzv=[67 24 2 7 ];\r\nvexp='seven nine four eight three five three seven one nine seven eight one nine six five six two three four six eight three one seven eight two four nine five three one zero one four five six one eight seven zero eight nine two five four eight nine four five seven eight zero seven six four three six zero six nine zero seven three seven three six seven one seven five zero one two six one five six nine four five seven two six one five four one three zero six two four one seven three nine four three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4278368013428262027948460184086902458706181428387549853031942964639495026306271567618562640383239305';\r\nzv=[99 1 ];\r\nvexp='four two seven eight three six eight zero one three four two eight two six two zero two seven nine four eight four six zero one eight four zero eight six nine zero two four five eight seven zero six one eight one four two eight three eight seven five four nine eight five three zero three one nine four two nine six four six three nine four nine five zero two six three zero six two seven one five six seven six one eight five six two six four zero three eight three two three nine three zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9464820841980697178401716583034690432403485084358767843859195212565106243810816790591659815789420929';\r\nzv=[23 54 6 3 12 2 ];\r\nvexp='nine four six four eight two zero eight four one nine eight zero six nine seven one seven eight four zero one seven one six five eight three zero three four six nine zero four three two four zero three four eight five zero eight four three five eight seven six seven eight four three eight five nine one nine five two one two five six five one zero six two four three eight one zero eight one six seven nine zero five nine one six five nine eight one five seven eight nine four two zero nine two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1239417614204605186382638961928216123515856310156537949350505058426185417564013152480630168120385902';\r\nzv=[9 20 68 3 ];\r\nvexp='one two three nine four one seven six one four two zero four six zero five one eight six three eight two six three eight nine six one nine two eight two one six one two three five one five eight five six three one zero one five six five three seven nine four nine three five zero five zero five zero five eight four two six one eight five four one seven five six four zero one three one five two four eight zero six three zero one six eight one two zero three eight five nine zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5705658716138187897089238034926826854932909071213569698472175680807126039351827987289593273256549721';\r\nzv=[23 49 6 21 1 ];\r\nvexp='five seven zero five six five eight seven one six one three eight one eight seven eight nine seven zero eight nine two three eight zero three four nine two six eight two six eight five four nine three two nine zero nine zero seven one two one three five six nine six nine eight four seven two one seven five six eight zero eight zero seven one two six zero three nine three five one eight two seven nine eight seven two eight nine five nine three two seven three two five six five four nine seven two one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5496587298081832124197901212051639570370452063174067189290683532890857290152921651676725291709858268';\r\nzv=[84 12 1 1 2 ];\r\nvexp='five four nine six five eight seven two nine eight zero eight one eight three two one two four one nine seven nine zero one two one two zero five one six three nine five seven zero three seven zero four five two zero six three one seven four zero six seven one eight nine two nine zero six eight three five three two eight nine zero eight five seven two nine zero one five two nine two one six five one six seven six seven two five two nine one seven zero nine eight five eight two six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6046727253505468724903978269465059754529308478929632170216741630304035454232162816186394257019613649';\r\nzv=[21 13 16 7 19 17 7 ];\r\nvexp='six zero four six seven two seven two five three five zero five four six eight seven two four nine zero three nine seven eight two six nine four six five zero five nine seven five four five two nine three zero eight four seven eight nine two nine six three two one seven zero two one six seven four one six three zero three zero four zero three five four five four two three two one six two eight one six one eight six three nine four two five seven zero one nine six one three six four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9709324183067148146829125827086805141425714050976780595295963087561738097976891946025083503270131874';\r\nzv=[19 40 15 25 1 ];\r\nvexp='nine seven zero nine three two four one eight three zero six seven one four eight one four six eight two nine one two five eight two seven zero eight six eight zero five one four one four two five seven one four zero five zero nine seven six seven eight zero five nine five two nine five nine six three zero eight seven five six one seven three eight zero nine seven nine seven six eight nine one nine four six zero two five zero eight three five zero three two seven zero one three one eight seven four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5935294040195821091284183159414635231362074061646489573631084519431981565623091096745285242356956132';\r\nzv=[49 2 47 2 ];\r\nvexp='five nine three five two nine four zero four zero one nine five eight two one zero nine one two eight four one eight three one five nine four one four six three five two three one three six two zero seven four zero six one six four six four eight nine five seven three six three one zero eight four five one nine four three one nine eight one five six five six two three zero nine one zero nine six seven four five two eight five two four two three five six nine five six one three two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68420979858341861054645438226544';\r\nzv=[9 14 9 ];\r\nvexp='six eight four two zero nine seven nine eight five eight three four one eight six one zero five four six four five four three eight double two six five double four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='95673537815030404160202058788558325698592015367995915420';\r\nzv=[3 12 11 12 7 10 1 ];\r\nvexp='nine five six seven three five three seven eight one five zero three zero four zero four one six zero two zero two zero five eight seven double eight double five eight three two five six nine eight five nine two zero one five three six seven double nine five nine one five four two zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2917155597708068980673145819211425430909609607407685919790633007543533613';\r\nzv=[8 4 12 5 15 4 8 12 5 ];\r\nvexp='two nine one seven one triple five nine double seven zero eight zero six eight nine eight zero six seven three one four five eight one nine two double one four two five four three zero nine zero nine six zero nine six zero seven four zero seven six eight five nine one nine seven nine zero six double three double zero seven five four three five double three six one three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7898081583437702364634490213008907725195448';\r\nzv=[10 12 6 12 2 1 ];\r\nvexp='seven eight nine eight zero eight one five eight three four three double seven zero two three six four six three four four nine zero two one three double zero eight nine zero double seven two five one nine five double four eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='437260442554900624648844197922288914270446';\r\nzv=[11 6 9 6 3 1 3 2 1 ];\r\nvexp='four three seven two six zero double four two double five four nine double zero six two four six four double eight double four one nine seven nine triple two eight eight nine one four two seven zero double four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2789225013517271635527397201226697731452904643719381232152395186872927418002375223547884014744';\r\nzv=[5 9 7 2 15 1 6 4 8 9 9 3 7 5 4 ];\r\nvexp='two seven eight nine two two five zero one three five one seven two seven one six three double five two seven three nine seven two zero one double two double six nine double seven three one four five two nine zero four six four three seven one nine three eight one two three two one five two three nine five one eight six eight seven two nine two seven four one eight double zero two three seven five double two three five four seven double eight four zero one four seven double four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='745443046641006460911871735664538092408084394952066353448004450489821840381778094629976796';\r\nzv=[9 1 15 14 15 8 14 7 3 2 1 1 ];\r\nvexp='seven four five double four three zero four six six four one double zero six four six zero nine double one eight seven one seven three five double six four five three eight zero nine two four zero eight zero eight four three nine four nine five two zero double six three five three double four eight double zero double four five zero four eight nine eight two one eight four zero three eight one seven seven eight zero nine four six two double nine seven six seven nine six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9389581629278714115270272359258386234328448241872301648883';\r\nzv=[15 3 1 13 6 5 7 5 3 ];\r\nvexp='nine three eight nine five eight one six two nine two seven eight seven one four double one five two seven zero two seven two three five nine two five eight three eight six two three four three two eight double four eight two four one eight seven two three zero one six four eight double eight three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='638110728463471172123321819781344177341197656065297520823913148755582611608';\r\nzv=[10 6 8 1 15 12 5 7 2 3 4 1 1 ];\r\nvexp='six three eight double one zero seven two eight four six three four seven double one seven two one two double three two one eight one nine seven eight one three double four one double seven three four double one nine seven six five six zero six five two nine seven five two zero eight two three nine one three one four eight seven double five five eight two six double one six zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1133185809510432';\r\nzv=[15 1 ];\r\nvexp='double one double three one eight five eight zero nine five one zero four three two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='238728670935325997878047006508522404463678112601608414215085957397966';\r\nzv=[13 8 4 13 10 15 6 ];\r\nvexp='two three eight seven two eight six seven zero nine three five three two five double nine seven eight seven eight zero four seven zero zero six five zero eight five double two four zero double four six three six seven eight double one two six zero one six zero eight four one four two one five zero eight five nine five seven three nine seven nine double six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='85658191899305236022867183837318073902283214947760248177452103132443861485891';\r\nzv=[1 10 15 8 4 6 7 15 8 1 1 1 ];\r\nvexp='eight five six five eight one nine one eight double nine three zero five two three six zero double two eight six seven one eight three eight three seven three one eight zero seven three nine zero two two eight three two one four nine four double seven six zero two four eight one double seven four five two one zero three one three two four four three eight six one four eight five eight nine one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='21770416464691789037472471701235435696232613781886745983083308143822448829';\r\nzv=[2 8 11 10 8 14 6 11 1 1 1 1 ];\r\nvexp='two one double seven zero four one six four six four six nine one seven eight nine zero three seven four seven two four seven one seven zero one two three five four three five six nine six two three two six one three seven eight one double eight six seven four five nine eight three zero eight three three zero eight one four three eight double two double four eight eight two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='983249024136170290772296855218428763965301110152249';\r\nzv=[2 15 14 15 4 1 ];\r\nvexp='nine eight three two four nine zero two four one three six one seven zero two nine zero double seven double two nine six eight double five two one eight four two eight seven six three nine six five three zero triple one zero one five double two four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3480983214378717507995103066016574662185732516268288798294927774350570';\r\nzv=[13 10 15 11 3 3 14 1 ];\r\nvexp='three four eight zero nine eight three two one four three seven eight seven one seven five zero seven double nine five one zero three zero double six zero one six five seven four double six two one eight five seven three two five one six two six eight two double eight seven nine eight two nine four nine two triple seven four three five zero five seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='839728044162856119809065784052255130156664';\r\nzv=[9 7 10 15 1 ];\r\nvexp='eight three nine seven two eight zero double four one six two eight five six one one nine eight zero nine zero six five seven eight four zero five double two double five one three zero one five triple six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1299716932675600468864013262733864936641800591739546149687053359054618';\r\nzv=[5 7 14 1 12 3 14 6 4 2 1 1 ];\r\nvexp='one two double nine seven one six nine three two six seven five six double zero four six double eight six four zero one three two six two seven double three eight six four nine three double six four one eight zero zero five nine one seven three nine five four six one four nine six eight seven zero five double three five nine zero five four six one eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7896269726657598138802619158139810768633428179202282443571484595761847181128041281628185246';\r\nzv=[2 7 8 5 6 6 11 9 5 10 12 3 7 ];\r\nvexp='seven eight nine six two six nine seven two double six five seven five nine eight one three double eight zero two six one nine one five eight one three nine eight one zero seven six eight six double three four two eight one seven nine two zero double two eight two double four three five seven one four eight four five nine five seven six one eight four seven one eight double one two eight zero four one two eight one six two eight one eight five two four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='477658486684842559974665174626263159299857463838945503033';\r\nzv=[11 11 6 14 10 2 3 ];\r\nvexp='four double seven six five eight four eight double six eight four eight four two double five double nine seven four six six five one seven four six two six two six three one five nine two double nine eight five seven four six three eight three eight nine four double five zero three zero double three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='06875538368304839162889133713';\r\nzv=[3 10 1 14 1 ];\r\nvexp='zero six eight seven double five three eight three six eight three zero four eight three nine one six two double eight nine one double three seven one three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='45256104997445504657800410480176721551263917689055037098246476060427763254223140';\r\nzv=[14 10 11 2 3 5 12 15 1 4 2 1 ];\r\nvexp='four five two five six one zero four double nine seven double four five five zero four six five seven eight double zero four one zero four eight zero one seven six seven two one double five one two six three nine one seven six eight nine zero double five zero three seven zero nine eight two four six four seven six zero six zero four two double seven six three two five four double two three one four zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6500507266637983912546668295413265536254049737120594152282943472025861287250184';\r\nzv=[3 9 4 9 13 7 7 15 10 1 1 ];\r\nvexp='six five zero zero five zero seven two triple six three seven nine eight three nine one two five four triple six eight two nine five four one three two six double five three six two five four zero four nine seven three seven one two zero five nine four one five double two eight two nine four three four seven two zero two five eight six one two eight seven two five zero one eight four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='90536923431844238372096379800359312024577754107934353901';\r\nzv=[9 14 14 11 5 3 ];\r\nvexp='nine zero five three six nine two three four three one eight double four two three eight three seven two zero nine six three seven nine eight double zero three five nine three one two zero two four five triple seven five four one zero seven nine three four three five three nine zero one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='194851729139154581103404918805045722094939046615745185586389015707908521547319803514384134067';\r\nzv=[6 4 13 10 9 14 6 11 3 9 2 2 3 1 ];\r\nvexp='one nine four eight five one seven two nine one three nine one five four five eight double one zero three four zero four nine one double eight zero five zero four five seven double two zero nine four nine three nine zero four double six one five seven four five one eight double five eight six three eight nine zero one five seven zero seven nine zero eight five two one five four seven three one nine eight zero three five one four three eight four one three four zero six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7180221794361';\r\nzv=[3 7 3 ];\r\nvexp='seven one eight zero double two one seven nine four three six one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='328104734424917711259192901583138150643217809';\r\nzv=[3 8 8 15 5 5 1 ];\r\nvexp='three two eight one zero four seven three double four two four nine one double seven double one two five nine one nine two nine zero one five eight three one three eight one five zero six four three two one seven eight zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4012446744';\r\nzv=[8 1 1 ];\r\nvexp='four zero one two double four six seven four four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='75159567609950672038714189757246751900662587864067030579646570165557726996672';\r\nzv=[13 15 11 7 1 15 8 3 4 ];\r\nvexp='seven five one five nine five six seven six zero double nine five zero six seven two zero three eight seven one four one eight nine seven five seven two four six seven five one nine double zero six six two five eight seven eight six four zero six seven zero three zero five seven nine six four six five seven zero one six triple five double seven two six double nine double six seven two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3799620377074233419333355599242743805155864309640885130882726110701418994547411411126234428060';\r\nzv=[7 9 1 15 13 7 8 15 8 2 6 3 ];\r\nvexp='three seven double nine six two zero three double seven zero seven four two double three four one nine quadruple three triple five double nine two four two seven four three eight zero five one double five eight six four three zero nine six four zero double eight five one three zero double eight two seven two six double one zero seven zero one four one eight double nine four five four seven four double one four triple one two six two three double four two eight zero six zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4044617922891601574869890265644168731524925085154541620867323759734908590210726392474762696192267779';\r\nzv=[11 10 11 14 12 2 4 1 11 7 10 2 1 4 ];\r\nvexp='four zero double four six one seven nine double two eight nine one six zero one five seven four eight six nine eight nine zero two six five six double four one six eight seven three one five two four nine two five zero eight five one five four five four one six two zero eight six seven three two three seven five nine seven three four nine zero eight five nine zero two one zero seven two six three nine two four seven four seven six two six nine six one nine double two six triple seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='496013127684385845636701597670212145677337967472957547809568709115873526515';\r\nzv=[3 3 8 7 2 10 9 4 15 9 5 ];\r\nvexp='four nine six zero one three one two seven six eight four three eight five eight four five six three six seven zero one five nine seven six seven zero two one two one four five six double seven double three seven nine six seven four seven two nine five seven five four seven eight zero nine five six eight seven zero nine double one five eight seven three five two six five one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='820821167030568093577157791027439613729645803722099835506620383';\r\nzv=[10 5 12 5 9 7 12 1 1 1 ];\r\nvexp='eight two zero eight two double one six seven zero three zero five six eight zero nine three five double seven one five double seven nine one zero two seven four three nine six one three seven two nine six four five eight zero three seven double two zero double nine eight three double five zero double six two zero three eight three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='408657487448884114668701663855295152810754544275633734090577026733934929585122688051672821523';\r\nzv=[9 12 14 7 13 4 11 14 5 1 1 2 ];\r\nvexp='four zero eight six five seven four eight seven double four triple eight four double one four double six eight seven zero one double six three eight double five two nine five one five two eight one zero seven five four five double four two seven five six double three seven three four zero nine zero five seven seven zero two six seven double three nine three four nine two nine five eight five one double two six double eight zero five one six seven two eight two one five two three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='83666830362426720310982782694422780383449883455418709';\r\nzv=[12 1 5 6 9 9 3 2 5 1 ];\r\nvexp='eight three triple six eight three zero three six two four two six seven two zero three one zero nine eight two seven eight two six nine double four double two seven eight zero three eight three double four nine eight eight three four double five four one eight seven zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='70';\r\nzv=[2 ];\r\nvexp='seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='65766688929471206192343267171090766327239398418349595012751051227962607';\r\nzv=[3 11 13 6 13 11 9 5 ];\r\nvexp='six five seven triple six double eight nine two nine four seven one two zero six one nine two three four three two six seven one seven one zero nine zero seven double six three two seven two three nine three nine eight four one eight three four nine five nine five zero one two seven five one zero five one double two seven nine six two six zero seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='48133338660378550326078225767453276529';\r\nzv=[11 14 13 ];\r\nvexp='four eight one quadruple three eight double six zero three seven eight double five zero three two six zero seven eight double two five seven six seven four five three two seven six five two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='36891843662484180026365939189054753849425696106318144849957054540856';\r\nzv=[1 5 14 8 6 13 11 4 2 3 1 ];\r\nvexp='three six eight nine one eight four three double six two four eight four one eight double zero two six three six five nine three nine one eight nine zero five four seven five three eight four nine four two five six nine six one zero six three one eight one double four eight four double nine five seven zero five four five four zero eight five six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='34612462486594272419457058352837598957197066493857794521556931700796417114875';\r\nzv=[4 3 13 11 10 4 7 7 6 8 4 ];\r\nvexp='three four six one two four six two four eight six five nine four two seven two four one nine four five seven zero five eight three five two eight three seven five nine eight nine five seven one nine seven zero double six four nine three eight five double seven nine four five two one double five six nine three one seven double zero seven nine six four one seven double one four eight seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='589307734140137421765302377855535665358764079941118868097';\r\nzv=[5 11 10 15 1 13 1 1 ];\r\nvexp='five eight nine three zero double seven three four one four zero one three seven four two one seven six five three zero two three seven seven eight triple five three five double six five three five eight seven six four zero seven double nine four triple one double eight six eight zero nine seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3672631606882947123107630174376653028408088502237547432460099875379219240390535201264402423';\r\nzv=[12 1 6 4 1 9 13 15 7 12 6 2 3 ];\r\nvexp='three six seven two six three one six zero six double eight two nine four seven one two three one zero seven six three zero one seven four three seven double six five three zero two eight four zero eight zero double eight five zero two two three seven five four seven four three two four six double zero double nine eight seven five three seven nine two one nine two four zero three nine zero five three five two zero one two six double four zero two four two three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='071297839181663799718842689232241580363293469938821908366311';\r\nzv=[8 9 3 4 4 1 4 9 15 2 1 ];\r\nvexp='zero seven one two nine seven eight three nine one eight one double six three seven nine nine seven one double eight four two six eight nine two three double two four one five eight zero three six three two nine three four six double nine three double eight two one nine zero eight three double six three one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='76980639645671034156972091320389208';\r\nzv=[5 9 7 9 2 2 1 ];\r\nvexp='seven six nine eight zero six three nine six four five six seven one zero three four one five six nine seven two zero nine one three two zero three eight nine two zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5521307963254865684315120841260812155841496873543096528814951132569054';\r\nzv=[13 5 14 11 13 8 1 3 2 ];\r\nvexp='double five two one three zero seven nine six three two five four eight six five six eight four three one five one two zero eight four one two six zero eight one two one double five eight four one four nine six eight seven three five four three zero nine six five two double eight one four nine five double one three two five six nine zero five four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9288';\r\nzv=[2 1 1 ];\r\nvexp='nine two eight eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0477182564467935086';\r\nzv=[15 3 1 ];\r\nvexp='zero four double seven one eight two five six double four six seven nine three five zero eight six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1433203960656799099205210173223686919427402173272324965993447708611755416843183525933643187989942239';\r\nzv=[8 10 1 14 8 13 15 6 1 13 8 3 ];\r\nvexp='one four double three two zero three nine six zero six five six seven double nine zero nine nine two zero five two one zero one seven three double two three six eight six nine one nine four two seven four zero two one seven three two seven two three two four nine six five double nine three double four double seven zero eight six double one seven five five four one six eight four three one eight three five two five nine double three six four three one eight seven nine eight double nine four two two three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82446767675781104095354046763771917813590078380710445861437926027908370597627610';\r\nzv=[9 1 2 4 4 3 2 15 14 9 4 6 1 5 1 ];\r\nvexp='eight two double four six seven six seven six seven five seven eight double one zero four zero nine five three five four zero four six seven six three double seven one nine one seven eight one three five nine double zero seven eight three eight zero seven one zero double four five eight six one four three seven nine two six zero two seven nine zero eight three seven zero five nine seven six two seven six one zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='305859569860086103046061825673705281159146364994491117222909271811137063811520971285027239387660793';\r\nzv=[12 2 7 15 6 3 1 6 3 8 7 10 5 10 4 ];\r\nvexp='three zero five eight five nine five six nine eight six zero zero eight six one zero three zero four six zero six one eight two five six seven three seven zero five two eight one one five nine one four six three six four nine nine double four nine double one one seven two double two nine zero nine two seven one eight triple one three seven zero six three eight double one five two zero nine seven one two eight five zero two seven two three nine three eight seven double six zero seven nine three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5190986793820061002';\r\nzv=[8 7 4 ];\r\nvexp='five one nine zero nine eight six seven nine three eight two double zero six one double zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='732818804656837051738362946791984298270657440266341399683255575214033229065283049378339674351';\r\nzv=[10 3 8 14 3 4 13 7 3 4 14 9 1 ];\r\nvexp='seven three two eight one double eight zero four six five six eight three seven zero five one seven three eight three six two nine four six seven nine one nine eight four two nine eight two seven zero six five seven double four zero two double six three four one three double nine six eight three two triple five seven five two one four zero double three double two nine zero six five two eight three zero four nine three seven eight double three nine six seven four three five one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='22878757492589018002205051162666163148087357471571794221657045672188988933603952144766843';\r\nzv=[7 10 8 14 13 5 11 4 15 1 1 ];\r\nvexp='double two eight seven eight seven five seven four nine two five eight nine zero one eight double zero double two zero five zero five double one six two triple six one six three one four eight zero eight seven three five seven four seven one five seven one seven nine four double two one six five seven zero four five six seven two one double eight nine double eight nine double three six zero three nine five two one double four seven double six eight four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68748245479848622009943617274780676690467343336858764026953343';\r\nzv=[1 11 14 3 10 13 5 1 1 2 1 ];\r\nvexp='six eight seven four eight two four five four seven nine eight four eight six double two double zero double nine four three six one seven two seven four seven eight zero six seven double six nine zero four six seven three four triple three six eight five eight seven six four zero two six nine five three three four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='812443820860567150296801089721522978252459617325444234454527699088834091962915459804249813572793576';\r\nzv=[2 8 1 1 15 4 8 14 1 10 8 8 15 1 2 1 ];\r\nvexp='eight one two double four three eight two zero eight six zero five six seven one five zero two nine six eight zero one zero eight nine seven two one five double two nine seven eight two five two four five nine six one seven three two five triple four two three four four five four five two seven six double nine zero triple eight three four zero nine one nine six two nine one five four five nine eight zero four two four nine eight one three five seven two seven nine three five seven six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='00993661068572459991536596938758768256572549986877220';\r\nzv=[9 11 7 7 12 7 ];\r\nvexp='double zero double nine three double six one zero six eight five seven two four five triple nine one five three six five nine six nine three eight seven five eight seven six eight two five six five seven two five four double nine eight six eight double seven double two zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='27715163656297176275418439056931612320615454463000744707732526889213294949588908195775568';\r\nzv=[15 2 13 1 3 6 2 15 4 1 10 9 7 1 ];\r\nvexp='two double seven one five one six three six five six two nine seven one seven six two seven five four one eight four three nine zero five six nine three one six one two three two zero six one five four five double four six three triple zero seven double four seven zero double seven three two five two six double eight nine two one three two nine four nine four nine five double eight nine zero eight one nine five double seven double five six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='66836591190528744386233121519205009660791065830470';\r\nzv=[9 10 6 12 13 ];\r\nvexp='double six eight three six five nine double one nine zero five two eight seven double four three eight six two double three one two one five one nine two zero five double zero nine double six zero seven nine one zero six five eight three zero four seven zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9908105226888800867627299504353445485000888760967649670742';\r\nzv=[5 6 8 5 2 10 6 7 3 3 3 ];\r\nvexp='double nine zero eight one zero five double two six eight triple eight double zero eight six seven six two seven two nine nine five zero four three five three double four five four eight five triple zero double eight eight seven six zero nine six seven six four nine six seven zero seven four two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='23013192041633596995161673827352665194498573133742450639121977';\r\nzv=[14 9 11 9 10 5 4 ];\r\nvexp='two three zero one three one nine two zero four one six double three five nine six double nine five one six one six seven three eight two seven three five two double six five one nine double four nine eight five seven three one double three seven four two four five zero six three nine one two one nine double seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='561876161628602626933868362823471568496758529903516004832334874950999565539';\r\nzv=[2 14 12 12 1 3 10 14 1 5 1 ];\r\nvexp='five six one eight seven six one six one six two eight six zero two six two six nine double three eight six eight three six two eight two three four seven one five six eight four nine six seven five eight five two double nine zero three five one six double zero four eight three two double three four eight seven four nine five zero double nine nine five six double five three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0659336967718923857487379930716973116724796708015053702806099696109';\r\nzv=[15 10 2 5 12 9 11 2 1 ];\r\nvexp='zero six five nine double three six nine six double seven one eight nine two three eight five seven four eight seven three seven nine nine three zero seven one six nine seven three double one six seven two four seven nine six seven zero eight zero one five zero five three seven zero two eight zero six zero double nine six nine six one zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2544353234854864102426825493629094429744221828448703587259611510954048582897631523802527480763958';\r\nzv=[9 9 5 9 1 11 2 9 5 4 1 10 12 10 ];\r\nvexp='two five double four three five three two three four eight five four eight six four one zero two four two six eight two five four nine three six two nine zero nine double four two nine seven double four double two one eight two eight double four eight seven zero three five eight seven two five nine six one one five one zero nine five four zero four eight five eight two eight nine seven six three one five two three eight zero two five two seven four eight zero seven six three nine five eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='743482174037207702159915214008';\r\nzv=[2 10 10 7 1 ];\r\nvexp='seven four three four eight two one seven four zero three seven two zero double seven zero two one five double nine one five two one four double zero eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='971685936861297496680545';\r\nzv=[2 1 3 3 8 3 2 2 ];\r\nvexp='nine seven one six eight five nine three six eight six one two nine seven four nine double six eight zero five four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='06384119765848786807703567200612243886752458257039700258908161';\r\nzv=[10 1 12 5 9 7 1 8 5 2 2 ];\r\nvexp='zero six three eight four double one nine seven six five eight four eight seven eight six eight zero double seven zero three five six seven two zero zero six one double two four three double eight six seven five two four five eight two five seven zero three nine seven double zero two five eight nine zero eight one six one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='661888688696858666215517613281167258136127005883725278169489607542378190912692984613629598';\r\nzv=[12 6 4 10 8 13 9 12 8 2 2 3 1 ];\r\nvexp='double six one triple eight six double eight six nine six eight five eight triple six two one double five one seven six one three two eight double one six seven two five eight one three six one two seven double zero five double eight three seven two five two seven eight one six nine four eight nine six zero seven five four two three seven eight one nine zero nine one two six nine two nine eight four six one three six two nine five nine eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='11869488318253809620396499';\r\nzv=[8 8 4 4 2 ];\r\nvexp='double one eight six nine four double eight three one eight two five three eight zero nine six two zero three nine six four double nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3247242326877973396352267916489703639981791';\r\nzv=[10 6 9 1 14 3 ];\r\nvexp='three two four seven two four two three two six eight double seven nine seven three three nine six three five double two six seven nine one six four eight nine seven zero three six three double nine eight one seven nine one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8446827840499583394994945831973919523300569749298887484989096588752282260';\r\nzv=[13 4 10 14 13 11 8 ];\r\nvexp='eight double four six eight two seven eight four zero four double nine five eight double three nine four double nine four nine four five eight three one nine seven three nine one nine five two double three double zero five six nine seven four nine two nine triple eight seven four eight four nine eight nine zero nine six five double eight seven five double two eight double two six zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='411450';\r\nzv=[3 2 1 ];\r\nvexp='four double one four five zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4392336769670743812140126277793124578244122498979213427064735267724740372712';\r\nzv=[11 12 7 15 6 5 10 5 4 1 ];\r\nvexp='four three nine two double three six seven six nine six seven zero seven four three eight one two one four zero one two six two triple seven nine three one two four five seven eight two double four one double two four nine eight nine seven nine two one three four two seven zero six four seven three five two six double seven two four seven four zero three seven two seven one two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='787130205914703441344904';\r\nzv=[5 6 7 4 1 1 ];\r\nvexp='seven eight seven one three zero two zero five nine one four seven zero three double four one three double four nine zero four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='12774525496510270478837791597218598140900';\r\nzv=[3 3 14 8 5 1 6 1 ];\r\nvexp='one two seven seven four five two five four nine six five one zero two seven zero four seven eight eight three double seven nine one five nine seven two one eight five nine eight one four zero nine zero zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8337240067278766126028792694666601545641';\r\nzv=[1 3 2 9 7 3 12 3 ];\r\nvexp='eight double three seven two four double zero six seven two seven eight seven six six one two six zero two eight seven nine two six nine four quadruple six zero one five four five six four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='07284423399956161619055960652374322967216';\r\nzv=[3 1 12 6 10 8 1 ];\r\nvexp='zero seven two eight double four two double three triple nine five six one six one six one nine zero five five nine six zero six five two three seven four three double two nine six seven two one six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='014588023080298629688';\r\nzv=[1 11 4 4 1 ];\r\nvexp='zero one four five double eight zero two three zero eight zero two nine eight six two nine six eight eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='391932612615185460799778659969591684168549057796895984';\r\nzv=[13 7 2 2 7 3 14 2 3 1 ];\r\nvexp='three nine one nine three two six one two six one five one eight five four six zero seven nine nine seven seven eight six five double nine six nine five nine one six eight four one six eight five four nine zero five double seven nine six eight nine five nine eight four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='85267068576145';\r\nzv=[9 3 1 1 ];\r\nvexp='eight five two six seven zero six eight five seven six one four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-29T21:50:16.000Z","updated_at":"2013-09-29T21:58:27.000Z","published_at":"2013-09-29T21:58:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Read Phone Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Large Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively. The \u0026gt; 10 repeats occurs in the Large Data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Text, a string of the reading based upon segments\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[Number,Segments]  [Text]\\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 12 minutes with 1094 of 3058 able to process the Large data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44715,"title":"007: Chinese Barrack Invasion","description":"*MISSION:* Successfully invade a military barrack located in China.\r\n\r\n*WARNING:* There is a row of _n_ security switches protecting the military installation entrance. The switches can be manipulated as follows:\r\n\r\n* The rightmost switch may be turned on or off at will.\r\n\r\n* Any other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,\r\nare off.\r\n\r\n* Only one switch may be toggled at a time.\r\n\r\nAll _n_ security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves _m_ (toggling one switch is considered one move.) An alarm will be triggered if more than _m_ moves are made. Quickly, determine the minimum number of moves _m_ . \r\n\r\nBe Careful. Do not get caught!!!\r\n\r\n*HINT:* The security system was designed by the Chinese.","description_html":"\u003cp\u003e\u003cb\u003eMISSION:\u003c/b\u003e Successfully invade a military barrack located in China.\u003c/p\u003e\u003cp\u003e\u003cb\u003eWARNING:\u003c/b\u003e There is a row of \u003ci\u003en\u003c/i\u003e security switches protecting the military installation entrance. The switches can be manipulated as follows:\u003c/p\u003e\u003cul\u003e\u003cli\u003eThe rightmost switch may be turned on or off at will.\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003eAny other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,\r\nare off.\u003c/li\u003e\u003c/ul\u003e\u003cul\u003e\u003cli\u003eOnly one switch may be toggled at a time.\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAll \u003ci\u003en\u003c/i\u003e security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves \u003ci\u003em\u003c/i\u003e (toggling one switch is considered one move.) An alarm will be triggered if more than \u003ci\u003em\u003c/i\u003e moves are made. Quickly, determine the minimum number of moves \u003ci\u003em\u003c/i\u003e .\u003c/p\u003e\u003cp\u003eBe Careful. Do not get caught!!!\u003c/p\u003e\u003cp\u003e\u003cb\u003eHINT:\u003c/b\u003e The security system was designed by the Chinese.\u003c/p\u003e","function_template":"function m = Invasion(n)\r\n  \r\nend","test_suite":"%%\r\nassert(isequal(Invasion(0),0))\r\n\r\n%%\r\nassert(isequal(Invasion(1),1))\r\n\r\n%%\r\nassert(isequal(Invasion(2),2))\r\n\r\n%%\r\nassert(isequal(Invasion(3),5))\r\n\r\n%%\r\nassert(isequal(Invasion(4),10))\r\n\r\n%%\r\nassert(isequal(Invasion(5),21))\r\n\r\n%%\r\nassert(isequal(Invasion(6),42))\r\n\r\n%%\r\nassert(isequal(Invasion(7),85))\r\n\r\n%%\r\nassert(isequal(Invasion(8),170))\r\n\r\n%%\r\nassert(isequal(Invasion(9),341))\r\n\r\n%%\r\nassert(isequal(Invasion(10),682))\r\n\r\n%%\r\nassert(isequal(Invasion(11),1365))\r\n\r\n%%\r\nassert(isequal(Invasion(12),2730))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":178544,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":23,"test_suite_updated_at":"2018-09-07T18:01:16.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-08-04T14:29:49.000Z","updated_at":"2025-12-16T03:09:27.000Z","published_at":"2018-08-04T14:32:20.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eMISSION:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Successfully invade a military barrack located in China.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eWARNING:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e There is a row of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e security switches protecting the military installation entrance. The switches can be manipulated as follows:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe rightmost switch may be turned on or off at will.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAny other switch may be turned on or off only if the switch to its immediate right is on and all the other switches to its right, if any,are off.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOnly one switch may be toggled at a time.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAll\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003en\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e security switches are currently turned on. Deactivate the security system by turning off all the switches in the minimum number of moves\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (toggling one switch is considered one move.) An alarm will be triggered if more than\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e moves are made. Quickly, determine the minimum number of moves\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003em\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e .\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBe Careful. Do not get caught!!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eHINT:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The security system was designed by the Chinese.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1934,"title":"GJam 2014 China Rd B: Sudoku Checker","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku\u003e. Large Case.\r\n\r\nThe Goal is determine if the Sudoku square is valid. Each row and column  must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\r\n\r\n\r\n*Input:* [M], NxN matrix (3^2\u003c=N\u003c=6^2)\r\n\r\n*Output:* TF, 1=Valid, 0=Invalid\r\n\r\n*Examples:*\r\n\r\n  TF=1\r\n  5 3 4 6 7 8 9 1 2\r\n  6 7 2 1 9 5 3 4 8\r\n  1 9 8 3 4 2 5 6 7\r\n  8 5 9 7 6 1 4 2 3\r\n  4 2 6 8 5 3 7 9 1\r\n  7 1 3 9 2 4 8 5 6\r\n  9 6 1 5 3 7 2 8 4\r\n  2 8 7 4 1 9 6 3 5\r\n  3 4 5 2 8 6 1 7 9\r\n  \r\n  TF=0\r\n  5 3 4 6 7 8 9 1 2\r\n  6 7 2 1 9 5 3 4 8\r\n  1 9 8 3 4 2 5 6 7\r\n  8 5 9 7 6 1 4 2 3\r\n  4 2 6 8 999 3 7 9 1\r\n  7 1 3 9 2 4 8 5 6\r\n  9 6 1 5 3 7 2 8 4\r\n  2 8 7 4 1 9 6 3 5\r\n  3 4 5 2 8 6 1 7 9\r\n\r\n\r\n*Contest Performance:* Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p0\"\u003eGJam 2014 China Sudoku\u003c/a\u003e. Large Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine if the Sudoku square is valid. Each row and column  must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M], NxN matrix (3^2\u0026lt;=N\u0026lt;=6^2)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF, 1=Valid, 0=Invalid\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eTF=1\r\n5 3 4 6 7 8 9 1 2\r\n6 7 2 1 9 5 3 4 8\r\n1 9 8 3 4 2 5 6 7\r\n8 5 9 7 6 1 4 2 3\r\n4 2 6 8 5 3 7 9 1\r\n7 1 3 9 2 4 8 5 6\r\n9 6 1 5 3 7 2 8 4\r\n2 8 7 4 1 9 6 3 5\r\n3 4 5 2 8 6 1 7 9\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eTF=0\r\n5 3 4 6 7 8 9 1 2\r\n6 7 2 1 9 5 3 4 8\r\n1 9 8 3 4 2 5 6 7\r\n8 5 9 7 6 1 4 2 3\r\n4 2 6 8 999 3 7 9 1\r\n7 1 3 9 2 4 8 5 6\r\n9 6 1 5 3 7 2 8 4\r\n2 8 7 4 1 9 6 3 5\r\n3 4 5 2 8 6 1 7 9\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\u003c/p\u003e","function_template":"function TF=Sudoku_CH(m)\r\n TF=0;\r\nend","test_suite":"%%\r\nzm=[13 4 3 6 1 8 7 10 5 12 11 14 9 16 15 2 ;2 5 8 7 6 9 12 11 10 13 16 15 14 1 4 3 ;15 14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 ;16 11 10 9 4 15 14 13 8 3 2 1 12 7 6 5 ;1 8 7 10 5 12 11 14 9 16 15 2 13 4 3 6 ;6 9 12 11 10 13 16 15 14 1 4 3 2 5 8 7 ;3 2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 ;4 15 14 13 8 3 2 1 12 7 6 5 16 11 10 9 ;5 12 11 14 9 16 15 2 13 4 3 6 1 8 7 10 ;10 13 16 15 14 1 4 3 2 5 8 7 6 9 12 11 ;7 6 9 4 11 10 13 8 15 14 1 12 3 2 5 16 ;8 3 2 1 12 7 6 5 16 11 10 9 4 15 14 13 ;9 16 15 2 13 4 3 6 1 8 7 10 5 12 11 14 ;14 1 4 3 2 5 8 7 6 9 12 11 10 13 16 15 ;11 10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 ;12 7 6 5 16 11 10 9 4 15 14 13 8 3 2 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 ;20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 ;27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 ;34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 ;35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 ;12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 ;13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 ;26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 ;33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 ;4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 ;5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 ;18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 ;19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 ;32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 ;3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 28 26 13 24 11 4 33 32 19 30 17 10 ;10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 ;11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 ;24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 ;25 18 23 34 15 14 31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 ;2 7 12 35 28 21 8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 ;9 8 31 6 29 22 15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 ;16 27 26 1 36 11 22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 ;17 4 33 32 13 24 23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 ;30 5 10 3 20 19 36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 ;31 24 29 4 21 20 1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 ;8 13 18 5 34 27 14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 ;15 14 1 12 35 28 21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 ;22 33 32 7 6 17 28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 ;23 10 3 2 19 30 29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 ;36 11 16 9 26 25 6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 ;1 30 35 10 27 26 7 36 5 16 33 32 13 6 11 22 3 2 19 12 17 28 9 8 25 18 23 34 15 14 31 24 29 4 21 20 ;14 19 24 11 4 33 20 25 30 17 10 3 26 31 36 23 16 9 32 1 6 29 22 15 2 7 12 35 28 21 8 13 18 5 34 27 ;21 20 7 18 5 34 27 26 13 24 11 4 33 32 19 30 17 10 3 2 25 36 23 16 9 8 31 6 29 22 15 14 1 12 35 28 ;28 3 2 13 12 23 34 9 8 19 18 29 4 15 14 25 24 35 10 21 20 31 30 5 16 27 26 1 36 11 22 33 32 7 6 17 ;29 16 9 8 25 36 35 22 15 14 31 6 5 28 21 20 1 12 11 34 27 26 7 18 17 4 33 32 13 24 23 10 3 2 19 30 ;6 17 22 15 32 31 12 23 28 21 2 1 18 29 34 27 8 7 24 35 4 33 14 13 30 5 10 3 20 19 36 11 16 9 26 25 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[5 8 7 10 9 12 11 14 13 16 15 2 1 4 3 6 ;14 13 13 11 2 1 16 15 6 5 4 3 10 9 8 7 ;3 6 1 4 7 10 5 8 11 14 9 12 15 2 13 16 ;16 15 2 9 4 3 6 13 8 7 10 1 12 11 14 5 ;9 12 11 14 13 16 15 2 1 4 3 6 5 8 7 10 ;2 1 16 15 6 5 4 3 10 9 8 7 14 13 12 11 ;7 10 5 8 11 14 9 12 15 2 13 16 3 6 1 4 ;4 3 6 13 8 7 10 1 12 11 14 5 16 15 2 9 ;13 16 15 2 1 4 3 6 5 8 7 10 9 12 11 14 ;6 5 4 3 10 9 8 7 14 13 12 11 2 1 16 15 ;11 14 9 12 15 2 13 16 3 6 1 4 7 10 5 8 ;8 7 10 1 12 11 14 5 16 15 2 9 4 3 6 13 ;1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 2 ;10 9 8 7 14 13 12 11 2 1 16 15 6 5 4 3 ;15 2 13 16 3 6 1 4 7 10 5 8 11 14 9 12 ;12 11 14 5 16 15 2 9 4 3 6 13 8 7 10 1 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[5 12 3 14 9 16 7 2 13 4 11 6 1 8 15 10 ;6 9 4 11 10 13 8 16 14 1 12 3 2 5 16 7 ;7 10 1 16 11 14 5 4 15 2 9 8 3 6 13 12 ;8 15 2 13 12 3 6 1 16 7 10 5 4 11 14 9 ;9 16 7 2 13 4 11 6 1 8 15 10 5 12 3 14 ;10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 11 ;11 14 5 4 15 2 9 8 3 6 13 12 7 10 1 16 ;12 3 6 1 16 7 10 5 4 11 14 9 8 15 2 13 ;13 4 11 6 1 8 15 10 5 12 3 14 9 16 7 2 ;14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 15 ;15 2 9 8 3 6 13 12 7 10 1 16 11 14 5 4 ;16 7 10 5 4 11 14 9 8 15 2 13 12 3 6 1 ;1 8 15 10 5 12 3 14 9 16 7 2 13 4 11 6 ;2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 3 ;3 6 13 12 7 10 1 16 11 14 5 4 15 2 9 8 ;4 11 14 9 8 15 2 13 12 3 6 1 16 7 10 5 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 3 8 4 6 2 7 9 5 ;2 7 6 5 1 9 8 4 3 ;9 5 4 3 8 7 6 2 1 ;4 6 2 7 9 5 1 3 8 ;5 1 9 8 4 3 2 7 6 ;3 8 7 6 2 1 9 5 4 ;7 9 5 1 3 8 4 6 2 ;8 4 3 2 7 6 5 1 9 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 ;14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 ;3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 ;16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 ;23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 ;30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 ;1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 ;20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 ;9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 ;22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 ;29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 ;36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 ;7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 ;26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 29 9 14 25 6 29 34 15 20 31 12 35 4 21 ;15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 ;28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 ;35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 ;6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 ;13 18 29 4 15 2 19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 ;32 7 24 11 16 33 2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 ;21 20 31 30 23 10 27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 ;34 27 8 19 6 35 4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 ;5 22 3 26 1 36 11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 ;12 17 28 9 14 25 18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 ;19 24 35 10 21 8 25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 ;2 13 30 17 22 3 8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 ;27 26 1 36 29 16 33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 ;4 33 14 25 12 5 10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 ;11 28 9 32 7 6 17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 ;18 23 34 15 20 31 24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 ;25 30 5 16 27 14 31 36 11 22 33 20 1 6 17 28 3 26 7 12 23 34 9 32 13 18 29 4 15 2 19 24 35 10 21 8 ;8 19 36 23 28 9 14 25 6 29 34 15 20 31 12 35 4 21 26 1 18 5 10 27 32 7 24 11 16 33 2 13 30 17 22 3 ;33 32 7 6 35 22 3 2 13 12 5 28 9 8 19 18 11 34 15 14 25 24 17 4 21 20 31 30 23 10 27 26 1 36 29 16 ;10 3 20 31 18 11 16 9 26 1 24 17 22 15 32 7 30 23 28 21 2 13 36 29 34 27 8 19 6 35 4 33 14 25 12 5 ;17 34 15 2 13 12 23 4 21 8 19 18 29 10 27 14 25 24 35 16 33 20 31 30 5 22 3 26 1 36 11 28 9 32 7 6 ;24 29 4 21 26 1 30 35 10 27 32 7 36 5 16 33 2 13 6 11 22 3 8 19 12 17 28 9 14 25 18 23 34 15 20 31 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 12 7 14 5 16 11 2 9 4 15 6 13 8 3 10 ;10 13 16 3 14 2 4 7 2 5 8 11 6 9 12 15 ;15 2 5 8 3 6 9 12 7 10 13 16 11 14 1 4 ;4 11 6 9 8 15 10 13 12 3 14 1 16 7 2 5 ;5 16 11 2 9 4 15 6 13 8 3 10 1 12 7 14 ;14 1 4 7 2 5 8 11 6 9 12 15 10 13 16 3 ;3 6 9 12 7 10 13 16 11 14 1 4 15 2 5 8 ;8 15 10 13 12 3 14 1 16 7 2 5 4 11 6 9 ;9 4 15 6 13 8 3 10 1 12 7 14 5 16 11 2 ;2 5 8 11 6 9 12 15 10 13 16 3 14 1 4 7 ;7 10 13 16 11 14 1 4 15 2 5 8 3 6 9 12 ;12 3 14 1 16 7 2 5 4 11 6 9 8 15 10 13 ;13 8 3 10 1 12 7 14 5 16 11 2 9 4 15 6 ;6 9 12 15 10 13 16 3 14 1 4 7 2 5 8 11 ;11 14 1 4 15 2 5 8 3 6 9 12 7 10 13 16 ;16 7 2 5 4 11 6 9 8 15 10 13 12 3 14 1 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 ;26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 ;27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 ;22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 ;5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 ;24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 ;13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 ;32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 ;33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 ;28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 ;11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 ;30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 ;19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 ;2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 ;3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 ;34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 ;17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 ;36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 ;25 24 35 34 27 2 31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 ;8 7 30 11 16 33 14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 ;9 32 31 18 5 10 15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 ;4 15 20 19 36 29 10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 ;23 28 21 26 13 12 29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 ;6 17 22 3 14 1 12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 ;31 30 5 4 33 8 1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 ;14 13 36 17 22 3 20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 ;15 2 1 24 11 16 21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 ;10 21 26 25 6 35 16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 ;29 34 27 32 19 18 35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 ;12 23 28 9 20 7 18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 ;1 36 11 10 3 14 7 6 17 16 9 20 13 12 23 22 15 26 19 18 29 28 21 32 25 24 35 34 27 2 31 30 5 4 33 8 ;20 19 6 23 28 9 26 25 12 29 34 15 32 31 18 35 4 21 2 1 24 5 10 27 8 7 30 11 16 33 14 13 36 17 22 3 ;21 8 7 30 17 22 27 14 13 36 23 28 33 20 19 6 29 34 3 26 25 12 35 4 9 32 31 18 5 10 15 2 1 24 11 16 ;16 27 32 31 12 5 22 33 2 1 18 11 28 3 8 7 24 17 34 9 14 13 30 23 4 15 20 19 36 29 10 21 26 25 6 35 ;35 4 33 2 25 24 5 10 3 8 31 30 11 16 9 14 1 36 17 22 15 20 7 6 23 28 21 26 13 12 29 34 27 32 19 18 ;18 29 34 15 26 13 24 35 4 21 32 19 30 5 10 27 2 25 36 11 16 33 8 31 6 17 22 3 14 1 12 23 28 9 20 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 8 11 2 5 12 15 6 9 16 3 10 13 4 7 14 ;14 9 12 7 2 13 16 11 6 1 4 15 10 5 8 3 ;3 10 13 4 7 14 1 8 11 2 5 12 15 6 9 16 ;16 15 6 5 4 3 10 9 8 7 14 13 12 11 2 1 ;5 12 15 6 9 16 3 10 13 4 7 14 1 8 11 2 ;2 13 16 11 6 1 4 15 10 5 8 3 14 9 12 7 ;7 14 1 8 11 2 5 12 15 6 9 16 3 10 13 4 ;4 3 10 9 8 7 14 13 12 11 2 1 16 15 6 5 ;9 16 3 10 13 4 7 14 1 8 11 2 5 12 15 6 ;6 1 4 15 10 5 8 3 14 9 12 7 2 13 16 11 ;11 2 5 12 15 6 9 16 3 10 13 4 7 14 1 8 ;8 7 14 13 12 11 2 1 16 15 6 5 4 3 10 9 ;13 4 7 14 1 8 11 2 5 12 15 6 9 16 3 10 ;10 5 8 3 14 9 12 7 2 13 16 11 6 1 4 15 ;15 6 9 16 3 10 13 4 7 14 1 8 11 2 5 12 ;12 11 2 1 16 15 6 5 4 3 10 9 8 7 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 ;20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 ;3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 ;10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 ;11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 ;12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 ;13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 ;26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 ;9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 ;16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 ;17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 ;18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 ;19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 ;32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 ;15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 ;22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 ;23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 ;24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 ;25 18 11 34 3 32 31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 ;2 13 6 17 16 9 8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 ;21 26 31 24 35 22 27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 ;28 27 8 1 36 23 34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 ;29 4 15 14 19 12 35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 ;30 5 10 33 20 7 36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 ;31 24 17 4 9 2 1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 ;8 19 12 23 22 15 14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 ;27 32 1 30 5 28 33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 ;34 33 14 7 6 29 4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 ;35 10 21 20 25 18 5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 ;36 11 16 3 26 13 6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 ;1 30 23 10 15 8 7 36 29 16 21 14 13 6 35 22 27 20 19 12 5 28 33 26 25 18 11 34 3 32 31 24 17 4 9 2 ;14 25 18 29 28 21 20 31 24 35 34 27 26 1 30 5 4 33 32 7 36 11 10 3 2 13 6 17 16 9 8 19 12 23 22 15 ;33 2 7 36 11 34 3 8 13 6 17 4 9 14 19 12 23 10 15 20 25 18 29 16 21 26 31 24 35 22 27 32 1 30 5 28 ;4 3 20 13 12 35 10 9 26 19 18 5 16 15 32 25 24 11 22 21 2 31 30 17 28 27 8 1 36 23 34 33 14 7 6 29 ;5 16 27 26 31 24 11 22 33 32 1 30 17 28 3 2 7 36 23 34 9 8 13 6 29 4 15 14 19 12 35 10 21 20 25 18 ;6 17 22 9 32 19 12 23 28 15 2 25 18 29 34 21 8 31 24 35 4 27 14 1 30 5 10 33 20 7 36 11 16 3 26 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 3 8 1 6 2 4 9 5 ;2 1 6 5 4 9 8 7 3 ;9 5 4 3 8 7 6 2 1 ;1 6 2 4 9 5 7 3 8 ;5 4 9 8 7 3 2 1 6 ;3 8 7 6 2 1 9 5 4 ;4 9 6 7 3 8 1 6 2 ;8 7 3 2 1 6 5 4 9 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 16 3 2 13 4 7 6 1 8 11 10 5 12 15 14 ;6 13 4 15 10 1 8 3 14 5 12 7 2 9 16 11 ;11 14 1 12 15 2 5 16 3 6 9 4 7 10 13 8 ;8 7 10 5 12 11 14 9 16 15 2 13 4 3 6 1 ;13 4 7 6 1 8 11 10 5 12 15 14 9 16 3 2 ;10 1 8 3 14 5 12 7 2 9 16 11 6 13 4 15 ;15 2 5 16 3 6 9 4 7 10 13 8 11 14 1 12 ;12 11 14 9 16 15 2 13 4 3 6 1 8 7 10 5 ;1 8 11 10 5 12 15 14 9 16 3 2 13 4 7 6 ;14 5 12 7 2 9 16 11 6 13 4 15 10 1 8 3 ;3 6 9 4 7 10 13 8 11 14 1 12 15 2 5 16 ;16 15 2 13 4 3 6 1 8 7 10 5 12 11 14 9 ;5 12 15 14 9 16 3 2 13 4 7 6 1 8 11 10 ;2 9 16 11 6 13 4 15 10 1 8 3 14 5 12 7 ;7 10 13 8 11 14 1 12 15 2 5 16 3 6 9 4 ;4 3 6 1 8 7 10 5 12 11 14 9 16 15 2 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 ;22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 ;3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 ;4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 ;15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 ;21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 ;2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 ;8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 ;9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 ;20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 ;1 5 24 3 12 6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 ;7 21 10 4 18 12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 ;13 22 16 15 9 18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 ;14 23 17 6 20 19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 ;25 19 8 2 11 5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 ;6 10 4 8 17 11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 ;12 1 15 9 23 17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 ;18 2 21 20 14 23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 ;19 3 22 11 25 24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 ;5 24 13 7 16 10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 ;11 15 9 13 22 16 20 14 18 2 21 25 19 23 7 1 5 24 3 12 6 10 4 8 17 ;17 6 20 14 3 22 11 25 19 8 2 16 5 24 13 7 21 10 4 18 12 1 15 9 23 ;23 7 1 25 19 3 12 6 5 24 8 17 11 10 4 13 22 16 15 9 18 2 21 20 14 ;24 8 2 16 5 4 13 7 21 10 9 18 12 1 15 14 23 17 6 20 19 3 22 11 25 ;10 4 18 12 21 15 9 23 17 1 20 14 3 22 6 25 19 8 2 11 5 24 13 7 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 ;17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 ;8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 ;19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 ;5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 ;6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 ;22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 ;13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 ;24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 ;10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 ;11 5 14 13 12 16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 ;2 21 10 9 8 7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 ;18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 ;4 3 7 6 20 9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 ;15 19 23 17 1 20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 ;16 10 19 18 17 21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 ;7 1 15 14 13 12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 ;23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 ;9 8 12 11 25 14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 ;20 24 3 22 6 25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 ;21 15 24 23 22 1 20 4 3 2 6 25 9 8 7 11 5 14 13 12 16 10 19 18 17 ;12 6 20 19 18 17 11 25 24 23 22 16 5 4 3 2 21 10 9 8 7 1 15 14 13 ;3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 ;14 13 17 16 5 19 18 22 21 10 24 23 2 1 15 4 3 7 6 20 9 8 12 11 25 ;25 4 8 2 11 5 9 13 7 16 10 14 18 12 21 15 19 23 17 1 20 24 3 22 6 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 ;20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 ;33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 ;4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 ;35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 ;18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 ;7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 ;26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 ;3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 ;10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 ;5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 ;24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 ;13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 ;32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 ;9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 ;16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 ;11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 ;30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 ;19 6 35 34 9 26 25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 ;2 31 24 29 16 33 8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 ;15 32 1 12 5 4 21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 ;22 27 14 13 18 11 28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 ;17 10 3 20 25 30 23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 ;36 23 28 21 8 7 6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 ;25 12 5 4 15 32 31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 ;8 1 30 35 22 3 14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 ;21 2 7 18 11 10 27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 ;28 33 20 19 24 17 34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 ;23 16 9 26 31 36 29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 ;6 29 34 27 14 13 12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 ;31 18 11 10 21 2 1 24 17 16 27 8 7 30 23 22 33 14 13 36 29 28 3 20 19 6 35 34 9 26 25 12 5 4 15 32 ;14 7 36 5 28 9 20 13 6 11 34 15 26 19 12 17 4 21 32 25 18 23 10 27 2 31 24 29 16 33 8 1 30 35 22 3 ;27 8 13 24 17 16 33 14 19 30 23 22 3 20 25 36 29 28 9 26 31 6 35 34 15 32 1 12 5 4 21 2 7 18 11 10 ;34 3 26 25 30 23 4 9 32 31 36 29 10 15 2 1 6 35 16 21 8 7 12 5 22 27 14 13 18 11 28 33 20 19 24 17 ;29 22 15 32 1 6 35 28 21 2 7 12 5 34 27 8 13 18 11 4 33 14 19 24 17 10 3 20 25 30 23 16 9 26 31 36 ;12 35 4 33 20 19 18 5 10 3 26 25 24 11 16 9 32 31 30 17 22 15 2 1 36 23 28 21 8 7 6 29 34 27 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[4 3 8 7 6 2 1 9 5 ;2 1 9 5 4 3 8 7 6 ;6 5 7 9 8 1 3 2 4 ;7 6 2 1 9 5 4 3 8 ;5 4 3 8 7 6 2 1 9 ;9 8 1 3 2 4 6 5 7 ;1 9 5 4 3 8 7 6 2 ;8 7 6 2 1 9 5 4 3 ;3 2 4 6 5 7 9 8 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 9 8 4 3 2 7 6 5 ;2 7 6 5 1 9 8 4 3 ;3 5 4 6 8 7 9 2 1 ;4 3 2 7 6 5 1 9 8 ;5 1 9 8 4 3 2 7 6 ;6 8 7 9 2 1 3 5 4 ;7 6 5 1 9 8 4 3 2 ;8 4 3 2 7 6 5 1 9 ;9 2 1 3 5 4 6 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 ;7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 ;23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 ;9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 ;15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 ;16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 ;12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 ;3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 ;14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 ;20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 ;21 20 9 13 7 1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 ;17 1 10 24 23 22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 ;8 12 6 15 14 13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 ;19 18 22 16 5 24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 ;25 4 3 2 11 5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 ;1 25 14 18 12 6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 ;22 6 15 4 3 2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 ;13 17 11 20 19 18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 ;24 23 2 21 10 4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 ;5 9 8 7 16 10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 ;6 5 19 23 17 11 10 24 3 22 16 15 4 8 2 21 20 9 13 7 1 25 14 18 12 ;2 11 20 9 8 7 16 25 14 13 12 21 5 19 18 17 1 10 24 23 22 6 15 4 3 ;18 22 16 25 24 23 2 21 5 4 3 7 1 10 9 8 12 6 15 14 13 17 11 20 19 ;4 3 7 1 15 9 8 12 6 20 14 13 17 11 25 19 18 22 16 5 24 23 2 21 10 ;10 14 13 12 21 15 19 18 17 1 20 24 23 22 6 25 4 3 2 11 5 9 8 7 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 ;8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 ;21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 ;10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 ;5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 ;36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 ;7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 ;14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 ;27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 ;16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 ;11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 ;6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 ;13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 ;20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 ;33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 ;22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 ;17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 ;12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 ;19 6 29 16 21 32 25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 ;26 31 36 35 34 9 32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 ;3 14 25 30 5 10 9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 ;28 33 20 1 24 17 34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 ;23 22 15 2 13 12 29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 ;18 11 4 27 8 7 24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 ;25 12 35 22 27 2 31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 ;32 1 6 5 4 15 2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 ;9 20 31 36 11 16 15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 ;34 3 26 7 30 23 4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 ;29 28 21 8 19 18 35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 ;24 17 10 33 14 13 30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 ;31 18 5 28 33 8 1 24 11 34 3 14 7 30 17 4 9 20 13 36 23 10 15 26 19 6 29 16 21 32 25 12 35 22 27 2 ;2 7 12 11 10 21 8 13 18 17 16 27 14 19 24 23 22 33 20 25 30 29 28 3 26 31 36 35 34 9 32 1 6 5 4 15 ;15 26 1 6 17 22 21 32 7 12 23 28 27 2 13 18 29 34 33 8 19 24 35 4 3 14 25 30 5 10 9 20 31 36 11 16 ;4 9 32 13 36 29 10 15 2 19 6 35 16 21 8 25 12 5 22 27 14 31 18 11 28 33 20 1 24 17 34 3 26 7 30 23 ;35 34 27 14 25 24 5 4 33 20 31 30 11 10 3 26 1 36 17 16 9 32 7 6 23 22 15 2 13 12 29 28 21 8 19 18 ;30 23 16 3 20 19 36 29 22 9 26 25 6 35 28 15 32 31 12 5 34 21 2 1 18 11 4 27 8 7 24 17 10 33 14 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 ;2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 ;3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 ;22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 ;5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 ;6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 ;19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 ;8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 ;9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 ;28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 ;11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 ;12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 ;25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 ;14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 ;15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 ;34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 ;17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 ;18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 ;31 18 35 34 33 2 1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 ;20 13 36 17 22 9 26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 ;21 26 1 6 5 28 27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 ;4 3 32 19 12 29 10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 ;23 16 15 8 25 30 29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 ;24 11 10 27 14 7 30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 ;1 24 5 4 3 8 7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 ;26 19 6 23 28 15 32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 ;27 32 7 12 11 34 33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 ;10 9 2 25 18 35 16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 ;29 22 21 14 31 36 35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 ;30 17 16 33 20 13 36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 ;7 30 11 10 9 14 13 36 17 16 15 20 19 6 23 22 21 26 25 12 29 28 27 32 31 18 35 34 33 2 1 24 5 4 3 8 ;32 25 12 29 34 21 2 31 18 35 4 27 8 1 24 5 10 33 14 7 30 11 16 3 20 13 36 17 22 9 26 19 6 23 28 15 ;33 2 13 18 17 4 3 8 19 24 23 10 9 14 25 30 29 16 15 20 31 36 35 22 21 26 1 6 5 28 27 32 7 12 11 34 ;16 15 8 31 24 5 22 21 14 1 30 11 28 27 20 7 36 17 34 33 26 13 6 23 4 3 32 19 12 29 10 9 2 25 18 35 ;35 28 27 20 1 6 5 34 33 26 7 12 11 4 3 32 13 18 17 10 9 2 19 24 23 16 15 8 25 30 29 22 21 14 31 36 ;36 23 22 3 26 19 6 29 28 9 32 25 12 35 34 15 2 31 18 5 4 21 8 1 24 11 10 27 14 7 30 17 16 33 20 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[429 428 430 432 431 433 426 434 427 ;427 426 434 430 429 428 433 432 431 ;431 433 432 434 427 426 428 430 429 ;432 431 433 426 434 427 429 428 430 ;430 429 428 433 432 431 427 426 434 ;434 427 426 428 430 429 431 433 432 ;426 434 427 429 428 430 432 431 433 ;433 432 431 427 426 434 430 429 428 ;428 430 429 431 433 432 434 427 426 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 ;20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 ;15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 ;34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 ;29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 ;6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 ;13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 ;26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 ;21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 ;4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 ;35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 ;12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 ;19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 ;32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 ;27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 ;10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 ;5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 ;18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 ;25 18 17 28 27 14 31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 ;2 31 12 29 22 21 8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 ;33 8 19 6 23 4 3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 ;16 3 32 1 30 35 22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 ;11 10 9 26 7 36 17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 ;24 5 34 15 20 13 30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 ;31 24 23 34 33 20 1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 ;8 1 18 35 28 27 14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 ;3 14 25 12 29 10 9 20 31 18 35 16 15 26 1 24 5 23 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 ;22 9 2 7 36 5 28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 ;17 16 15 32 13 6 23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 ;30 11 4 21 26 19 36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 ;1 30 29 4 3 26 7 36 35 10 9 32 13 6 5 16 15 2 19 12 11 22 21 8 25 18 17 28 27 14 31 24 23 34 33 20 ;14 7 24 5 34 33 20 13 30 11 4 3 26 19 36 17 10 9 32 25 6 23 16 15 2 31 12 29 22 21 8 1 18 35 28 27 ;9 20 31 18 35 16 15 26 1 24 5 22 21 32 7 30 11 28 27 2 13 36 17 34 33 8 19 6 23 4 3 14 25 12 29 10 ;28 15 8 13 6 11 34 21 14 19 12 17 4 27 20 25 18 23 10 33 26 31 24 29 16 3 32 1 30 35 22 9 2 7 36 5 ;23 22 21 2 19 12 29 28 27 8 25 18 35 34 33 14 31 24 5 4 3 20 1 30 11 10 9 26 7 36 17 16 15 32 13 6 ;36 17 10 27 32 25 6 23 16 33 2 31 12 29 22 3 8 1 18 35 28 9 14 7 24 5 34 15 20 13 30 11 4 21 26 19 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 ;22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 ;18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 ;14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 ;25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 ;1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 ;2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 ;23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 ;19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 ;5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 ;6 20 9 13 12 11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 ;7 1 25 4 18 12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 ;3 22 21 5 14 8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 ;24 8 2 16 15 4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 ;10 19 23 17 11 15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 ;11 25 14 18 17 16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 ;12 6 5 9 23 17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 ;8 2 1 10 19 13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 ;4 13 7 21 20 9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 ;15 24 3 22 16 20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 ;16 5 19 23 22 21 10 24 3 2 1 15 4 8 7 6 20 9 13 12 11 25 14 18 17 ;17 11 10 14 3 22 16 15 19 8 2 21 20 24 13 7 1 25 4 18 12 6 5 9 23 ;13 7 6 15 24 18 12 11 20 4 23 17 16 25 9 3 22 21 5 14 8 2 1 10 19 ;9 18 12 1 25 14 23 17 6 5 19 3 22 11 10 24 8 2 16 15 4 13 7 21 20 ;20 4 8 2 21 25 9 13 7 1 5 14 18 12 6 10 19 23 17 11 15 24 3 22 16 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 ;14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 ;3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 ;16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 ;29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 ;36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 ;25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 ;20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 ;9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 ;22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 ;35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 ;6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 ;31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 ;26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 ;15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 ;28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 ;5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 ;12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 ;1 24 5 28 3 26 7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 ;32 7 12 17 10 33 2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 ;21 8 31 30 29 16 27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 ;34 15 14 25 6 35 4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 ;11 22 9 2 13 36 17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 ;18 23 4 27 20 19 24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 ;7 30 11 34 9 32 13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 ;2 13 18 23 16 3 8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 ;27 14 1 36 35 22 33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 ;4 21 20 31 12 5 10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 ;17 28 15 8 19 6 23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 ;24 29 10 33 26 25 30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 ;13 36 17 4 15 2 19 6 23 10 21 8 25 12 29 16 27 14 31 18 35 22 33 20 1 24 5 28 3 26 7 30 11 34 9 32 ;8 19 24 29 22 9 14 25 30 35 28 15 20 31 36 5 34 21 26 1 6 11 4 27 32 7 12 17 10 33 2 13 18 23 16 3 ;33 20 7 6 5 28 3 26 13 12 11 34 9 32 19 18 17 4 15 2 25 24 23 10 21 8 31 30 29 16 27 14 1 36 35 22 ;10 27 26 1 18 11 16 33 32 7 24 17 22 3 2 13 30 23 28 9 8 19 36 29 34 15 14 25 6 35 4 21 20 31 12 5 ;23 34 21 14 25 12 29 4 27 20 31 18 35 10 33 26 1 24 5 16 3 32 7 30 11 22 9 2 13 36 17 28 15 8 19 6 ;30 35 16 3 32 31 36 5 22 9 2 1 6 11 28 15 8 7 12 17 34 21 14 13 18 23 4 27 20 19 24 29 10 33 26 25 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ;18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 ;19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 19 18 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[7 6 8 1 9 2 4 3 5 ;2 1 3 5 4 6 8 7 9 ;9 5 4 3 8 7 6 2 1 ;1 9 2 4 3 5 7 6 8 ;5 4 6 8 7 9 2 1 3 ;3 8 7 6 2 1 9 5 4 ;4 3 5 7 6 8 1 9 2 ;8 7 9 2 1 3 5 4 6 ;6 2 1 9 5 4 3 8 7 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 ;8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 ;21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 ;34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 ;23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 ;36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 ;7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 ;14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 ;27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 ;4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 ;29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 ;6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 ;13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 ;20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 ;33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 ;10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 ;35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 ;12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 ;19 36 23 10 21 32 25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 ;26 7 24 11 22 15 32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 ;3 14 1 6 35 4 9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 ;16 33 8 13 30 29 22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 ;5 34 9 20 31 12 11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 ;18 17 28 27 2 25 24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 ;25 6 29 16 27 2 31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 ;32 13 30 17 28 21 2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 ;9 20 7 12 5 10 15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 ;22 3 14 19 36 35 28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 ;11 4 15 26 1 18 17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 ;24 23 34 33 8 31 30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 ;31 12 35 22 33 8 1 18 5 28 3 14 7 24 11 34 9 20 13 30 17 4 15 26 19 36 23 10 21 32 25 6 29 16 27 2 ;2 19 36 23 34 27 8 25 6 29 4 33 14 31 12 35 10 3 20 1 18 5 16 9 26 7 24 11 22 15 32 13 30 17 28 21 ;15 26 13 18 11 16 21 32 19 24 17 22 27 2 25 30 23 28 33 8 31 36 29 34 3 14 1 6 35 4 9 20 7 12 5 10 ;28 9 20 25 6 5 34 15 26 31 12 11 4 21 32 1 18 17 10 27 2 7 24 23 16 33 8 13 30 29 22 3 14 19 36 35 ;17 10 21 32 7 24 23 16 27 2 13 30 29 22 33 8 19 36 35 28 3 14 25 6 5 34 9 20 31 12 11 4 15 26 1 18 ;30 29 4 3 14 1 36 35 10 9 20 7 6 5 16 15 26 13 12 11 22 21 32 19 18 17 28 27 2 25 24 23 34 33 8 31 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 16 3 10 13 4 7 14 1 8 11 2 5 12 15 6 ;2 13 4 15 6 1 8 3 10 5 12 7 14 9 16 11 ;7 6 1 12 11 10 5 16 15 14 9 4 3 2 13 8 ;8 11 14 5 12 15 2 9 16 3 6 13 4 7 10 1 ;13 4 7 14 1 8 11 2 5 12 15 6 9 16 3 10 ;6 1 8 3 10 5 12 7 14 9 16 11 2 13 4 15 ;11 10 5 16 15 14 9 4 3 2 13 8 7 6 1 12 ;12 15 2 9 16 3 6 13 4 7 10 1 8 11 14 5 ;1 8 11 2 5 12 15 6 9 16 3 10 13 4 7 14 ;10 5 12 7 14 9 16 11 2 13 4 15 6 1 8 3 ;15 14 9 4 3 2 13 8 7 6 1 12 11 10 5 16 ;16 3 6 13 4 7 10 1 8 11 14 5 12 15 2 9 ;5 12 15 6 9 16 3 10 13 4 7 14 1 8 11 2 ;14 9 16 11 2 13 4 15 6 1 8 3 10 5 12 7 ;3 2 13 8 7 6 1 12 11 10 5 16 15 14 9 4 ;4 7 10 1 8 11 14 5 12 15 2 9 16 3 6 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 ;22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 ;3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 ;4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 ;10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 ;6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 ;2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 ;8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 ;9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 ;15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 ;11 5 19 23 22 16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 ;7 21 15 24 18 12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 ;13 12 6 10 4 18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 ;14 8 2 1 25 19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 ;20 9 3 17 16 25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 ;16 10 24 3 2 21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 ;12 1 20 4 23 17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 ;18 17 11 15 9 23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 ;19 13 7 6 5 24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 ;25 14 8 22 21 5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 ;21 15 4 8 7 1 20 9 13 12 6 25 14 18 17 11 5 19 23 22 16 10 24 3 2 ;17 6 25 9 3 22 11 5 14 8 2 16 10 19 13 7 21 15 24 18 12 1 20 4 23 ;23 22 16 20 14 3 2 21 25 19 8 7 1 5 24 13 12 6 10 4 18 17 11 15 9 ;24 18 12 11 10 4 23 17 16 15 9 3 22 21 20 14 8 2 1 25 19 13 7 6 5 ;5 19 13 2 1 10 24 18 7 6 15 4 23 12 11 20 9 3 17 16 25 14 8 22 21 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[13 8 15 6 1 12 3 10 5 16 7 14 9 4 11 2 ;14 5 4 3 2 9 8 7 6 13 12 11 10 1 16 15 ;7 2 9 12 11 6 13 16 15 10 1 4 3 14 5 8 ;16 11 10 1 4 15 14 5 8 3 2 9 12 7 6 13 ;1 12 3 10 5 16 7 14 9 4 11 2 13 8 15 6 ;2 9 8 7 6 13 12 11 10 1 16 15 14 5 4 3 ;11 6 13 16 15 10 1 4 3 14 5 8 7 2 9 12 ;4 15 14 5 8 3 2 9 12 7 6 13 16 11 10 1 ;5 16 7 14 9 4 11 2 13 8 15 6 1 12 3 10 ;6 13 12 11 10 1 16 15 14 5 4 3 2 9 8 7 ;15 10 1 4 3 14 5 8 7 2 10 12 11 6 13 16 ;8 3 2 9 12 7 6 13 16 11 10 1 4 15 14 5 ;9 4 11 2 13 8 15 6 1 12 3 10 5 16 7 14 ;10 1 16 15 14 5 4 3 2 9 8 7 6 13 12 11 ;3 14 5 8 7 2 9 12 11 6 13 16 15 10 1 4 ;12 7 6 13 16 11 10 1 4 15 14 5 8 3 2 9 ];\r\nvexp=0\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 ;7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 ;8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 ;19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 ;20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 ;1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 ;12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 ;13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 ;24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 ;25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 ;6 10 9 23 2 11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 ;17 1 20 24 8 22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 ;18 22 16 25 19 23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 ;4 13 7 11 15 9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 ;5 14 3 12 21 10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 ;11 15 14 3 7 16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 ;22 6 25 4 13 2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 ;23 2 21 5 24 3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 ;9 18 12 16 20 14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 ;10 19 8 17 1 15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 ;16 20 19 8 12 21 25 24 13 17 1 5 4 18 22 6 10 9 23 2 11 15 14 3 7 ;2 11 5 9 18 7 16 10 14 23 12 21 15 19 3 17 1 20 24 8 22 6 25 4 13 ;3 7 1 10 4 8 12 6 15 9 13 17 11 20 14 18 22 16 25 19 23 2 21 5 24 ;14 23 17 21 25 19 3 22 1 5 24 8 2 6 10 4 13 7 11 15 9 18 12 16 20 ;15 24 13 22 6 20 4 18 2 11 25 9 23 7 16 5 14 3 12 21 10 19 8 17 1 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[9 8 7 6 13 12 11 10 1 16 15 14 5 4 3 2 ;14 1 4 11 2 5 8 15 6 9 12 3 10 13 16 7 ;3 2 5 16 7 6 9 4 11 10 13 8 15 14 1 12 ;12 15 10 13 16 3 14 1 4 7 2 5 8 11 6 9 ;13 12 11 10 1 16 15 14 5 4 3 2 9 8 7 6 ;2 5 8 15 6 9 12 3 10 13 16 7 14 1 4 11 ;7 6 9 4 11 10 13 8 15 14 1 12 3 2 5 16 ;16 3 14 1 4 7 2 5 8 11 6 9 12 15 10 13 ;1 16 15 14 5 4 3 2 9 8 7 6 13 12 11 10 ;6 9 12 3 10 13 16 7 14 1 4 11 2 5 8 15 ;11 10 13 8 15 14 1 12 3 2 5 16 7 6 9 4 ;4 7 2 5 8 11 6 9 12 15 10 13 16 3 14 1 ;5 4 3 2 9 8 7 6 13 12 11 10 1 16 15 14 ;10 13 16 7 14 1 4 11 2 5 8 15 6 9 12 3 ;15 14 1 12 3 2 5 16 7 6 9 4 11 10 13 8 ;8 11 6 9 12 15 10 13 16 3 14 1 4 7 2 5 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 ;8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 ;9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 ;16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 ;35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 ;36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 ;7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 ;14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 ;15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 ;22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 ;5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 ;6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 ;13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 ;20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 ;21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 ;28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 ;11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 ;12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 ;19 24 35 22 15 20 25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 ;26 1 30 11 28 33 32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 ;27 8 25 36 5 10 33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 ;34 9 14 13 12 29 4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 ;17 16 21 2 31 6 23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 ;18 23 4 3 32 7 24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 ;25 30 5 28 21 26 31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 ;32 7 36 17 34 3 2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 ;33 14 31 6 11 16 3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 ;4 15 20 19 18 35 10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 ;23 22 27 8 1 12 29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 ;24 29 10 9 2 13 30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 ;31 36 11 34 27 32 1 6 17 4 33 2 7 12 23 10 3 8 13 18 29 16 9 14 19 24 35 22 15 20 25 30 5 28 21 26 ;2 13 6 23 4 9 8 19 12 29 10 15 14 25 18 35 16 21 20 31 24 5 22 27 26 1 30 11 28 33 32 7 36 17 34 3 ;3 20 1 12 17 22 9 26 7 18 23 28 15 32 13 24 29 34 21 2 19 30 35 4 27 8 25 36 5 10 33 14 31 6 11 16 ;10 21 26 25 24 5 16 27 32 31 30 11 22 33 2 1 36 17 28 3 8 7 6 23 34 9 14 13 12 29 4 15 20 19 18 35 ;29 28 33 14 7 18 35 34 3 20 13 24 5 4 9 26 19 30 11 10 15 32 25 36 17 16 21 2 31 6 23 22 27 8 1 12 ;30 35 16 15 8 19 36 5 22 21 14 25 6 11 28 27 20 31 12 17 34 33 26 1 18 23 4 3 32 7 24 29 10 9 2 13 ];\r\nvexp=1\r\nv=Sudoku_CH(zm);\r\nassert(isequal(v,vexp))","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":66,"test_suite_updated_at":"2013-10-14T05:18:15.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-14T02:09:35.000Z","updated_at":"2025-12-15T20:06:09.000Z","published_at":"2013-10-14T02:26:56.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Sudoku\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Large Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine if the Sudoku square is valid. Each row and column must contain 1:N, for an NxN matix. Nroot=N^.5. Each NrootxNroot block must contain 1:N where blocks start at [1,1+Nroot,...] in Row/Col.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M], NxN matrix (3^2\u0026lt;=N\u0026lt;=6^2)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF, 1=Valid, 0=Invalid\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[TF=1\\n5 3 4 6 7 8 9 1 2\\n6 7 2 1 9 5 3 4 8\\n1 9 8 3 4 2 5 6 7\\n8 5 9 7 6 1 4 2 3\\n4 2 6 8 5 3 7 9 1\\n7 1 3 9 2 4 8 5 6\\n9 6 1 5 3 7 2 8 4\\n2 8 7 4 1 9 6 3 5\\n3 4 5 2 8 6 1 7 9\\n\\nTF=0\\n5 3 4 6 7 8 9 1 2\\n6 7 2 1 9 5 3 4 8\\n1 9 8 3 4 2 5 6 7\\n8 5 9 7 6 1 4 2 3\\n4 2 6 8 999 3 7 9 1\\n7 1 3 9 2 4 8 5 6\\n9 6 1 5 3 7 2 8 4\\n2 8 7 4 1 9 6 3 5\\n3 4 5 2 8 6 1 7 9]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 7 minutes with 1146 of 2010 able to process the large data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1903,"title":"GJam 2014 China Rd A: Maze with a Left Hand Rule","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard#s=p3 GJam 2014 China Cross the Maze\u003e.\r\n\r\nThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\r\n\r\n\r\n*Input:* [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\r\n\r\n*Output:* Path, a string of Movements {N,S,E,W}. If Path is \u003e10,000 moves or No solution return a null string.\r\n\r\n*Examples:*\r\n\r\n  .##.#\r\n  .....\r\n  ...#.\r\n  .###.\r\n  ...#.\r\n  1 1 5 3\r\n\r\nNote: (1,1) is Top Left and start point for this case. \r\n\r\nThe # are replaced by 1s and '.' will be 0s.\r\n\r\nOutput: SEEENSESSSNNNWWSWWSSEE\r\n\r\n*Contest Performance:* Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard#s=p3\"\u003eGJam 2014 China Cross the Maze\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Path, a string of Movements {N,S,E,W}. If Path is \u003e10,000 moves or No solution return a null string.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e.##.#\r\n.....\r\n...#.\r\n.###.\r\n...#.\r\n1 1 5 3\r\n\u003c/pre\u003e\u003cp\u003eNote: (1,1) is Top Left and start point for this case.\u003c/p\u003e\u003cp\u003eThe # are replaced by 1s and '.' will be 0s.\u003c/p\u003e\u003cp\u003eOutput: SEEENSESSSNNNWWSWWSSEE\u003c/p\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\u003c/p\u003e","function_template":"function Path=Maze_CH(m,sf);\r\n  Path='';;\r\nend","test_suite":"%%\r\ntic\r\nzm=[0 1 ;1 0 ];\r\nzsf=[1 1 2 2 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 1 0 1 ;0 0 0 0 0 ;0 0 0 1 0 ;0 1 1 1 0 ;0 0 0 1 0 ];\r\nzsf=[1 1 5 3 ];\r\nvexp='SEEENSESSSNNNWWSWWSSEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 ;0 1 0 ;0 0 0 ];\r\nzsf=[1 1 3 3 ];\r\nvexp='EESS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 2 2 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 1 0 1 0 1 ;0 0 0 0 0 0 0 0 ;1 1 1 1 1 1 1 0 ;0 0 0 0 0 0 0 0 ;0 1 0 1 0 1 0 1 ;0 1 1 1 1 1 1 1 ;0 1 0 1 0 1 0 1 ;0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 8 8 ];\r\nvexp='SEENSEENSEENSESSWSNWWSNWWSNWWSSSSEENSEENSEENSE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 3 1 ];\r\nvexp='EEEEEEEESESSSSSSSSWWWWWWWWWNNNNNNN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 7 1 ];\r\nvexp='EEEEEEEEESSSSSSSSSWWWWWWWWWNNN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 1 0 0 ;0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 1 ;0 0 0 1 0 0 0 0 0 0 ;0 1 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 3 ];\r\nvexp='NNNNNENNWNNEEEEEEEEESSSSSWSSESSWWWWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 1 4 ];\r\nvexp='SSSSSSSSSWWWWWWWWWNNNNNNNNNEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 2 ];\r\nvexp='NNNNNNNNNEEEEEEEEESWSSESSSSSSWWWWWNWWSW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 1 1 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 1 10 ];\r\nvexp='WWWWWWWWWNNNNNNNNNEEWSSEENENEEEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 5 10 ];\r\nvexp='WWWWWWWWWNNNNNNNNNEEEEEEEEESSSS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 0 0 0 0 0 0 ;0 0 0 0 1 0 1 0 0 0 ;0 0 0 0 0 1 0 1 0 1 ;0 0 0 0 1 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 1 ;0 0 0 1 0 0 0 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 1 9 1 ];\r\nvexp='SEENEEEEEEESWSSESSSWSSESWWWWWWWWNW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 1 0 0 0 0 0 1 1 ;0 1 0 0 0 1 0 1 1 0 ;0 0 0 1 0 1 0 1 0 1 ;0 0 1 0 1 0 1 0 0 1 ;0 0 0 1 0 0 0 0 0 1 ;0 1 0 0 1 0 0 1 1 1 ;0 0 0 1 0 1 0 0 0 1 ;0 1 0 0 0 1 0 0 0 0 ;1 0 0 1 0 0 1 0 0 0 ;0 1 0 1 1 0 0 0 0 1 ];\r\nzsf=[10 1 9 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 1 0 0 0 0 0 0 ;0 1 0 0 0 0 1 0 0 0 ;1 0 0 1 0 0 1 0 0 0 ;1 0 0 1 1 0 0 0 0 0 ;0 1 1 0 1 0 1 1 1 0 ;1 1 1 0 0 0 0 0 0 0 ;1 0 0 0 1 0 1 0 0 0 ;1 1 1 1 0 1 0 0 1 0 ;1 1 0 1 1 0 1 1 1 1 ;0 1 1 1 1 0 1 1 1 0 ];\r\nzsf=[1 1 10 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 0 0 0 0 1 1 ;1 0 0 1 1 0 0 1 0 1 ;0 0 0 1 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 0 1 ;0 0 1 0 0 1 0 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ;0 0 1 1 1 1 1 1 0 0 ;1 0 0 0 1 0 1 1 1 0 ;1 0 0 0 1 1 0 1 1 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 3 6 ];\r\nvexp='';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 0 0 ;1 0 0 1 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ;0 0 1 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 0 0 0 1 0 0 ];\r\nzsf=[10 1 10 3 ];\r\nvexp='NNNNNSESEENNWNWNNWNESEENEEEEEESSSSSSSSSWNNWWSSWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 1 0 0 0 0 ;0 0 0 0 0 0 0 1 0 0 ;0 0 0 0 1 0 0 0 0 1 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 1 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 0 0 0 1 0 1 ;0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ];\r\nzsf=[1 1 5 3 ];\r\nvexp='EESEENSEENEEESWSSEWSWSWSSEENSESSNWWSWWWWWWWNNNNNEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 0 0 1 1 ;0 1 0 0 0 0 0 1 0 0 ;0 0 0 1 0 0 1 1 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 1 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 1 0 0 ;0 0 0 0 1 0 0 0 0 0 ];\r\nzsf=[10 10 8 10 ];\r\nvexp='WWWWNWWSWWWNNNNNNNNNEEEEEEEWSWSWSSEENEENNESSSSWWSSEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 1 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;1 0 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 1 1 0 ;0 0 0 0 0 0 1 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 1 0 0 0 0 ;1 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 10 ];\r\nvexp='ENSEENNWNWWSNNNENENNWWNEEESEENEEEESSSSNWWWSWSSEENESESSS';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 1 0 0 0 0 0 ;1 1 1 0 0 0 1 0 0 0 ;0 0 1 1 1 0 1 0 0 0 ;0 0 0 1 1 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 1 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 1 0 ;0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ];\r\nzsf=[10 10 6 10 ];\r\nvexp='WWWWWWNWWSWNNNNNNNESEWSSEENEENNNWWNWWWEEESEENEEEESSSWSSE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 1 1 0 0 1 ;0 0 0 0 0 0 0 1 0 0 ;1 0 0 0 0 1 0 0 1 0 ;0 0 0 0 0 0 0 0 0 1 ;0 0 0 1 1 0 1 0 0 0 ;0 1 1 1 0 0 0 1 0 0 ;0 0 0 0 1 0 1 0 0 0 ];\r\nzsf=[1 10 6 2 ];\r\nvexp='SSWSSESNWNWNNWWSWSSEESESESESSWWENNWNWWSSEWSNWENNWWWSWWSSEEEWWWNNNEN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 0 0 0 ;0 0 0 1 0 1 0 0 0 0 ;0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 1 0 1 0 ;0 0 0 0 0 0 0 1 1 0 ;1 1 0 0 0 1 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 0 ];\r\nzsf=[1 10 2 8 ];\r\nvexp='SSSSSSSSSWWWWWWWNWWSNEENNWWNEENNWWNNNEEEEEWSSEWSSEENENN';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[1 0 0 0 0 0 0 0 0 0 ;0 0 0 1 0 0 1 0 0 0 ;1 0 0 0 0 0 0 0 1 0 ;0 0 1 1 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 1 ;1 0 0 0 1 0 0 0 0 0 ;0 0 0 1 0 0 0 0 1 0 ;0 0 1 0 0 1 0 0 0 0 ;0 0 0 0 0 1 0 1 0 0 ;0 0 1 0 0 0 1 0 1 0 ];\r\nzsf=[1 10 1 6 ];\r\nvexp='SSSWSSESSSSNWNWWSNNWWSSSEWWNWWSWNNNENNWNENNWENEEEE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 0 0 0 ;0 0 0 0 0 0 1 0 1 0 ;0 0 0 0 0 0 0 0 1 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ;1 0 0 1 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 1 0 ];\r\nzsf=[1 1 7 4 ];\r\nvexp='EEEEESSEENNEESSSSSSSSSNNWWSSWWNWWSWWWNNEENNWNWESESE';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 1 0 0 1 1 1 0 1 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 1 0 0 ;0 0 0 1 1 1 0 0 0 0 ;1 1 1 0 0 0 0 0 1 0 ;0 1 0 0 0 1 0 0 0 1 ;0 0 1 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 0 0 0 1 0 0 0 0 ;0 0 0 1 0 0 0 0 0 0 ];\r\nzsf=[10 1 10 5 ];\r\nvexp='NNNNSESEENNWENEEENNWWWNWWSSEWWNNNSEENESEEEENSEENSSSSNWWSSESESSSWWWWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 0 0 0 1 1 0 1 ;0 0 1 0 0 0 0 0 0 0 ;0 1 0 1 0 0 0 0 1 0 ;0 0 0 0 1 0 0 0 0 0 ;0 1 0 0 0 0 0 0 0 1 ;0 0 0 0 1 0 0 1 0 0 ;0 0 0 0 1 0 0 1 0 1 ;0 0 0 0 0 1 0 0 1 0 ;0 0 0 0 0 1 1 0 0 0 ;0 0 1 0 0 0 1 0 0 0 ];\r\nzsf=[10 1 9 2 ];\r\nvexp='NNNNNNNNNEEEEESEEENSESSWSSEWSNNWWSSSESEENSSWWNNWNWNNWWSSSESSEWWNWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzm=[0 0 0 1 0 0 1 0 0 0 ;1 0 0 0 0 1 1 0 0 1 ;0 0 1 1 0 0 0 0 1 0 ;0 1 0 1 0 0 0 0 1 0 ;1 1 0 0 0 0 0 0 0 0 ;1 1 0 0 0 0 0 0 0 0 ;0 0 0 0 0 0 0 0 0 0 ;0 0 1 0 0 0 0 0 0 0 ;1 0 0 0 1 0 0 0 0 1 ;0 0 0 0 0 1 0 1 0 0 ];\r\nzsf=[10 1 8 4 ];\r\nvexp='ENNWNEENNNSEENNNWWWSWSNENNWEESEENEWSSEEENNEEWSWSSSEENNSSSSSWSSEWNWWSNWNWW';\r\nvstr=Maze_CH(zm,zsf);\r\nassert(strcmp(vstr,vexp))\r\ntoc","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-30T03:46:21.000Z","updated_at":"2026-02-10T13:15:01.000Z","published_at":"2013-09-30T04:01:29.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard#s=p3\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Cross the Maze\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to minimally traverse a Maze from a Starting Point to Finish Point in less than 10,000 moves where the Bot can only go forward and must maintain its Left Arm in contact with a wall. At the Start Point the Bot can only touch NSEW. After the first move the Bot maintains contact on diagonals. Rotations in a cul-de-sac or turning are not counted as moves.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M, Start_Finish] where M is an NxN (0,1=Wall) array and Start_Finish is [Sr,Sc,Fr,Fc]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Path, a string of Movements {N,S,E,W}. If Path is \u0026gt;10,000 moves or No solution return a null string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[.##.#\\n.....\\n...#.\\n.###.\\n...#.\\n1 1 5 3]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: (1,1) is Top Left and start point for this case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe # are replaced by 1s and '.' will be 0s.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: SEEENSESSSNNNWWSWWSSEE\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 17 minutes with only 134 correct solutions in 3 hours.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1901,"title":"GJam 2014 China Rd A: Read Phone Number","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number\u003e. Small Case.\r\n\r\nThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\r\n\r\n\r\n*Input:* [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\r\n\r\n*Output:* Text, a string of the reading based upon segments\r\n\r\n*Examples:*\r\n\r\n  [Number,Segments]  [Text]\r\n    ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n    ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n    \r\n\r\n*Contest Performance:* Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2924486/dashboard\"\u003eGJam 2014 China Read Phone Number\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Text, a string of the reading based upon segments\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[Number,Segments]  [Text]\r\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\r\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\u003c/p\u003e","function_template":"function Text = Phone_CH(str,v) %\r\n Text='';\r\nend\r\n\r\n% One method for inserting strings from a cell array\r\nfunction valuestr=Phone_number(x)\r\n valuecell={'zero' 'one' 'two' 'three' 'four' 'five' 'six' 'seven' 'eight' 'nine'};\r\n valuestr=valuecell{x+1};\r\nend\r\n\r\nfunction qtystr=Phone_qty(x)\r\n qtycell={'' 'double' 'triple' 'quadruple' 'quintuple' 'sextuple' 'septuple' 'octuple' 'nonuple' 'decuple'};\r\n qtystr=qtycell{x};\r\nend","test_suite":"%%\r\ntic\r\nzstr='1';\r\nzv=[1 ];\r\nvexp='one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='22';\r\nzv=[2 ];\r\nvexp='double two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='333';\r\nzv=[3 ];\r\nvexp='triple three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4444';\r\nzv=[4 ];\r\nvexp='quadruple four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='55555';\r\nzv=[5 ];\r\nvexp='quintuple five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='666666';\r\nzv=[6 ];\r\nvexp='sextuple six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7777777';\r\nzv=[7 ];\r\nvexp='septuple seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='88888888';\r\nzv=[8 ];\r\nvexp='octuple eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='999999999';\r\nzv=[9 ];\r\nvexp='nonuple nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0000000000';\r\nzv=[10 ];\r\nvexp='decuple zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111';\r\nzv=[1 1 1 1 1 1 1 1 1 1 ];\r\nvexp='one one one one one one one one one one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1111111111';\r\nzv=[1 2 3 4 ];\r\nvexp='one double one triple one quadruple one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6701604014';\r\nzv=[1 4 5 ];\r\nvexp='six seven zero one six zero four zero one four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4096453178';\r\nzv=[8 2 ];\r\nvexp='four zero nine six four five three one seven eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5418148180';\r\nzv=[5 3 2 ];\r\nvexp='five four one eight one four eight one eight zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2319652041';\r\nzv=[8 2 ];\r\nvexp='two three one nine six five two zero four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9645684646';\r\nzv=[6 2 1 1 ];\r\nvexp='nine six four five six eight four six four six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4508456969';\r\nzv=[5 3 2 ];\r\nvexp='four five zero eight four five six nine six nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1839791609';\r\nzv=[5 1 3 1 ];\r\nvexp='one eight three nine seven nine one six zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9398750802';\r\nzv=[1 1 1 4 2 1 ];\r\nvexp='nine three nine eight seven five zero eight zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5263950835';\r\nzv=[4 5 1 ];\r\nvexp='five two six three nine five zero eight three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1456187089';\r\nzv=[3 6 1 ];\r\nvexp='one four five six one eight seven zero eight nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='64360690';\r\nzv=[8 ];\r\nvexp='six four three six zero six nine zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7367';\r\nzv=[2 1 1 ];\r\nvexp='seven three six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2441739';\r\nzv=[5 2 ];\r\nvexp='two double four one seven three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7532179';\r\nzv=[1 1 2 2 1 ];\r\nvexp='seven five three two one seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0850664';\r\nzv=[3 4 ];\r\nvexp='zero eight five zero double six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='8013334';\r\nzv=[5 2 ];\r\nvexp='eight zero one double three three four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0184088';\r\nzv=[2 1 4 ];\r\nvexp='zero one eight four zero double eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='706181428';\r\nzv=[4 4 1 ];\r\nvexp='seven zero six one eight one four two eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='98530';\r\nzv=[5 ];\r\nvexp='nine eight five three zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='29664';\r\nzv=[5 ];\r\nvexp='two nine double six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='49502';\r\nzv=[2 3 ];\r\nvexp='four nine five zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='15';\r\nzv=[2 ];\r\nvexp='one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='562640038';\r\nzv=[4 4 1 ];\r\nvexp='five six two six four double zero three eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1148979';\r\nzv=[6 1 ];\r\nvexp='double one four eight nine seven nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='79982';\r\nzv=[3 1 1 ];\r\nvexp='seven double nine eight two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='769';\r\nzv=[3 ];\r\nvexp='seven six nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1742234';\r\nzv=[6 1 ];\r\nvexp='one seven four double two three four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='81818447';\r\nzv=[5 1 1 1 ];\r\nvexp='eight one eight one eight four four seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='5';\r\nzv=[1 ];\r\nvexp='five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='86';\r\nzv=[2 ];\r\nvexp='eight six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0573913609';\r\nzv=[6 1 2 1 ];\r\nvexp='zero five seven three nine one three six zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='497772738';\r\nzv=[1 3 2 3 ];\r\nvexp='four nine double seven seven two seven three eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2252931';\r\nzv=[1 5 1 ];\r\nvexp='two two five two nine three one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='19664';\r\nzv=[3 2 ];\r\nvexp='one nine six six four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='566175';\r\nzv=[5 1 ];\r\nvexp='five double six one seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='92433';\r\nzv=[4 1 ];\r\nvexp='nine two four three three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='912039567';\r\nzv=[1 6 2 ];\r\nvexp='nine one two zero three nine five six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4820841';\r\nzv=[5 1 1 ];\r\nvexp='four eight two zero eight four one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='71';\r\nzv=[1 1 ];\r\nvexp='seven one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4690';\r\nzv=[1 1 2 ];\r\nvexp='four six nine zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='106624';\r\nzv=[4 2 ];\r\nvexp='one zero double six two four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7900005';\r\nzv=[6 1 ];\r\nvexp='seven nine quadruple zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='407';\r\nzv=[2 1 ];\r\nvexp='four zero seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7738672895';\r\nzv=[8 1 1 ];\r\nvexp='double seven three eight six seven two eight nine five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='027326244';\r\nzv=[2 2 4 1 ];\r\nvexp='zero two seven three two six two four four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='115855';\r\nzv=[2 1 2 1 ];\r\nvexp='double one five eight five five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6553794';\r\nzv=[5 1 1 ];\r\nvexp='six double five three seven nine four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='426185417';\r\nzv=[8 1 ];\r\nvexp='four two six one eight five four one seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='31';\r\nzv=[1 1 ];\r\nvexp='three one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='68';\r\nzv=[1 1 ];\r\nvexp='six eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='05658716';\r\nzv=[4 4 ];\r\nvexp='zero five six five eight seven one six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='87';\r\nzv=[1 1 ];\r\nvexp='eight seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='99329';\r\nzv=[3 2 ];\r\nvexp='double nine three two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='21';\r\nzv=[1 1 ];\r\nvexp='two one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82';\r\nzv=[1 1 ];\r\nvexp='eight two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3273256549';\r\nzv=[8 1 1 ];\r\nvexp='three two seven three two five six five four nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='4';\r\nzv=[1 ];\r\nvexp='four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0';\r\nzv=[1 ];\r\nvexp='zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='780409';\r\nzv=[4 1 1 ];\r\nvexp='seven eight zero four zero nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='252966140';\r\nzv=[4 3 2 ];\r\nvexp='two five two nine double six one four zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='3416708243';\r\nzv=[10 ];\r\nvexp='three four one six seven zero eight two four three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='715';\r\nzv=[2 1 ];\r\nvexp='seven one five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='714860127';\r\nzv=[7 2 ];\r\nvexp='seven one four eight six zero one two seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='148725';\r\nzv=[4 2 ];\r\nvexp='one four eight seven two five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='130';\r\nzv=[2 1 ];\r\nvexp='one three zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='59696645';\r\nzv=[1 1 1 2 3 ];\r\nvexp='five nine six nine six six four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='221065';\r\nzv=[2 2 2 ];\r\nvexp='double two one zero six five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='57715162';\r\nzv=[2 3 2 1 ];\r\nvexp='five seven seven one five one six two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='110';\r\nzv=[2 1 ];\r\nvexp='double one zero';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7537367';\r\nzv=[1 4 2 ];\r\nvexp='seven five three seven three six seven';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='9526681205';\r\nzv=[6 3 1 ];\r\nvexp='nine five two double six eight one two zero five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='0818593729';\r\nzv=[1 3 2 4 ];\r\nvexp='zero eight one eight five nine three seven two nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='729800081';\r\nzv=[9 ];\r\nvexp='seven two nine eight triple zero eight one';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='2124';\r\nzv=[1 1 1 1 ];\r\nvexp='two one two four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='7045';\r\nzv=[3 1 ];\r\nvexp='seven zero four five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='6317406';\r\nzv=[7 ];\r\nvexp='six three one seven four zero six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='922906835';\r\nzv=[8 1 ];\r\nvexp='nine double two nine zero six eight three five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='55';\r\nzv=[2 ];\r\nvexp='double five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='70985826';\r\nzv=[3 2 1 2 ];\r\nvexp='seven zero nine eight five eight two six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='1619499314';\r\nzv=[8 1 1 ];\r\nvexp='one six one nine four double nine three one four';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='89375';\r\nzv=[1 1 3 ];\r\nvexp='eight nine three seven five';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='655162';\r\nzv=[1 5 ];\r\nvexp='six double five one six two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='180902';\r\nzv=[3 3 ];\r\nvexp='one eight zero nine zero two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='39106';\r\nzv=[5 ];\r\nvexp='three nine one zero six';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='82361352';\r\nzv=[6 2 ];\r\nvexp='eight two three six one three five two';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='39';\r\nzv=[1 1 ];\r\nvexp='three nine';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='63';\r\nzv=[2 ];\r\nvexp='six three';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\n%%\r\nzstr='16748';\r\nzv=[5 ];\r\nvexp='one six seven four eight';\r\nvstr=Phone_CH(zstr,zv);\r\nassert(strcmp(vstr,vexp))\r\ntoc\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-29T21:29:44.000Z","updated_at":"2013-09-29T21:55:08.000Z","published_at":"2013-09-29T21:45:58.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2924486/dashboard\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Read Phone Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is to output a string for the reading of a segmented phone number. When numbers are replicated within a segment the number is preceded by its multiplier. If there are more than 10 repeats in a segment then the number is output for the number of occurrences. Count multipliers are double, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, and decuple for 2 thru 10, respectively.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Number, Segments] where Number is a string and segments is a Vector that sums to the length of Number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Text, a string of the reading based upon segments\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[Number,Segments]  [Text]\\n  ['15012233444', [3 4 4]] ['one five zero one double two three three triple four']\\n  ['15012233444', [3 3 5]] ['one five zero one double two double three triple four']]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 11 minutes with 1885 of 3058 able to process the small data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1944,"title":"GJam 2014 China Rd B: Dragon Maze","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p3 GJam 2014 China Dragon Maze\u003e. Small Case.\r\n\r\nThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path. \r\n\r\nThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)).\r\nEntrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\r\n\r\n\r\n*Input:* [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u003c=10).\r\n\r\n*Output:* [P] maximum Points. If Impossible P=-1;\r\n\r\n*Examples:*\r\n\r\n  [VEE] [M]   [P]\r\n  [0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]\r\n\r\n \r\n*Contest Performance:* Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\r\n\r\n\r\n*Strategy:*\r\n\r\n  1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \r\n  2) A ring of Zeros around the array may simplify processing.\r\n  3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p3\"\u003eGJam 2014 China Dragon Maze\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path.\u003c/p\u003e\u003cp\u003eThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)).\r\nEntrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u0026lt;=10).\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [P] maximum Points. If Impossible P=-1;\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[VEE] [M]   [P]\r\n[0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\u003c/p\u003e\u003cp\u003e\u003cb\u003eStrategy:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \r\n2) A ring of Zeros around the array may simplify processing.\r\n3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.\r\n\u003c/pre\u003e","function_template":"function P=Dragon_CH(ee,m)\r\n  P=0;\r\nend","test_suite":"%%\r\ntic\r\nzee=[0 0 0 1];\r\nzm=[97 68 ];\r\nvexp=165;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[1 0 0 0];\r\nzm=[11 ;92 ];\r\nvexp=103;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 1 1];\r\nzm=[47 -1 ;-1 41 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[9541 9311 1035 9921 9342 2262 8685 7151 184 8189 ;3885 4455 8295 4011 4030 7427 4325 7756 3404 3014 ;4402 9158 999 4298 6612 1696 5965 1822 9039 12 ;6015 8579 9322 7049 4851 5015 5663 9888 8517 5846 ;4428 2402 6653 9074 2764 682 6500 3440 8437 6256 ;6453 9191 1765 7452 3488 8377 5499 9452 6550 4537 ;5815 8916 9467 1489 5965 4317 2855 1627 556 1372 ;3824 1335 125 476 409 9240 1158 6908 2679 5946 ;9515 9131 5136 1280 2934 8623 6008 8432 4427 8909 ;2968 241 7825 8786 8081 3789 9455 936 1767 10 ];\r\nvexp=135772;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[2307 5590 1345 8783 2418 1753 4374 9927 5012 7052 ;5872 879 2534 7360 2158 1820 5982 4517 251 6760 ;3425 9571 3353 1249 8356 1433 1389 7810 2368 9507 ;4172 1026 1449 1868 9808 3866 3620 533 3792 4983 ;7584 6015 5861 6470 3374 4370 8289 5708 8886 4891 ;8819 2311 813 2171 9911 5521 3604 1300 9682 5971 ;806 3853 6997 2254 5720 3156 2471 5691 3689 2614 ;7026 7624 8629 9238 445 8354 3608 5085 413 8845 ;9976 9232 7507 7140 1402 7418 2660 5005 5069 8694 ;976 5874 8898 7972 4480 4618 7479 3302 6660 1167 ];\r\nvexp=113799;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[5916 -1 5143 4544 9275 5587 9249 9234 672 9662 ;-1 6999 8893 5585 490 6646 9354 9502 1651 4422 ;8195 2626 6647 7092 6949 7478 8061 779 780 1073 ;1946 6695 1109 3440 7590 6735 9026 6838 5968 6049 ;2851 398 3047 8095 2334 3537 4741 1687 9390 6391 ;6108 7584 5368 2754 1027 8668 232 9088 9446 1011 ;6512 7743 4057 3972 1182 1646 707 6560 4835 3026 ;2608 4038 3423 2007 2132 5756 1895 6872 7442 1284 ;9614 9901 8867 1333 2655 6245 6352 9238 1684 2150 ;6600 8195 6244 656 2167 3778 8653 2873 337 3487 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[5898 9296 7524 5673 1302 6008 7780 3196 9231 5222 ;4479 5197 5122 9697 6529 4128 5942 9233 3365 7625 ;7734 9964 5820 3977 6971 4338 7754 5623 3562 4442 ;5462 5811 3738 9337 1483 1391 5344 9263 4587 4575 ;836 5417 9771 2309 1466 2651 6437 7407 8235 6153 ;1383 5968 2469 3554 6297 9439 7891 402 1414 7804 ;4844 6875 3615 4933 2563 1449 6323 7907 7063 7261 ;8833 7898 9030 4955 6559 495 3957 9347 7901 2192 ;5499 5635 4511 4319 9189 807 110 3431 7561 -1 ;1235 8756 4749 4849 3688 7311 6297 6362 -1 9712 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 2 0 9];\r\nzm=[-1 3591 -1 9384 6034 8580 2003 -1 8780 1295 ;5605 1377 2240 559 -1 -1 4017 4895 4437 -1 ;-1 -1 -1 9865 -1 1505 2777 -1 436 8170 ;1900 6344 8059 9498 8256 -1 7952 7551 -1 5927 ;-1 -1 7609 -1 1257 1902 -1 8040 4203 -1 ;1361 2292 1143 769 -1 -1 -1 -1 2197 -1 ;3846 -1 2480 -1 -1 -1 -1 -1 -1 -1 ;4444 -1 6690 489 813 8790 -1 -1 -1 -1 ;3729 5436 -1 8544 -1 -1 -1 -1 -1 -1 ;-1 3743 -1 6213 -1 -1 -1 -1 -1 -1 ];\r\nvexp=85015;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 4 3 9];\r\nzm=[256 -1 6593 -1 4076 -1 8308 8531 8388 1339 ;6280 8079 6556 5099 3523 1967 7424 -1 1469 -1 ;-1 9317 -1 6682 -1 2996 -1 3140 3913 -1 ;2927 2797 -1 9032 9111 -1 1637 5917 -1 5971 ;3285 -1 6158 5977 -1 -1 -1 6944 5424 6439 ;2389 7565 -1 5558 5485 588 -1 -1 4093 -1 ;-1 8297 -1 -1 7995 -1 -1 -1 6639 8591 ;-1 -1 -1 -1 -1 2803 5365 7702 9610 -1 ;-1 -1 -1 -1 -1 6383 -1 -1 8763 3884 ;-1 -1 -1 -1 -1 -1 4980 966 7330 -1 ];\r\nvexp=81434;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 7 0 9];\r\nzm=[9117 4644 7637 2065 8336 9446 7761 9053 -1 3232 ;-1 9846 -1 898 -1 1074 -1 1715 4774 5778 ;-1 8864 -1 -1 5687 9951 5462 -1 4536 -1 ;-1 -1 -1 -1 -1 7870 -1 7507 1777 4773 ;-1 -1 89 3307 79 1280 -1 -1 -1 2898 ;-1 -1 -1 -1 4952 -1 2748 572 1991 5243 ;-1 -1 -1 -1 2706 4551 -1 8752 -1 7862 ;-1 -1 -1 5293 6847 -1 -1 4293 -1 308 ;-1 -1 -1 -1 -1 8374 5932 3627 -1 9426 ;-1 -1 -1 -1 -1 -1 -1 983 -1 3561 ];\r\nvexp=24552;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 3 9 0];\r\nzm=[-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 3869 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 7888 2830 -1 -1 -1 -1 -1 -1 ;-1 257 4329 -1 2131 -1 -1 -1 -1 -1 ;-1 2582 -1 6446 8398 -1 -1 6063 6484 -1 ;8837 9043 5373 9819 -1 8087 -1 6474 -1 1335 ;866 -1 4087 -1 424 8975 1557 4839 -1 5800 ;868 7116 -1 6357 8115 -1 8722 -1 1184 5178 ;-1 8558 9689 2863 -1 3838 -1 1762 -1 6184 ;9784 3468 -1 6082 8935 7345 1958 7935 9830 2768 ];\r\nvexp=40444;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1 2 3 4 5 6 7 8 9 10 ;11 12 13 14 15 16 17 18 19 20 ;21 22 23 24 25 26 27 28 29 30 ;31 32 33 34 35 36 37 38 39 40 ;41 42 43 44 45 46 47 48 49 50 ;51 52 53 54 55 56 57 58 59 60 ;61 62 63 64 65 66 67 68 69 70 ;71 72 73 74 75 76 77 78 79 80 ;81 82 83 84 85 86 87 88 89 90 ;91 92 93 94 95 96 97 98 99 100 ];\r\nvexp=1324;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1 11 21 31 41 51 61 71 81 91 ;2 12 22 32 42 52 62 72 82 92 ;3 13 23 33 43 53 63 73 83 93 ;4 14 24 34 44 54 64 74 84 94 ;5 15 25 35 45 55 65 75 85 95 ;6 16 26 36 46 56 66 76 86 96 ;7 17 27 37 47 57 67 77 87 97 ;8 18 28 38 48 58 68 78 88 98 ;9 19 29 39 49 59 69 79 89 99 ;10 20 30 40 50 60 70 80 90 100 ];\r\nvexp=1324;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 1 4 1];\r\nzm=[-1 -1 1134 9086 5787 -1 -1 9759 -1 ;-1 5195 1440 5405 6267 9573 4021 -1 -1 ;-1 8437 7138 1518 3828 -1 4927 7037 5390 ;4445 9948 -1 -1 8054 5367 -1 -1 6378 ;2675 6263 1410 8224 1185 1056 6214 -1 -1 ;3465 4891 179 -1 8233 3186 3146 4940 -1 ;9212 -1 622 9232 2128 -1 4591 -1 -1 ;853 2385 8569 3381 -1 31 9357 1202 -1 ;9153 437 481 3041 9860 -1 802 -1 5243 ;-1 3979 1226 -1 3966 8037 -1 7564 -1 ];\r\nvexp=11154;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[6 1 5 4];\r\nzm=[8935 7055 9523 5947 9420 1029 1519 9655 7310 -1 ;5347 6550 956 3676 -1 -1 1605 165 9339 924 ;7608 -1 -1 -1 9106 2457 7428 1436 1464 -1 ;-1 8605 753 3273 -1 5557 -1 4895 86 471 ;6830 5364 -1 -1 -1 8767 -1 -1 1753 8126 ;1440 -1 -1 -1 7917 7380 870 -1 -1 8426 ;9518 1719 246 1756 1823 -1 -1 6500 9647 6158 ;-1 3753 9179 3752 -1 -1 3927 -1 28 8762 ;3442 1154 -1 2977 -1 -1 -1 -1 497 -1 ;5046 4922 8565 5170 9416 7140 4702 5262 5264 8821 ];\r\nvexp=13461;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 9 0 7];\r\nzm=[-1 -1 -1 -1 5591 -1 6865 6361 -1 9574 ;5326 2417 -1 -1 6193 9084 1910 5890 9530 4249 ;5130 -1 -1 -1 2376 -1 -1 3886 8309 1892 ;-1 4623 6047 744 2180 817 6660 2425 2867 4950 ;-1 -1 -1 7617 1260 2832 4751 -1 -1 5698 ;-1 2864 4297 8644 3112 1812 2562 5793 4826 1341 ;737 4961 6790 3341 876 9914 9275 -1 9924 756 ;7283 3200 4971 4962 -1 8083 -1 8819 -1 7409 ;7651 5137 -1 1403 6483 -1 6406 7515 -1 -1 ;7345 1246 2469 3331 251 -1 8029 6777 3210 -1 ];\r\nvexp=43605;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 6 9 8];\r\nzm=[4471 2340 6565 -1 -1 3663 -1 -1 4562 8294 ;8432 -1 -1 383 9745 3207 944 340 7820 3426 ;2977 97 5374 1193 4024 2963 2227 2262 6405 2380 ;4866 6164 3694 178 1313 4376 6297 6060 4583 9330 ;9358 7274 6389 6195 2179 -1 3397 7809 557 2087 ;1977 -1 2617 9973 -1 907 -1 5864 -1 -1 ;-1 6127 2119 7554 3268 7556 -1 4465 1297 3716 ;-1 -1 730 1361 5616 -1 -1 7981 7319 3103 ;-1 -1 6599 4345 -1 5421 7790 4406 876 1764 ;7527 -1 -1 8441 7260 9243 9942 -1 8987 -1 ];\r\nvexp=46698;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[3 5 3 4];\r\nzm=[5297 1690 2134 6500 -1 378 99 -1 7714 7786 ;1895 -1 5584 1030 1354 3108 9637 -1 4744 4892 ;-1 7743 6128 3847 -1 9009 -1 -1 9951 -1 ;9108 2993 -1 4347 2520 1147 3077 8541 5470 2062 ;-1 6534 4545 1801 -1 -1 1137 8521 -1 7866 ];\r\nvexp=3667;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[7 6 4 6];\r\nzm=[199 9295 8751 5145 2157 3343 -1 -1 7184 -1 ;3780 3730 6605 -1 8658 -1 3573 -1 -1 -1 ;6749 6135 -1 7631 -1 4179 -1 -1 4080 -1 ;3592 1382 9020 -1 6831 -1 6736 8383 -1 2258 ;1674 -1 4663 -1 6161 2406 268 -1 931 4237 ;100 6649 6439 -1 -1 5266 3204 4114 5940 5908 ;1230 -1 4134 6819 3172 8035 6784 -1 6391 -1 ;9181 -1 -1 7310 -1 1576 1892 5821 4469 2080 ];\r\nvexp=12148;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 3 2 0];\r\nzm=[290 -1 5107 7466 7064 ;6249 -1 3213 6568 -1 ;1037 -1 4971 4915 -1 ;6851 9043 8163 1379 6540 ;2051 8939 1483 -1 4184 ;7062 137 -1 5275 9462 ;-1 -1 4316 3265 2838 ;-1 -1 1471 9758 7724 ;-1 -1 3883 -1 4987 ;6843 7025 6749 7147 1906 ];\r\nvexp=51934;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[7 2 5 2];\r\nzm=[3900 9521 7343 2759 -1 ;5239 -1 1132 4911 3520 ;1517 9058 -1 -1 -1 ;-1 -1 -1 -1 8097 ;-1 7717 4099 5529 7959 ;-1 6950 9579 5029 -1 ;6687 9672 -1 -1 -1 ;1507 5064 2149 1922 7228 ;-1 8639 6134 -1 933 ;-1 511 -1 -1 744 ];\r\nvexp=33414;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 5 6 0];\r\nzm=[6137 3305 6360 4891 6396 4463 8888 7982 ;7881 -1 4743 6730 360 4945 9032 -1 ;7273 3476 8679 -1 3569 2493 -1 7527 ;5487 562 9739 813 6484 6067 -1 9545 ;-1 5162 -1 4989 8112 -1 8032 1019 ;-1 -1 5009 404 1699 1676 5849 8070 ;1003 4164 2297 4730 4313 6194 5684 -1 ];\r\nvexp=24377;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 2 6 7];\r\nzm=[8353 7263 7609 -1 2120 5314 -1 9477 1416 3433 ;-1 590 7657 2619 -1 -1 4684 9284 -1 -1 ;3862 -1 2692 4001 1891 -1 7719 6477 -1 5973 ;-1 8015 -1 -1 148 2255 3535 -1 1866 1644 ;1340 1620 3925 5165 -1 3694 4100 1434 3612 -1 ;7843 -1 -1 1391 7637 -1 5855 -1 7250 9629 ;1768 2379 -1 -1 3330 410 -1 9549 -1 -1 ;9493 9719 4813 1231 -1 -1 -1 5478 -1 5106 ;82 8285 251 6695 8652 -1 4552 79 -1 3502 ;3118 7594 8758 -1 -1 -1 8470 4711 -1 2424 ];\r\nvexp=-1;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[5 4 7 0];\r\nzm=[6808 5848 -1 9349 6503 5045 2772 -1 -1 8778 ;9668 4184 2263 -1 1288 1153 2705 7033 2495 -1 ;5880 2410 -1 7454 -1 2978 2427 4378 -1 4913 ;208 2853 -1 4005 3964 -1 9828 -1 4786 7602 ;-1 -1 -1 -1 -1 329 7985 -1 -1 28 ;-1 -1 -1 -1 4433 4085 9221 6038 7258 3834 ;9013 -1 5560 2745 5061 -1 3495 -1 -1 -1 ;2760 6565 7246 6924 -1 2700 -1 -1 4588 -1 ;9953 4344 8740 -1 152 8435 6756 3520 3078 9535 ;9930 9193 2399 246 4552 5468 -1 -1 -1 -1 ];\r\nvexp=35734;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[4 0 7 0];\r\nzm=[919 3728 6660 -1 5410 4513 8419 6070 482 6421 ;111 -1 4828 8468 -1 3201 -1 4659 -1 4738 ;-1 361 8017 4673 8999 4687 852 -1 7981 -1 ;-1 1520 9557 5945 8837 3767 9832 9775 -1 9935 ;5796 9072 -1 -1 392 341 3808 4109 4905 -1 ;9614 -1 8450 977 247 2107 7400 6786 -1 -1 ;4341 -1 4733 2658 -1 6043 8860 1838 6912 523 ;2432 4045 -1 -1 5361 895 -1 3895 1321 6672 ;2026 5899 1723 1201 1691 9580 1387 -1 -1 1689 ];\r\nvexp=22183;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[1 2 2 1];\r\nzm=[-1 -1 -1 -1 7201 7409 -1 9659 2860 9119 ;-1 9984 7612 9104 607 -1 9877 -1 2932 1986 ;5397 1618 2580 -1 69 2446 -1 -1 1160 7900 ;-1 9269 -1 6227 5896 200 5386 8138 -1 8909 ;7316 1699 -1 3087 -1 -1 -1 4699 -1 3670 ;8428 9133 3314 3461 4829 6483 7198 8227 8516 5217 ;325 54 8642 8561 -1 8582 -1 6678 3552 -1 ;7012 3037 6339 9407 6933 -1 9350 1820 5500 -1 ];\r\nvexp=19214;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 9];\r\nzm=[1505 3402 2754 9713 414 2610 2749 8975 8948 1456 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 8381 ;2838 4740 4009 1596 442 4853 3416 6467 6705 1640 ;9059 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;7197 4825 212 7826 2129 6298 2502 1979 9061 4006 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 1733 ;1814 3718 8498 4423 2818 7472 9722 625 2204 8912 ;5365 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;6212 507 5806 7416 274 8624 4120 1914 7683 7669 ;3090 4246 1846 5219 6895 4347 3549 5955 8352 5281 ];\r\nvexp=259550;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[0 0 9 0];\r\nzm=[4120 8421 130 8543 1238 7601 4616 1863 6156 3527 ;3579 8719 386 9384 6135 7011 4359 6606 5276 8393 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 626 ;8366 2638 2471 3584 5884 6817 3484 8190 5168 8765 ;2310 9940 5246 7204 1178 2847 1819 9392 5354 1698 ;2970 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;4073 8435 8705 6559 1797 3063 9516 7073 1456 142 ;1790 445 2612 1725 6329 9429 5208 4518 948 3972 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 6827 ;888 5570 382 8417 4768 2201 7808 121 250 7129 ];\r\nvexp=243332;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[9 0 0 9];\r\nzm=[4193 5036 5833 7103 6832 8895 6619 3904 350 6760 ;2045 7147 9371 3769 3475 8799 8977 4344 9747 9300 ;7523 6986 4869 7904 5402 9636 104 3209 9757 6705 ;337 301 1740 6169 7404 8572 1415 4022 8827 8117 ;7133 872 5263 6503 4640 8737 1654 3616 9432 7752 ;9268 6954 4737 4136 4858 138 3772 1313 9698 3528 ;8018 6386 180 6109 8906 7583 1032 320 7956 9859 ;8436 5088 7082 50 1591 8073 5138 9596 8041 4570 ;7347 7308 1523 2083 1443 6380 8572 1566 4045 4621 ;1445 2062 1006 1625 4522 9911 5559 5554 230 3515 ];\r\nvexp=137679;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\n%%\r\nzee=[3 7 3 6];\r\nzm=[-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 2896 5067 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ;-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ];\r\nvexp=7963;\r\nv=Dragon_CH(zee,zm);\r\nassert(isequal(v,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-19T03:06:44.000Z","updated_at":"2026-02-10T13:28:34.000Z","published_at":"2013-10-19T03:25:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p3\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Dragon Maze\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine the optimal minimum distance path that maximizes score. Multiple minimum distance paths may exist. Output the score for the path that maximizes the cumulative sum of the path.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe input is a vector of Entrance/Exit [ENx,ENy,EXx,EXy] and a Matrix of Points. The Matrix and Entrance/Exit are zero based (Top Left is (0,0)). Entrance and Exit will be valid. A [-1] in the matrix is a Wall that can not be traversed. Movement is limited to NSEW, no diagonals.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [VEE] [M], VEE is 1x4 [ENx,ENy,EXx,EXy], Matrix (NRxNC \u0026lt;=10).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [P] maximum Points. If Impossible P=-1;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[VEE] [M]   [P]\\n[0 2 3 2][-1 1 1 2;1 1 1 1;2 -1 -1 1;1 1 1 1] [7]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 17 minutes with 336 of 2010 able to process the small data set.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eStrategy:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) Check Start/Finish path existence while creating path distances from start. (Suggest offset by +1 to match array). \\n2) A ring of Zeros around the array may simplify processing.\\n3) My preference is to work from Finish to Start while tracking best scores for the Kth distance from the Start. A few tricks here to only check for valid prior values.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1881,"title":"GJam 2013 China Event: Happy Teams","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 9 minutes, 789 out of 1984 correct\r\n\r\n\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n% names is an array of cell arrays   \r\n% N columns of {1x2 cell}\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'Dead_Bowie' 'Nyssa_Raatko'} {'Animora' 'Lafety_Le_Fei'} {'Animora' 'Mothergod'} {'Animora' 'Nyssa_Raatko'} {'Dead_Bowie' 'Genevieve_Savidge'} {'Dead_Bowie' 'Lafety_Le_Fei'} {'Animora' 'Genevieve_Savidge'} {'Dead_Bowie' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'New_Wave'} {'Mephista' 'Ursa'} {'Zaladane' 'Mai_Shen'} {'Mephista' 'Mai_Shen'} {'White_Rabbit' 'Hypnota'} {'White_Rabbit' 'New_Wave'} {'Ursa' 'Scandal'} {'Zaladane' 'New_Wave'} {'Ursa' 'Hypnota'} {'Zaladane' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magenta' 'Golden_Glider'} {'Tala' 'Mothergod'} {'The_Lightning' 'Shiv'} {'The_Lightning' 'Prank'} {'Magenta' 'Shiv'} {'Tala' 'Prank'} {'Trinity' 'Golden_Glider'} {'Magenta' 'Prank'} {'The_Lightning' 'Mothergod'} {'Trinity' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Star_Sapphire'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Dead_Bowie'} {'Lady_Quark' 'Fury_Leika'} {'Lady_Quark' 'Star_Sapphire'} {'The_Lightning' 'Dead_Bowie'} {'Asbestos_Lady' 'Queen_Of_Fables'} {'Unicron' 'Lady_Quark'} {'Asbestos_Lady' 'Star_Sapphire'} {'The_Lightning' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Scandal'} {'Lashina' 'King_Ghidorah'} {'Doctor_Cyber' 'Tala'} {'Lashina' 'Evinlea'} {'Dr_Evil' 'Tala'} {'Zaladane' 'King_Ghidorah'} {'Doctor_Cyber' 'Evinlea'} {'Doctor_Cyber' 'King_Ghidorah'} {'Dr_Evil' 'Scandal'} {'Lashina' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Rampage'} {'Deuce' 'Ursa'} {'Bombshell' 'Ursa'} {'Lady_Octopus' 'Rampage'} {'Doctor_Cyber' 'Black_Mamba'} {'Deuce' 'Madame_Rouge'} {'Doctor_Cyber' 'Rampage'} {'Lady_Octopus' 'Madame_Rouge'} {'Doctor_Cyber' 'Madame_Rouge'} {'Lady_Octopus' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Cyborgirl' 'Fury_Leika'} {'Asbestos_Lady' 'Margaret_Love'} {'Amazing_Grace' 'Fury_Leika'} {'Cyborgirl' 'Hypnota'} {'Duela_Dent' 'Amazing_Grace'} {'Duela_Dent' 'Hypnota'} {'Amazing_Grace' 'Margaret_Love'} {'Duela_Dent' 'Mephista'} {'Duela_Dent' 'Fury_Leika'} {'Asbestos_Lady' 'Mephista'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Poundcakes'} {'Margaret_Love' 'Star_Sapphire'} {'Snapdragon' 'Ingra'} {'Snapdragon' 'Poundcakes'} {'Snapdragon' 'Star_Sapphire'} {'Dead_Bowie' 'Star_Sapphire'} {'Jason_Kreis' 'Ingra'} {'Dead_Bowie' 'Rampage'} {'Dead_Bowie' 'Poundcakes'} {'Margaret_Love' 'Rampage'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Southpaw'} {'Dansen_Macabre' 'Jewelee'} {'Lazara' 'Amazing_Grace'} {'Osira' 'Amazing_Grace'} {'Osira' 'Coachwhip'} {'Coachwhip' 'Princess_Python'} {'Dansen_Macabre' 'Princess_Python'} {'Coachwhip' 'Southpaw'} {'Osira' 'Princess_Python'} {'Osira' 'Jewelee'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Trinity'} {'Lashina' 'Mephista'} {'Lashina' 'Shiv'} {'Lashina' 'Dr_Evil'} {'Lashina' 'Fem_Paragon'} {'Lashina' 'King_Ghidorah'} {'Lashina' 'The_Lightning'} {'Lashina' 'Syndrome'} {'Lashina' 'Margaret_Love'} {'Lashina' 'Lady_Octopus'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lotso' 'Snapdragon'} {'Animora' 'Silver_Swan'} {'Devastation' 'Animora'} {'Snapdragon' 'Devastation'} {'Silver_Swan' 'Lotso'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Livewire'} {'Jason_Kreis' 'Trinity'} {'Spider_Girl' 'Syndrome'} {'Jason_Kreis' 'Livewire'} {'Harley_Quinn' 'Livewire'} {'Spider_Girl' 'Coachwhip'} {'Lady_Octopus' 'Coachwhip'} {'Lady_Octopus' 'Syndrome'} {'Harley_Quinn' 'Coachwhip'} {'Spider_Girl' 'Trinity'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Windfall'} {'Silver_Swan' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Windfall'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Titania'} {'Livewire' 'Abominatrix'} {'Shiv' 'Ursa'} {'Shiv' 'Abominatrix'} {'Princess_Python' 'Abominatrix'} {'Silk_Fever' 'Abominatrix'} {'Livewire' 'Ursa'} {'Princess_Python' 'Titania'} {'Princess_Python' 'Poundcakes'} {'Silk_Fever' 'Poundcakes'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Amy_Madison'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Dr_Evil'} {'Lady_Vic' 'Amy_Madison'} {'Lady_Octopus' 'Ursa'} {'Lafety_Le_Fei' 'Shiv'} {'Princess_Python' 'Amy_Madison'} {'Princess_Python' 'Shiv'} {'Lafety_Le_Fei' 'Ursa'} {'Lafety_Le_Fei' 'Amy_Madison'} {'Lady_Octopus' 'Dr_Evil'} {'Lady_Vic' 'Dr_Evil'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Magenta'} {'Genevieve_Savidge' 'Magenta'} {'Spider_Girl' 'Black_Mamba'} {'Spider_Girl' 'Lady_Shiva'} {'Jinx' 'Lady_Shiva'} {'Spider_Girl' 'Mist'} {'Genevieve_Savidge' 'Lady_Shiva'} {'Jinx' 'Black_Mamba'} {'Genevieve_Savidge' 'Mist'} {'Queen_Of_Fables' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Tigress'} {'Titania' 'Tigress'} {'Golddigger' 'Tigress'} {'Titania' 'Tala'} {'Lafety_Le_Fei' 'Tala'} {'Golddigger' 'Tala'} {'Golddigger' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Livewire'} {'Roulette' 'Mai_Shen'} {'Shiv' 'Bombshell'} {'Ursa' 'Bombshell'} {'Ursa' 'Livewire'} {'Shiv' 'Doctor_Cyber'} {'Roulette' 'Bombshell'} {'Blue_Snowman' 'Mai_Shen'} {'Ursa' 'Doctor_Cyber'} {'Blue_Snowman' 'Livewire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Duela_Dent'} {'Cyborgirl' 'Lafety_Le_Fei'} {'Cyborgirl' 'Duela_Dent'} {'Black_Mamba' 'Unicron'} {'Lady_Death' 'Duela_Dent'} {'Zaladane' 'Cyborgirl'} {'Cyborgirl' 'Devastation'} {'Lady_Death' 'Lafety_Le_Fei'} {'Black_Mamba' 'Devastation'} {'Zaladane' 'Unicron'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rad' 'Jason_Kreis'} {'Emerald_Empress' 'Lady_Vic'} {'Rad' 'Magenta'} {'Lagomorph' 'Jason_Kreis'} {'Lagomorph' 'Lady_Vic'} {'Lagomorph' 'Magenta'} {'Lagomorph' 'Lady_Quark'} {'Emerald_Empress' 'Genevieve_Savidge'} {'Lady_Quark' 'Genevieve_Savidge'} {'Lady_Quark' 'Jason_Kreis'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Lady_Clay'} {'Golden_Glider' 'Titania'} {'Lady_Clay' 'Lashina'} {'Lady_Clay' 'Titania'} {'Black_Mamba' 'Lashina'} {'Lady_Clay' 'Lady_Octopus'} {'Maxima' 'Lady_Octopus'} {'Maxima' 'Titania'} {'Black_Mamba' 'Decay'} {'Golden_Glider' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Fem_Paragon'} {'Abominatrix' 'Fem_Paragon'} {'Lady_Quark' 'Princess_Python'} {'The_Crimson_Ghost' 'Ingra'} {'Abominatrix' 'Jinx'} {'Lady_Quark' 'Rampage'} {'Abominatrix' 'Rampage'} {'Princess_Python' 'Jinx'} {'The_Crimson_Ghost' 'Jinx'} {'Lady_Quark' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Ingra'} {'Dr_Horrible' 'Sun_Girl'} {'Prank' 'Duela_Dent'} {'Valentina' 'Duela_Dent'} {'Prank' 'Ingra'} {'Lazara' 'Tigress'} {'Lazara' 'Ingra'} {'Lazara' 'Sun_Girl'} {'Valentina' 'Tigress'} {'Valentina' 'Dr_Horrible'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dansen_Macabre' 'Jewelee'} {'Sun_Girl' 'Jewelee'} {'Lady_Shiva' 'Trinity'} {'Lady_Shiva' 'Ursa'} {'Poison_Ivy' 'Jewelee'} {'Dansen_Macabre' 'Ursa'} {'Poison_Ivy' 'Shimmer'} {'Poison_Ivy' 'Trinity'} {'Sun_Girl' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Eviless'} {'Superwoman' 'Typhoid_Mary'} {'Zaladane' 'Typhoid_Mary'} {'Zaladane' 'Genevieve_Savidge'} {'Superwoman' 'Eviless'} {'Zaladane' 'Bombshell'} {'Ingra' 'Bombshell'} {'Jinx' 'Genevieve_Savidge'} {'Ingra' 'Genevieve_Savidge'} {'Jinx' 'Eviless'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Decay'} {'Ingra' 'Decay'} {'Mai_Shen' 'Deuce'} {'Ingra' 'Lady_Octopus'} {'Margaret_Love' 'Bombshell'} {'Ingra' 'Deuce'} {'Margaret_Love' 'Decay'} {'Dr_Evil' 'Lady_Octopus'} {'Dr_Evil' 'Bombshell'} {'Margaret_Love' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Snapdragon'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Lady_Shiva' 'Decay'} {'Lady_Shiva' 'Lady_Octopus'} {'Nyssa_Raatko' 'Lady_Octopus'} {'Professor_Padraic_Ratigan' 'Decay'} {'Silk_Fever' 'Maxima'} {'Nyssa_Raatko' 'Decay'} {'Professor_Padraic_Ratigan' 'Lady_Octopus'} {'Lady_Shiva' 'Snapdragon'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Trinity'} {'Mothergod' 'Professor_Padraic_Ratigan'} {'Tigress' 'Dr_Horrible'} {'Tigress' 'Princess_Python'} {'Rad' 'Dr_Horrible'} {'Rad' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Trinity'} {'Tigress' 'Trinity'} {'Bombshell' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Fake_Thomas_Jefferson'} {'Evinlea' 'Southpaw'} {'Magpie' 'Southpaw'} {'Magpie' 'Jason_Kreis'} {'Mist' 'Southpaw'} {'Tigress' 'Jason_Kreis'} {'Tigress' 'Fake_Thomas_Jefferson'} {'Mist' 'Jason_Kreis'} {'Evinlea' 'Gru'} {'Magpie' 'Gru'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Nyssa_Raatko' 'Shiv'} {'Nyssa_Raatko' 'Queen_Of_Fables'} {'Jewelee' 'The_Lightning'} {'Jinx' 'Shiv'} {'Nyssa_Raatko' 'Rad'} {'Jinx' 'The_Lightning'} {'Nyssa_Raatko' 'The_Lightning'} {'Jewelee' 'Rad'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Ingra' 'Sun_Girl'} {'Southpaw' 'Golden_Glider'} {'Superwoman' 'Mothergod'} {'Ingra' 'Tigress'} {'Superwoman' 'Sun_Girl'} {'Southpaw' 'Mothergod'} {'Silk_Fever' 'Tigress'} {'Superwoman' 'Ingra'} {'Ingra' 'Golden_Glider'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Tala'} {'Mai_Shen' 'Abominatrix'} {'Mai_Shen' 'Mothergod'} {'Mai_Shen' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shiv' 'Titania'} {'Lady_Quark' 'Trinity'} {'Mothergod' 'Hypnota'} {'Shiv' 'Hypnota'} {'Lady_Quark' 'White_Rabbit'} {'Lady_Octopus' 'Trinity'} {'Shiv' 'Lady_Quark'} {'Mothergod' 'Trinity'} {'Mothergod' 'White_Rabbit'} {'Lady_Octopus' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Queen_Of_Fables'} {'Queen_Bee' 'Magpie'} {'Queen_Bee' 'Rad'} {'Lashina' 'Queen_Of_Fables'} {'Lashina' 'Superwoman'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Lashina' 'Magpie'} {'Queen_Bee' 'Queen_Of_Fables'} {'Dead_Bowie' 'Rad'} {'Lazara' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'New_Wave' 'Ingra'} {'Syndrome' 'Princess_Python'} {'New_Wave' 'Sun_Girl'} {'Lashina' 'Ingra'} {'Silk_Fever' 'Ingra'} {'New_Wave' 'Princess_Python'} {'Syndrome' 'Shiv'} {'Lashina' 'Shiv'} {'Lashina' 'Sun_Girl'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Sun_Girl'} {'Doctor_Cyber' 'Windfall'} {'Dr_Evil' 'Valentina'} {'Hypnota' 'Abominatrix'} {'Doctor_Cyber' 'Sun_Girl'} {'Mist' 'Windfall'} {'Doctor_Cyber' 'Valentina'} {'Mist' 'Abominatrix'} {'Mist' 'Sun_Girl'} {'Dr_Evil' 'Abominatrix'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Leather' 'King_Ghidorah'} {'Jinx' 'Bombshell'} {'Leather' 'Lady_Vic'} {'Leather' 'Osira'} {'Jewelee' 'Bombshell'} {'Leather' 'Bombshell'} {'Amy_Madison' 'King_Ghidorah'} {'Jinx' 'King_Ghidorah'} {'Jewelee' 'Osira'} {'Amy_Madison' 'Lady_Vic'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Rouge' 'Ingra'} {'Margaret_Love' 'Ingra'} {'Yellowjacket' 'Dansen_Macabre'} {'Margaret_Love' 'The_Crimson_Ghost'} {'Margaret_Love' 'Rad'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Yellowjacket' 'Rad'} {'Yellowjacket' 'Ingra'} {'New_Wave' 'Dansen_Macabre'} {'New_Wave' 'The_Crimson_Ghost'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'Typhoid_Mary'} {'Typhoid_Mary' 'The_Crimson_Ghost'} {'Amy_Madison' 'Spider_Girl'} {'Queen_Bee' 'Spider_Girl'} {'Queen_Bee' 'Livewire'} {'Nyssa_Raatko' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Mothergod'} {'Amy_Madison' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Livewire'} {'Nyssa_Raatko' 'Mothergod'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Shimmer'} {'Snapdragon' 'Shimmer'} {'Snapdragon' 'Lady_Octopus'} {'Snapdragon' 'Jewelee'} {'Decay' 'Poundcakes'} {'Amy_Madison' 'Poundcakes'} {'Decay' 'Lady_Octopus'} {'Margaret_Love' 'Lady_Octopus'} {'Decay' 'Jewelee'} {'Amy_Madison' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Purgatori'} {'Talia_Al_Ghul' 'Windfall'} {'Lady_Death' 'Madame_Masque'} {'Spider_Girl' 'Madame_Masque'} {'Black_Mamba' 'Saturn_Queen'} {'Black_Mamba' 'Madame_Masque'} {'Spider_Girl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Purgatori'} {'Lady_Death' 'Windfall'} {'Spider_Girl' 'Purgatori'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Queen_Of_Fables'} {'Silk_Fever' 'Lady_Quark'} {'Windfall' 'Star_Sapphire'} {'Windfall' 'Queen_Of_Fables'} {'Silk_Fever' 'Star_Sapphire'} {'Silk_Fever' 'Bombshell'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Lady_Quark'} {'Windfall' 'Lady_Quark'} {'Bombshell' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Gru'} {'Superwoman' 'Lagomorph'} {'Silver_Swan' 'Duela_Dent'} {'Silver_Swan' 'Superwoman'} {'Superwoman' 'Lady_Vic'} {'Saturn_Queen' 'Lady_Vic'} {'Saturn_Queen' 'Duela_Dent'} {'Poundcakes' 'Lagomorph'} {'Silver_Swan' 'Lady_Vic'} {'Poundcakes' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Vic' 'Queen_Bee'} {'Deuce' 'Yellowjacket'} {'Prank' 'Amazing_Grace'} {'Bombshell' 'Yellowjacket'} {'Deuce' 'Amazing_Grace'} {'Lady_Vic' 'Lady_Death'} {'Deuce' 'Prank'} {'Bombshell' 'Amazing_Grace'} {'Prank' 'Queen_Bee'} {'Deuce' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Maxima' 'Sun_Girl'} {'Spider_Girl' 'Genevieve_Savidge'} {'Spider_Girl' 'Madame_Masque'} {'Fem_Paragon' 'Margaret_Love'} {'Maxima' 'Genevieve_Savidge'} {'Maxima' 'Madame_Masque'} {'Spider_Girl' 'Sun_Girl'} {'Devastation' 'Sun_Girl'} {'Devastation' 'Margaret_Love'} {'Fem_Paragon' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Animora'} {'Tala' 'Scandal'} {'Tala' 'Amazing_Grace'} {'Tala' 'Lafety_Le_Fei'} {'Tala' 'Lady_Quark'} {'Tala' 'Silver_Banshee'} {'Tala' 'Dansen_Macabre'} {'Tala' 'Jason_Kreis'} {'Tala' 'Cyborgirl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Golddigger'} {'Southpaw' 'Deuce'} {'Southpaw' 'Golddigger'} {'Fem_Paragon' 'Sun_Girl'} {'Rad' 'Sun_Girl'} {'Southpaw' 'Sun_Girl'} {'Rad' 'Lady_Clay'} {'Fem_Paragon' 'Bombshell'} {'Deuce' 'Lady_Clay'} {'Deuce' 'Bombshell'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Lady_Octopus'} {'Poison_Ivy' 'Lazara'} {'Lazara' 'Lagomorph'} {'Poison_Ivy' 'Tala'} {'Mephista' 'Lagomorph'} {'Mai_Shen' 'Lagomorph'} {'Mephista' 'Tala'} {'Mai_Shen' 'Lady_Octopus'} {'Mephista' 'Lady_Death'} {'Lazara' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Amazing_Grace'} {'Amazing_Grace' 'Bombshell'} {'Saturn_Queen' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Bombshell'} {'Tala' 'Shiv'} {'Tala' 'Trinity'} {'Saturn_Queen' 'Bombshell'} {'Amazing_Grace' 'Trinity'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Talia_Al_Ghul'} {'Cyborgirl' 'Snapdragon'} {'Talia_Al_Ghul' 'Cyborgirl'} {'Silver_Banshee' 'Deuce'} {'New_Wave' 'Mist'} {'Osira' 'Lady_Octopus'} {'Lady_Octopus' 'Silver_Banshee'} {'Snapdragon' 'Osira'} {'Mist' 'Zaladane'} {'Deuce' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Asbestos_Lady' 'Coachwhip'} {'Asbestos_Lady' 'Jewelee'} {'Asbestos_Lady' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} {'Blue_Snowman' 'Coachwhip'} {'Ingra' 'Coachwhip'} {'Lady_Shiva' 'Ingra'} {'Lady_Shiva' 'Titania'} {'Ingra' 'Shimmer'} {'Blue_Snowman' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Tigress'} {'Queen_Bee' 'Rampage'} {'Unicron' 'Rampage'} {'Lady_Octopus' 'Poundcakes'} {'Unicron' 'Queen_Of_Fables'} {'Abominatrix' 'Queen_Bee'} {'Abominatrix' 'Queen_Of_Fables'} {'Queen_Bee' 'Poundcakes'} {'Lady_Octopus' 'Tigress'} {'Abominatrix' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Jinx'} {'Scandal' 'Doctor_Cyber'} {'Scandal' 'Roulette'} {'Queen_Bee' 'Jinx'} {'Queen_Bee' 'Roulette'} {'Queen_Bee' 'Yellowjacket'} {'Margaret_Love' 'Yellowjacket'} {'Zaladane' 'Roulette'} {'Margaret_Love' 'Doctor_Cyber'} {'Zaladane' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Silver_Banshee'} {'Magenta' 'Amy_Madison'} {'Magenta' 'Fake_Thomas_Jefferson'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Magenta' 'Silver_Banshee'} {'Evinlea' 'Trinity'} {'Cyborgirl' 'Amy_Madison'} {'Cyborgirl' 'Trinity'} {'Evinlea' 'Fake_Thomas_Jefferson'} {'Deuce' 'Silver_Banshee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jewelee' 'Madame_Rouge'} {'Jewelee' 'Fem_Paragon'} {'Jewelee' 'Professor_Padraic_Ratigan'} {'Jewelee' 'Evinlea'} {'Jewelee' 'Fury_Leika'} {'Jewelee' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'The_Crimson_Ghost'} {'Syndrome' 'Lady_Vic'} {'Syndrome' 'Lady_Quark'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Lady_Vic'} {'Shimmer' 'Lady_Quark'} {'Lagomorph' 'The_Crimson_Ghost'} {'Amy_Madison' 'Syndrome'} {'Amy_Madison' 'Poison_Ivy'} {'Shimmer' 'Poison_Ivy'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Purgatori'} {'Nyssa_Raatko' 'Purgatori'} {'Nyssa_Raatko' 'Shimmer'} {'Abominatrix' 'Nyssa_Raatko'} {'Nyssa_Raatko' 'Bombshell'} {'Silver_Swan' 'Bombshell'} {'Abominatrix' 'Duela_Dent'} {'Abominatrix' 'Purgatori'} {'Windfall' 'Duela_Dent'} {'Windfall' 'Shimmer'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fury_Leika' 'The_Lightning'} {'Amy_Madison' 'The_Lightning'} {'The_Crimson_Ghost' 'Lady_Death'} {'Shimmer' 'Lady_Death'} {'Amy_Madison' 'Queen_Of_Fables'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Fury_Leika' 'Queen_Of_Fables'} {'Amy_Madison' 'Dansen_Macabre'} {'Fury_Leika' 'Dansen_Macabre'} {'Shimmer' 'The_Lightning'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Lady_Shiva'} {'Queen_Clea' 'Fake_Thomas_Jefferson'} {'Abominatrix' 'Hypnota'} {'Jewelee' 'Lady_Shiva'} {'Madame_Masque' 'Lady_Shiva'} {'Jewelee' 'Hypnota'} {'Queen_Clea' 'Hypnota'} {'Madame_Masque' 'Maxima'} {'Jewelee' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Maxima'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Southpaw' 'Silver_Banshee'} {'Animora' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Jason_Kreis'} {'Valentina' 'Professor_Padraic_Ratigan'} {'Animora' 'Jason_Kreis'} {'Animora' 'Silver_Banshee'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Titania'} {'Valentina' 'Jason_Kreis'} {'Valentina' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Saturn_Queen' 'Lazara'} {'Decay' 'Magpie'} {'Saturn_Queen' 'Decay'} {'Harley_Quinn' 'Magpie'} {'Bombshell' 'Silver_Banshee'} {'Decay' 'Lazara'} {'Decay' 'Madame_Masque'} {'Saturn_Queen' 'Silver_Banshee'} {'Bombshell' 'Madame_Masque'} {'Harley_Quinn' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Osira'} {'Jewelee' 'Dead_Bowie'} {'Scandal' 'Poison_Ivy'} {'Scandal' 'Osira'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Rad'} {'Silver_Banshee' 'Poison_Ivy'} {'Jewelee' 'Osira'} {'Scandal' 'Shiv'} {'Silver_Banshee' 'Rad'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Roulette'} {'Poison_Ivy' 'Mephista'} {'Amazing_Grace' 'Spider_Girl'} {'Poison_Ivy' 'Roulette'} {'Scandal' 'Lafety_Le_Fei'} {'Mephista' 'Lafety_Le_Fei'} {'Mephista' 'Spider_Girl'} {'Poison_Ivy' 'Princess_Python'} {'Poison_Ivy' 'Spider_Girl'} {'Amazing_Grace' 'Princess_Python'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Genevieve_Savidge'} {'Decay' 'Windfall'} {'Dansen_Macabre' 'Princess_Python'} {'Purgatori' 'Windfall'} {'Purgatori' 'Princess_Python'} {'Purgatori' 'Mist'} {'Dr_Horrible' 'Mist'} {'Dansen_Macabre' 'Genevieve_Savidge'} {'Decay' 'Mist'} {'Dr_Horrible' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Margaret_Love'} {'Typhoid_Mary' 'Sun_Girl'} {'Typhoid_Mary' 'Osira'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Margaret_Love'} {'Deuce' 'Sun_Girl'} {'Fake_Thomas_Jefferson' 'Tala'} {'Lashina' 'Sun_Girl'} {'Lashina' 'Tala'} {'Deuce' 'Osira'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Rad'} {'Lashina' 'Mothergod'} {'White_Rabbit' 'Asbestos_Lady'} {'Star_Sapphire' 'White_Rabbit'} {'Lafety_Le_Fei' 'Star_Sapphire'} {'Mothergod' 'Lafety_Le_Fei'} {'Fury_Leika' 'Lashina'} {'Asbestos_Lady' 'Golden_Glider'} {'Rad' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Abominatrix'} {'Lady_Death' 'Abominatrix'} {'Superwoman' 'Queen_Clea'} {'Coachwhip' 'Queen_Clea'} {'Superwoman' 'Tigress'} {'Coachwhip' 'Silk_Fever'} {'Rad' 'Lady_Death'} {'Rad' 'Tigress'} {'Rad' 'Silk_Fever'} {'Lady_Death' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Leather'} {'Zaladane' 'Star_Sapphire'} {'Ursa' 'Star_Sapphire'} {'Poison_Ivy' 'Ursa'} {'Lady_Death' 'Harley_Quinn'} {'Poison_Ivy' 'Evinlea'} {'Zaladane' 'Evinlea'} {'Ursa' 'Leather'} {'Lady_Death' 'Leather'} {'Poison_Ivy' 'Harley_Quinn'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Duela_Dent'} {'Margaret_Love' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Jason_Kreis'} {'Lagomorph' 'Jewelee'} {'Lagomorph' 'Fake_Thomas_Jefferson'} {'Lagomorph' 'Duela_Dent'} {'Madame_Masque' 'Jason_Kreis'} {'Jewelee' 'Decay'} {'Margaret_Love' 'Decay'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Jewelee'} {'Fury_Leika' 'Queen_Clea'} {'Jason_Kreis' 'Unicron'} {'Fury_Leika' 'Lagomorph'} {'Fury_Leika' 'Jewelee'} {'Abominatrix' 'Lagomorph'} {'Black_Mamba' 'Lagomorph'} {'Black_Mamba' 'Unicron'} {'Abominatrix' 'Queen_Clea'} {'Abominatrix' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Golden_Glider'} {'Osira' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Golden_Glider'} {'Sun_Girl' 'Lady_Vic'} {'Queen_Bee' 'Margaret_Love'} {'Sun_Girl' 'Golden_Glider'} {'Queen_Bee' 'Lady_Vic'} {'Sun_Girl' 'Madame_Masque'} {'Sun_Girl' 'Scandal'} {'Queen_Bee' 'Scandal'} {'Sun_Girl' 'Margaret_Love'} {'Queen_Bee' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Mothergod'} {'Lashina' 'Devastation'} {'Lashina' 'Decay'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Doctor_Cyber' 'Queen_Clea'} {'Ingra' 'Spider_Girl'} {'Ingra' 'Sun_Girl'} {'Doctor_Cyber' 'Spider_Girl'} {'New_Wave' 'Queen_Clea'} {'Dansen_Macabre' 'Tigress'} {'Dansen_Macabre' 'Spider_Girl'} {'New_Wave' 'Spider_Girl'} {'Doctor_Cyber' 'Sun_Girl'} {'New_Wave' 'Tigress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Southpaw'} {'Coachwhip' 'The_Crimson_Ghost'} {'Abominatrix' 'The_Crimson_Ghost'} {'Tala' 'Hypnota'} {'Madame_Masque' 'The_Crimson_Ghost'} {'Tala' 'New_Wave'} {'Tala' 'The_Crimson_Ghost'} {'Abominatrix' 'Hypnota'} {'Madame_Masque' 'Southpaw'} {'Coachwhip' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Emerald_Empress'} {'Golddigger' 'Prank'} {'Saturn_Queen' 'Prank'} {'Golddigger' 'Nyssa_Raatko'} {'Black_Mamba' 'Hypnota'} {'Saturn_Queen' 'Nyssa_Raatko'} {'Fury_Leika' 'Nyssa_Raatko'} {'Fury_Leika' 'Prank'} {'Fury_Leika' 'Hypnota'} {'Saturn_Queen' 'Emerald_Empress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'New_Wave'} {'Dead_Bowie' 'Typhoid_Mary'} {'Queen_Clea' 'Typhoid_Mary'} {'Lotso' 'Lagomorph'} {'Lotso' 'Southpaw'} {'Decay' 'New_Wave'} {'Lotso' 'New_Wave'} {'Dead_Bowie' 'Lotso'} {'Queen_Clea' 'Southpaw'} {'Decay' 'Lagomorph'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Eviless' 'Abominatrix'} {'Prank' 'Shimmer'} {'Rampage' 'Syndrome'} {'Queen_Bee' 'Syndrome'} {'Prank' 'Queen_Clea'} {'Prank' 'Syndrome'} {'Queen_Bee' 'Abominatrix'} {'Eviless' 'Shimmer'} {'Rampage' 'Eviless'} {'Rampage' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Professor_Padraic_Ratigan'} {'Decay' 'Silver_Swan'} {'Queen_Clea' 'Black_Mamba'} {'Poundcakes' 'King_Ghidorah'} {'Poundcakes' 'Silver_Swan'} {'Poundcakes' 'Tala'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Poundcakes' 'Black_Mamba'} {'Decay' 'King_Ghidorah'} {'Tala' 'Silver_Swan'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Bombshell'} {'Tala' 'Mai_Shen'} {'Tala' 'Madame_Rouge'} {'Tala' 'Spider_Girl'} {'Tala' 'Dr_Horrible'} {'Tala' 'Madame_Masque'} {'Tala' 'Lazara'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Lady_Clay'} {'Livewire' 'Queen_Clea'} {'New_Wave' 'Queen_Clea'} {'New_Wave' 'Lady_Clay'} {'Livewire' 'Rad'} {'New_Wave' 'Rad'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Plastique' 'Cyborgirl'} {'Plastique' 'Tigress'} {'Plastique' 'Superwoman'} {'Plastique' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Animora'} {'Princess_Python' 'Shiv'} {'Sun_Girl' 'Typhoid_Mary'} {'New_Wave' 'Animora'} {'Professor_Padraic_Ratigan' 'Lady_Clay'} {'New_Wave' 'Lady_Clay'} {'Sun_Girl' 'Shiv'} {'New_Wave' 'Typhoid_Mary'} {'Princess_Python' 'Lady_Clay'} {'Sun_Girl' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Sun_Girl' 'Golddigger'} {'Jewelee' 'Golddigger'} {'Zaladane' 'Deuce'} {'Sun_Girl' 'Deuce'} {'Mai_Shen' 'Golddigger'} {'Jewelee' 'Lazara'} {'Mai_Shen' 'Lazara'} {'Sun_Girl' 'Lazara'} {'Zaladane' 'Lashina'} {'Jewelee' 'Lashina'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Amazing_Grace'} {'Maxima' 'Ursa'} {'Queen_Bee' 'Gru'} {'Jason_Kreis' 'Gru'} {'Ursa' 'Lady_Death'} {'Maxima' 'Amazing_Grace'} {'Queen_Bee' 'Tala'} {'Ursa' 'Tala'} {'Jason_Kreis' 'Lady_Death'} {'Maxima' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lagomorph' 'Doctor_Cyber'} {'Mothergod' 'Roulette'} {'Doctor_Cyber' 'Dr_Evil'} {'Roulette' 'Lagomorph'} {'Jewelee' 'Magenta'} {'Fury_Leika' 'Mothergod'} {'Dr_Evil' 'Jewelee'} {'Magenta' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Fury_Leika'} {'Fury_Leika' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Eviless'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Duela_Dent'} {'Scandal' 'Duela_Dent'} {'Emerald_Empress' 'Eviless'} {'Syndrome' 'Yellowjacket'} {'Syndrome' 'Eviless'} {'Scandal' 'Yellowjacket'} {'Emerald_Empress' 'Queen_Bee'} {'Emerald_Empress' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Blue_Snowman'} {'Lazara' 'Margaret_Love'} {'Lazara' 'Rad'} {'Lazara' 'Syndrome'} {'Lazara' 'Shiv'} {'Lazara' 'Spider_Girl'} {'Lazara' 'Silver_Swan'} {'Lazara' 'Coachwhip'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Valentina' 'Asbestos_Lady'} {'Valentina' 'Doctor_Cyber'} {'Ingra' 'Doctor_Cyber'} {'Scandal' 'Asbestos_Lady'} {'Ingra' 'Professor_Padraic_Ratigan'} {'Valentina' 'Yellowjacket'} {'Lotso' 'Professor_Padraic_Ratigan'} {'Lotso' 'Yellowjacket'} {'Lotso' 'Asbestos_Lady'} {'Scandal' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Devastation' 'Hypnota'} {'Purgatori' 'Livewire'} {'Evinlea' 'Hypnota'} {'Evinlea' 'Lazara'} {'Devastation' 'Lazara'} {'Nyssa_Raatko' 'Duela_Dent'} {'Evinlea' 'Livewire'} {'Nyssa_Raatko' 'Hypnota'} {'Purgatori' 'Hypnota'} {'Devastation' 'Duela_Dent'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shimmer' 'Saturn_Queen'} {'Shimmer' 'Lafety_Le_Fei'} {'Golden_Glider' 'Saturn_Queen'} {'Shimmer' 'Cyborgirl'} {'Poison_Ivy' 'Lafety_Le_Fei'} {'Zaladane' 'Cyborgirl'} {'Golden_Glider' 'Cyborgirl'} {'Poison_Ivy' 'Snapdragon'} {'Golden_Glider' 'Snapdragon'} {'Zaladane' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Lazara'} {'Saturn_Queen' 'Golden_Glider'} {'Queen_Of_Fables' 'Golden_Glider'} {'Fury_Leika' 'Duela_Dent'} {'Dr_Horrible' 'Golden_Glider'} {'Fury_Leika' 'Ingra'} {'Queen_Of_Fables' 'Duela_Dent'} {'Fury_Leika' 'Dr_Horrible'} {'Saturn_Queen' 'Ingra'} {'Dr_Horrible' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Abominatrix'} {'New_Wave' 'Mothergod'} {'Hypnota' 'Mothergod'} {'Harley_Quinn' 'Tigress'} {'Harley_Quinn' 'Hypnota'} {'Lady_Vic' 'Tigress'} {'New_Wave' 'Trinity'} {'New_Wave' 'Abominatrix'} {'Harley_Quinn' 'Trinity'} {'Lady_Vic' 'Abominatrix'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-18T04:20:57.000Z","updated_at":"2013-09-18T04:34:45.000Z","published_at":"2013-09-18T04:34:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1942,"title":"GJam 2014 China Rd B: Party","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2929486/dashboard#s=p1 GJam 2014 China Party\u003e. Small Case.\r\n\r\nThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\r\n\r\nThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\r\n\r\n\r\n*Input:* [M], Bx4 matrix (B\u003c=100). Total B area of \u003c=1000\r\n\r\n*Output:* [x,y,d] where [x,y] is Party House and d is everyone's total distance\r\n\r\n*Examples:*\r\n\r\n  M   [x y d]\r\n  [0 0 2 2] [1 1 12]\r\n  [-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]\r\n\r\n \r\n*Contest Performance:* Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\r\n\r\n\r\n*Commentary:*\r\n\r\n  1) The small can be solved by brute force since fewer than 1000 points require evaluation.\r\n  2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\r\n  3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2929486/dashboard#s=p1\"\u003eGJam 2014 China Party\u003c/a\u003e. Small Case.\u003c/p\u003e\u003cp\u003eThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\u003c/p\u003e\u003cp\u003eThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [M], Bx4 matrix (B\u0026lt;=100). Total B area of \u0026lt;=1000\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [x,y,d] where [x,y] is Party House and d is everyone's total distance\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eM   [x y d]\r\n[0 0 2 2] [1 1 12]\r\n[-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eContest Performance:\u003c/b\u003e Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\u003c/p\u003e\u003cp\u003e\u003cb\u003eCommentary:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1) The small can be solved by brute force since fewer than 1000 points require evaluation.\r\n2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\r\n3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.\r\n\u003c/pre\u003e","function_template":"function [x,y,d]=Party_CH(p)\r\n x=0;\r\n y=0;\r\n d=0;\r\nend","test_suite":"%%\r\ntic\r\nzm=[0 0 30 30 ];\r\nvexp=[15 15 14880];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[0 0 29 29 ];\r\nvexp=[14 14 13500];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[0 1 0 100 ;0 -100 0 -1 ;-100 0 -1 0 ;1 0 100 0 ];\r\nvexp=[-1 0 20400];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[616 34 616 34 ;78 -828 78 -828 ;-762 -671 -762 -671 ;-199 -960 -199 -960 ;427 -575 427 -575 ;448 798 448 798 ;-819 -939 -819 -939 ;852 -564 852 -564 ;-145 281 -145 281 ;694 828 694 828 ;-278 963 -278 963 ;47 813 47 813 ;-393 24 -393 24 ;198 -257 198 -257 ;-393 -177 -393 -177 ;596 237 596 237 ;-678 760 -678 760 ;-180 92 -180 92 ;-590 995 -590 995 ;27 -946 27 -946 ;459 799 459 799 ;-491 -739 -491 -739 ;-691 -922 -691 -922 ;-38 185 -38 185 ;495 -471 495 -471 ;-850 532 -850 532 ;-360 798 -360 798 ;589 -104 589 -104 ;-492 -364 -492 -364 ;-797 415 -797 415 ;105 319 105 319 ;-879 -347 -879 -347 ;-795 172 -795 172 ;529 831 529 831 ;357 -199 357 -199 ;621 959 621 959 ;-475 125 -475 125 ;769 884 769 884 ;172 -706 172 -706 ;618 222 618 222 ;989 734 989 734 ;-273 478 -273 478 ;-548 930 -548 930 ;-634 889 -634 889 ;599 879 599 879 ;836 834 836 834 ;463 901 463 901 ;972 -903 972 -903 ;-319 495 -319 495 ;-727 -368 -727 -368 ;-685 -487 -685 -487 ;834 902 834 902 ;-114 -961 -114 -961 ;-984 193 -984 193 ;-388 867 -388 867 ;712 232 712 232 ;-750 19 -750 19 ;855 -455 855 -455 ;857 996 857 996 ;493 -722 493 -722 ;-582 426 -582 426 ;-824 848 -824 848 ;479 -993 479 -993 ;-976 -820 -976 -820 ;208 443 208 443 ;919 745 919 745 ;-460 -548 -460 -548 ;375 556 375 556 ;-572 980 -572 980 ;345 -411 345 -411 ;-275 613 -275 613 ;718 -895 718 -895 ;-838 -892 -838 -892 ;-241 836 -241 836 ;336 -878 336 -878 ;891 -355 891 -355 ;-986 989 -986 989 ;629 856 629 856 ;-779 787 -779 787 ;970 711 970 711 ;-578 -163 -578 -163 ;779 735 779 735 ;572 -203 572 -203 ;237 192 237 192 ;-427 -213 -427 -213 ;-338 9 -338 9 ;-905 45 -905 45 ;64 -35 64 -35 ;476 -560 476 -560 ;-370 24 -370 24 ;-836 487 -836 487 ;53 50 53 50 ;540 -897 540 -897 ;-179 -8 -179 -8 ;-979 227 -979 227 ;528 257 528 257 ;-876 615 -876 615 ;-342 -895 -342 -895 ;802 -744 802 -744 ;-458 -395 -458 -395 ];\r\nvexp=[-38 185 110298];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[241 -635 241 -635 ;75 -432 75 -432 ;-522 -517 -522 -517 ;-589 -931 -589 -931 ;-903 447 -903 447 ;-555 757 -555 757 ;-584 19 -584 19 ;420 -458 420 -458 ;-127 517 -127 517 ;-417 158 -417 158 ;542 703 542 703 ;865 -531 865 -531 ;-592 -191 -591 -190 ;570 467 570 467 ;-326 -668 -325 -668 ;197 516 197 516 ;238 -442 239 -441 ;-339 -71 -338 -70 ;255 -450 256 -450 ;408 -232 409 -231 ;302 -765 303 -764 ;-575 687 -575 688 ;-352 -651 -351 -650 ;-483 -96 -483 -95 ;285 170 286 170 ;-349 -660 -348 -659 ;518 -419 518 -418 ;555 -506 556 -506 ;900 97 901 98 ;-969 -258 -969 -257 ;-514 -199 -513 -198 ;-422 -197 -422 -197 ;-852 -115 -852 -114 ;166 -651 166 -650 ;628 -930 629 -930 ;-53 853 -52 853 ;484 503 484 504 ;-912 -976 -911 -975 ;-386 -562 -386 -561 ;521 946 521 947 ;717 -799 718 -797 ;-463 -348 -461 -348 ;-14 167 -13 169 ;-346 -677 -344 -675 ;-675 176 -673 179 ;894 807 896 811 ];\r\nvexp=[-338 -71 136630];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[468 377 468 377 ;839 -105 839 -105 ;-871 487 -871 487 ;-307 651 -307 651 ;135 -929 135 -929 ;-411 -829 -411 -829 ;745 -64 745 -64 ;336 784 336 784 ;-875 -84 -875 -84 ;-723 -736 -723 -736 ;701 -818 701 -818 ;-239 210 -239 210 ;-15 614 -15 614 ;362 225 362 225 ;894 443 894 443 ;-352 -303 -352 -303 ;-287 254 -287 255 ;-739 -960 -739 -960 ;110 28 110 28 ;540 434 541 435 ;-103 -962 -102 -962 ;913 -274 913 -273 ;835 -730 836 -730 ;544 866 545 867 ;-97 -358 -96 -358 ;-490 -319 -490 -319 ;-122 700 -122 702 ;37 902 39 902 ;103 266 104 266 ;-581 -714 -579 -710 ];\r\nvexp=[-97 -358 62565];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[28 122 30 124 ;-85 -609 -83 -607 ;763 19 764 20 ;612 -204 613 -203 ;-521 792 -520 794 ;-782 193 -781 195 ;-662 149 -661 151 ;-561 -568 -559 -567 ;-190 -897 -189 -896 ;-725 -317 -723 -315 ;704 -957 706 -956 ;-329 -967 -328 -966 ;-564 -639 -563 -637 ;-603 -86 -601 -84 ;-165 548 -164 550 ;-197 -150 -195 -148 ;-379 -581 -377 -579 ;401 -684 403 -683 ;546 -194 548 -192 ;267 573 268 574 ;-634 288 -632 290 ;593 857 595 858 ;78 -240 80 -238 ;800 981 801 982 ;473 472 474 473 ;-894 469 -893 471 ;582 347 583 349 ;516 189 518 190 ;333 -865 335 -864 ;-192 507 -191 508 ;-310 534 -309 536 ;-783 -487 -781 -486 ;-915 -696 -914 -695 ;-57 872 -56 874 ;717 -423 718 -422 ;509 -810 510 -809 ;-186 -335 -184 -333 ;-403 629 -401 631 ;-598 104 -596 106 ;-149 -210 -147 -208 ;920 911 922 913 ;819 -934 821 -932 ;518 -328 520 -326 ;-630 429 -628 431 ;348 -766 350 -764 ;242 -300 244 -298 ;387 -191 389 -189 ;-19 -871 -17 -869 ;383 723 385 725 ;-742 -327 -740 -325 ;-181 -43 -179 -41 ;799 -46 801 -44 ;729 -373 731 -371 ;-863 -16 -861 -14 ;998 -444 1000 -442 ;242 962 244 964 ;-249 -412 -247 -410 ;116 -14 118 -12 ;871 -455 873 -453 ;669 492 671 494 ;877 -447 879 -445 ;990 -938 992 -936 ;43 522 45 524 ;-70 45 -68 47 ;808 8 810 10 ;-879 -310 -877 -308 ;979 79 981 81 ;-695 202 -693 204 ;-650 469 -648 471 ;690 -624 692 -622 ;-169 -43 -167 -41 ;-81 723 -78 726 ;-789 968 -787 970 ;-913 698 -912 701 ;-597 -970 -595 -968 ;693 -79 694 -77 ;41 847 43 849 ;39 -728 41 -725 ;422 470 425 473 ;-518 -883 -517 -880 ;-858 784 -855 786 ;-246 311 -245 312 ;194 -715 197 -712 ;-370 -868 -369 -865 ;377 174 380 176 ;-697 223 -694 225 ;-489 -957 -486 -955 ;-585 -164 -583 -162 ;-283 -880 -281 -878 ;-141 -729 -140 -728 ;835 447 838 450 ;-424 -612 -423 -610 ;-280 376 -276 377 ;-351 -393 -350 -392 ;-793 -436 -788 -434 ;-548 -180 -547 -175 ;826 775 831 778 ;-664 -604 -658 -602 ;987 -65 988 -57 ;-540 -796 -533 -795 ];\r\nvexp=[-167 -43 874364];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-291 955 -289 956 ;276 -710 278 -708 ;-724 283 -722 285 ;-850 588 -848 589 ;625 -511 627 -509 ;-530 -994 -529 -993 ;-312 -655 -311 -654 ;86 -269 87 -267 ;565 -521 566 -520 ;438 320 440 321 ;-330 985 -328 986 ;-408 -942 -407 -940 ;755 792 756 794 ;847 -794 848 -793 ;436 -1 438 0 ;206 -637 208 -635 ;516 544 518 546 ;77 -200 78 -199 ;-618 276 -616 277 ;380 868 382 870 ;-664 284 -663 286 ;-526 929 -524 931 ;743 -555 745 -553 ;331 145 333 146 ;98 124 99 126 ;220 -661 222 -660 ;-92 498 -90 500 ;646 -552 647 -550 ;-531 -850 -529 -849 ;573 -80 574 -79 ;-317 299 -315 300 ;-963 713 -962 714 ;411 818 412 819 ;-99 -503 -97 -501 ;279 599 280 601 ;793 -237 794 -235 ;-41 -876 -39 -875 ;-550 -478 -549 -477 ;-107 820 -105 822 ;657 886 659 888 ;-460 684 -458 686 ;-80 455 -78 457 ;-779 -528 -777 -526 ;-829 719 -827 721 ;-760 -716 -758 -714 ;39 342 41 344 ;254 447 256 449 ;-272 -705 -270 -703 ;-900 507 -898 509 ;498 327 500 329 ;-669 168 -667 170 ;519 -367 521 -365 ;-674 323 -672 325 ;-724 519 -722 521 ;52 -596 54 -594 ;897 -724 899 -722 ;6 -387 8 -385 ;62 808 64 810 ;-84 -749 -82 -747 ;-475 -379 -473 -377 ;-467 -819 -465 -817 ;-130 232 -128 234 ;218 862 220 864 ;-206 339 -204 341 ;821 658 823 660 ;261 61 263 63 ;-704 869 -702 871 ;788 -490 790 -488 ;482 67 484 69 ;-328 -781 -326 -779 ;150 -117 152 -115 ;946 -90 948 -88 ;-68 477 -65 479 ;-704 915 -701 918 ;979 -761 980 -759 ;328 705 331 708 ;969 951 971 953 ;-638 991 -637 993 ;-621 120 -619 121 ;-546 651 -545 654 ;217 550 218 551 ;-743 196 -740 199 ;-591 847 -588 849 ;-48 -769 -46 -766 ;678 424 680 425 ;-250 268 -248 270 ;964 -389 966 -386 ;193 -818 195 -815 ;-803 107 -801 109 ;16 -725 19 -722 ;-721 -274 -720 -273 ;14 666 17 668 ;-822 933 -820 936 ;-895 -416 -894 -412 ;821 -329 824 -326 ;382 68 387 68 ;590 282 595 284 ;97 -310 103 -307 ;147 933 150 933 ;-772 -42 -765 -33 ];\r\nvexp=[-128 232 914624];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-987 -105 -985 -103 ;-22 -655 -20 -653 ;-622 412 -621 414 ;-526 641 -524 642 ;-694 573 -692 575 ;268 -697 269 -695 ;366 544 368 545 ;648 218 649 220 ;314 443 316 445 ;-589 354 -588 355 ;60 544 62 546 ;21 -444 23 -442 ;175 -224 176 -223 ;-915 -696 -914 -695 ;-417 766 -415 767 ;-874 -599 -873 -598 ;606 921 607 922 ;-672 562 -671 564 ;-17 39 -16 40 ;-708 632 -707 633 ;823 -170 825 -168 ;996 -372 997 -371 ;961 -169 962 -167 ;572 577 573 579 ;53 345 55 347 ;569 453 570 454 ;716 753 718 754 ;-803 -873 -802 -872 ;-110 940 -108 942 ;-943 841 -941 842 ;186 997 187 999 ;-107 388 -105 390 ;193 -54 195 -52 ;-231 -916 -230 -914 ;-962 749 -960 750 ;794 -458 796 -457 ;259 -909 261 -908 ;-719 65 -718 67 ;242 -481 244 -479 ;-528 -223 -526 -221 ;283 955 285 957 ;-888 946 -886 948 ;847 -707 849 -705 ;757 -814 759 -812 ;-940 -941 -938 -939 ;2 -176 4 -174 ;665 -708 667 -706 ;656 170 658 172 ;494 949 496 951 ;994 802 996 804 ;-65 785 -63 787 ;147 684 149 686 ;-488 807 -486 809 ;-875 462 -873 464 ;-152 253 -150 255 ;114 247 116 249 ;760 -206 762 -204 ;-204 569 -202 571 ;89 -752 91 -750 ;-464 -975 -462 -973 ;-783 -545 -781 -543 ;75 -251 77 -249 ;471 -462 473 -460 ;-126 -169 -124 -167 ;-311 615 -309 617 ;-398 -727 -396 -725 ;834 -915 836 -913 ;-87 -21 -85 -19 ;-301 918 -299 920 ;-740 -366 -738 -364 ;24 47 26 49 ;-929 -761 -927 -759 ;-863 -36 -861 -33 ;541 604 543 606 ;-279 -423 -276 -422 ;-620 -116 -619 -114 ;-145 571 -143 573 ;-638 133 -636 136 ;-885 546 -882 549 ;-625 -11 -622 -8 ;-610 -369 -609 -367 ;80 -655 83 -652 ;-398 -183 -395 -182 ;-71 -953 -69 -951 ;-767 939 -766 942 ;-763 -362 -760 -360 ;46 -897 47 -895 ;23 -437 25 -436 ;550 -440 553 -439 ;-660 178 -658 182 ;851 -919 853 -917 ;124 437 125 438 ;-414 -524 -411 -520 ;881 797 884 799 ;-73 -303 -68 -301 ;-373 -585 -369 -584 ;-239 963 -237 968 ;453 965 456 968 ;-742 875 -738 877 ;-894 -954 -884 -944 ];\r\nvexp=[-126 -168 1055075];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\n%%\r\nzm=[-648 -872 -646 -871 ;739 270 741 272 ;-847 -333 -845 -331 ;-510 -174 -508 -173 ;182 -353 183 -352 ;-573 277 -571 278 ;297 245 299 247 ;-223 818 -221 819 ;886 57 887 58 ;888 -773 889 -772 ;-593 513 -591 514 ;-587 -107 -585 -106 ;-564 40 -563 41 ;234 -624 236 -622 ;-82 902 -81 903 ;222 851 223 852 ;-726 476 -724 478 ;-392 -160 -390 -158 ;-153 -484 -152 -483 ;-522 -962 -520 -960 ;66 -926 68 -925 ;-535 28 -534 29 ;-603 -292 -602 -291 ;-981 -471 -980 -469 ;-367 865 -365 867 ;-445 -75 -443 -73 ;300 -40 301 -38 ;-329 -287 -328 -286 ;554 935 556 936 ;593 -932 594 -930 ;206 873 208 875 ;335 574 336 575 ;296 154 298 155 ;323 -423 325 -422 ;-144 472 -143 474 ;-284 211 -282 213 ;-289 -996 -287 -994 ;167 574 168 575 ;65 803 67 805 ;264 173 266 175 ;-820 -637 -818 -635 ;-897 813 -895 815 ;60 -524 62 -522 ;652 850 654 852 ;-837 57 -835 59 ;31 -96 33 -94 ;-607 540 -605 542 ;-240 794 -238 796 ;386 453 388 455 ;-421 -468 -419 -466 ;-838 -196 -836 -194 ;248 -366 250 -364 ;7 -933 9 -931 ;578 742 580 744 ;-634 -828 -632 -826 ;678 16 680 18 ;706 -163 708 -161 ;228 771 230 773 ;-440 -564 -438 -562 ;228 -606 230 -604 ;-361 652 -359 654 ;-608 -741 -606 -739 ;-926 42 -924 44 ;984 147 986 149 ;-132 -334 -130 -332 ;492 870 494 872 ;-470 523 -468 525 ;440 983 442 985 ;-68 -14 -66 -12 ;652 970 654 972 ;-591 -410 -589 -408 ;-252 -573 -250 -571 ;-639 -424 -637 -421 ;-306 -234 -303 -231 ;-720 81 -718 83 ;-645 845 -642 846 ;-938 507 -936 508 ;646 122 648 125 ;-76 864 -73 867 ;777 -142 778 -141 ;267 -756 269 -755 ;-151 -11 -150 -10 ;-568 -929 -567 -926 ;753 -830 756 -828 ;-205 -663 -202 -661 ;329 368 330 369 ;-402 -682 -399 -679 ;-649 463 -647 465 ;995 538 999 539 ;107 817 111 818 ;-546 -441 -544 -437 ;-856 920 -854 921 ;-587 -483 -584 -479 ;717 -641 719 -639 ;-892 -134 -890 -132 ;-300 -887 -296 -883 ;605 -228 607 -224 ;-93 -994 -90 -994 ;-421 -56 -414 -50 ;76 -592 80 -583 ];\r\nvexp=[-303 -231 855861];\r\n[x y d]=Party_CH(zm);\r\nv=[x y d];\r\nassert(isequal(v,vexp))\r\ntoc\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-18T01:44:26.000Z","updated_at":"2013-10-18T02:33:24.000Z","published_at":"2013-10-18T02:33:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2929486/dashboard#s=p1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2014 China Party\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Small Case.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Goal is determine the optimal Party House. Given a set of people to attend a party, select the home from this set that minimizes the total travel of people. People travel only NSEW, no diagonals, to reach the host's home. If multiple homes have equal distance then select the home with minimum X. If there are more than one with Min distance and equal Min X then choose the house with Min Y.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe input is an array that defines rectangles of partiers. One line of the array is [xmin,ymin,xmax,ymax]. Blocks do not overlap.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [M], Bx4 matrix (B\u0026lt;=100). Total B area of \u0026lt;=1000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [x,y,d] where [x,y] is Party House and d is everyone's total distance\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[M   [x y d]\\n[0 0 2 2] [1 1 12]\\n[-1 2 -1 2;0 0 0 0;1 3 1 3] [-1 2 6]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eContest Performance:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Delta Time of 16 minutes with 496 of 2010 able to process the small data set. The large data set was only achieved by 47 in the 3 hrs of contest duration.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCommentary:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) The small can be solved by brute force since fewer than 1000 points require evaluation.\\n2) The large case, which is giving me fits, has up to 1,000,000 points to evaluate.\\n3) Graphing the small case with surf gives some unexpected asymmetric results relative to the simple centroid.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"china\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"china\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"china\"","","\"","china","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a3d8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007fa2b763a338\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007fa2b7639a78\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a658\u003e":1,"#\u003cMathWorks::Search::Field:0x00007fa2b763a5b8\u003e":50,"#\u003cMathWorks::Search::Field:0x00007fa2b763a518\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007fa2b763a478\u003e":"tag:\"china\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a478\u003e":"tag:\"china\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"search","password":"J3bGPZzQ7asjJcCk","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"china\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"china\"","","\"","china","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a3d8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007fa2b763a338\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007fa2b7639a78\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a658\u003e":1,"#\u003cMathWorks::Search::Field:0x00007fa2b763a5b8\u003e":50,"#\u003cMathWorks::Search::Field:0x00007fa2b763a518\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007fa2b763a478\u003e":"tag:\"china\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007fa2b763a478\u003e":"tag:\"china\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":1902,"difficulty_rating":"easy-medium"},{"id":44715,"difficulty_rating":"easy-medium"},{"id":1934,"difficulty_rating":"easy-medium"},{"id":1903,"difficulty_rating":"easy-medium"},{"id":1901,"difficulty_rating":"medium"},{"id":1944,"difficulty_rating":"medium"},{"id":1881,"difficulty_rating":"medium"},{"id":1942,"difficulty_rating":"unrated"}]}}