From d240fde71e8f8b6848110a9343079ba468d7bbad Mon Sep 17 00:00:00 2001 From: "xw_y_am@tu131" Date: Fri, 23 Sep 2016 20:57:29 +0800 Subject: [PATCH] add 142 --- python/142/142.docx | Bin 0 -> 14524 bytes python/142/142.py | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 python/142/142.docx create mode 100644 python/142/142.py diff --git a/python/142/142.docx b/python/142/142.docx new file mode 100644 index 0000000000000000000000000000000000000000..dcd0b866441203725b190fd35f72c6929cd09ce8 GIT binary patch literal 14524 zcmb7r1yo%-ur}`QTHK1eySux)yL)jf?rz1Q#VPLYrMO#>qQ(6|uk@DxzPsL^waz(v z?K58{^X=?OW|GKB0)s#Syp#}`4ZfG(zY65@g^{hHoP({MBdy%C7|Qbvh@WEC1ZdU@ zfB*n$KmY&;{}j`=v!ijdw#tmvwe_b%>0M1e;6zx-1?^>5w7?lFGG;{F$u}R`mIbq( zQpsQSF{T>QxpEnAT<_oGHgez7IEGnZQuyG5Vz3I_X*?PF_TuV>H03U#yCNs_``xm9pAtS7Ke#I1DcJZ#4`Q&4vPvC_{)I8AE#c_;tC*ToeV!cr1yVWKAORQ0Q;SP?=_YH z;b;CGpZQ1pC;x`F4#qDJATmx{wi_QM_*nWL9`=g5z;QaJUh?aK1TwNI(+VQnVkkAq zyYIKhK`v#?9_!odTwFWb`D(c7931bes+CCy#ls2ZT2K`ZCC;nW`&r4WqbNG}Rrtd^ zD$SI&bx^bvSFqd|D!?|0=LXUf3bc~Vjx!1|G}}Ug=X;QcSQ{$LQ_c$J^+&J47Xin< zF!jT-k){~3K^SslPKr}pfB2eR_y)w^us9cRn~D^&bG00JYL1r`CKGdBY}V4ZP;seI z^Q4M>Qk0Uc@_W+n`EY9zqaHer%ph4w0xxeKs!sw?Dh@dha5;1U@v_dGwYPsF#mL%eC_>a~#B z^>x@LnB7RziBWBk`r#Jncg~yLVjUl!x%PeL9r-uTogJNQ zt$%j=30cW*It;Lr<~3J{#v*Y>j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jdz9v(ZhhPHLr0dEM<KHe?Z*PB#{A5Sc>0j}4=M`(0Ic!&$jYUEm7ULy&g2Uw!X!CLg( z8q!Lapqnf&`hAz7{|~dfe3|HaEKLqo_BdBVH1Vf$C13FNmanU}AM%T`8}038-k>BC&Jb@@?089JF{STinI= zEGidQ?=nQojjdNIl$rN@bT}Iz6zxjLs{>Q47wn&zznI>K)#Ueyw^Z68{A8dtgq3#$ z*)a%KXSd{H=2cMLini6=7A!MBD^EnV;Rg9o1vV_hlrNoH?W4$3NxtgbcJ{PTUz*Tk zO4)z~n`sW1$ea+7CrtbH7K_5zFx*oCY=Xj@mDY{<;K7*)BempexeH5R>{sTqphaxs@kXC}=64aSI#hI6jSN zfjqXlh9f9ahW1FuUtVUNEi*kL(6gHL)}2Q7l%8jN`*&=!VyQl@j9CTWUD z^(}>IF2@(XPR(rOjmo*Zpuizj^WuGSxdds;tOOLXTvlmIjcw^cR-3D4-I{~ytc1Y! zRu_W8I@9~YPxzW>M&vuRw#+YPsx9YcC;0pj0RRE;pTGO*{`GnOQNh1^u9q?3kMiQf`l$Z$_OF$`9ur^xECNp#Nwt&%dC5 zcfPMpf1Qf^RhJF^KU?y5Ew3whodx?<0TaRN3V!9p{)>?32>8$P7d8Jljr2Pcug@d> zQcm`K`8Vv((@C$J{`xe{FLcqf5BVGY*V&ra@Ye@Je!;PyH?IAH|9wp4zl?r4D)C2o zFGj{Uxy{Xlq0_Vf6>1ODX%GcouvF#mn`9* zb^VsI{4Yy>e->&af8zhj^!#qb>s-$-#eTm7e`S7NxBd0@$X`{&!u_fHpPMCL!(X4k z`31NBtLObXkMn=G+wVEo`?CZ5wQ=iryI*hJ`lYq>ci^v$Tym12Kb<%x044z5^Hm7L H3+R6U+tU=h literal 0 HcmV?d00001 diff --git a/python/142/142.py b/python/142/142.py new file mode 100644 index 0000000..7f5a190 --- /dev/null +++ b/python/142/142.py @@ -0,0 +1,26 @@ + +def m_add( x, y ): + return ( x + y ) % 4 + +def m_sub( x, y ): + return ( x - y ) % 4 + +def match( a, b, c, d, e, f ): + if m_add( a, b ) != m_add( c, d ): + return False + if m_sub( a, b ) != m_add( e, f ): + return False + if m_sub( c, d ) != m_sub( e, f ): + return False + return True + +for mask in range( 64 ): + a = ( mask & 32 ) >> 5 + b = ( mask & 16 ) >> 4 + c = ( mask & 8 ) >> 3 + d = ( mask & 4 ) >> 2 + e = ( mask & 2 ) >> 1 + f = ( mask & 1 ) + + if match( a, b, c, d, e, f ): + print( a, b, c, d, e, f )