a='12345678' b=[] c=[0xa3,0x1a,0xe3,0x69,0x2f,0xbb,0x1a,0x84,0x65,0xc2,0xad,0xad,0x9e,0x96,0x5,0x2,0x1f,0x8e,0x36,0x4f,0xe1,0xeb,0xaf,0xf0,0xea,0xc4,0xa8,0x2d,0x42,0xc7,0x6e,0x3f,0xb0,0xd3,0xcc,0x78,0xf9,0x98,0x3f] d='' for i inrange(256): b.append(i)
n=0 for i inrange(256): g=b[i] n=(n+g+ord(a[i%8]))%256 b[i]=b[n] b[n]=g
for i inrange(len(c)): c[i]=c[i]^ord(a[i%8])
for i inrange(len(c)//3): c[3*i+1]=c[3*i+1]^c[3*i] c[3*i+2]=c[3*i+1]^c[3*i+2] c[3*i]=c[3*i+2]^c[3*i]
n=0 m=0 for i inrange(39): n=(n+1)%256 g=b[n] m=(m+g)%256 b[n]=b[m] b[m]=g c[i]^=b[(g+b[n])%256]
num1 = [] num2 = [] num3 = [] num4 = [] num5 = [] ################################# for i1 inrange(1,6): for i2 inrange(1,6): if(i2 == i1): continue else: for i3 inrange(1,6): if(i3 == i1 or i3 == i2 or i3 == 4): continue else: for i4 inrange(1,6): if(i4 == i1 or i4 == i2 or i4 == i3 or i4 == 3): continue else: for i5 inrange(1,6): if(i5 == i1 or i5 == i2 or i5 == i3 or i5 ==i4 or i4 <= i5): continue else: index = [] index.append(i1) index.append(i2) index.append(i3) index.append(i4) index.append(i5) num1.append(index) ################################# for i1 inrange(1,6): for i2 inrange(1,6): if (i2 == i1 or i2 >= i1 or i2 == 5): continue else: for i3 inrange(1,6): if (i3 == i1 or i3 == i2 or i3 == 4): continue else: for i4 inrange(1,6): if (i4 == i1 or i4 == i2 or i4 == i3 or i4 == 3): continue else: for i5 inrange(1,6): if (i5 == i1 or i5 == i2 or i5 == i3 or i5 ==i4): continue else: index = [] index.append(i1) index.append(i2) index.append(i3) index.append(i4) index.append(i5) num2.append(index) ################################# for i1 inrange(1,6): for i2 inrange(1,6): if (i2 == i1 or i1 >= i2): continue else: for i3 inrange(1,6): if (i3 == i1 or i3 == i2 or i3 != 4): continue else: for i4 inrange(1,6): if (i4 == i1 or i4 == i2 or i4 == i3 or i4 >= 3or i4 == 3): continue else: for i5 inrange(1,6): if (i5 == i1 or i5 == i2 or i5 == i3 or i5 ==i4 or i5 >= i4): continue else: index = [] index.append(i1) index.append(i2) index.append(i3) index.append(i4) index.append(i5) num3.append(index) ################################# for i1 inrange(1,6): for i2 inrange(1,6): if (i2 == i1): continue else: for i3 inrange(1,6): if (i3 == i1 or i3 == i2 or i3 == 4): continue else: for i4 inrange(1,6): if (i4 == i1 or i4 == i2 or i4 == i3 or i4 != 3or i4 == 2): continue else: for i5 inrange(1,6): if (i5 == i1 or i5 == i2 or i5 == i3 or i5 ==i4): continue else: index = [] index.append(i1) index.append(i2) index.append(i3) index.append(i4) index.append(i5) num4.append(index) ################################# for i1 inrange(1,6): for i2 inrange(1,6): if (i2 == i1 or i2 >= i1): continue else: for i3 inrange(1,6): if (i3 == i1 or i3 == i2 or i3 == 4): continue else: for i4 inrange(1,6): if (i4 == i1 or i4 == i2 or i4 == i3 or i3 <= i4 or i4 == 3): continue else: for i5 inrange(1,6): if (i5 == i1 or i5 == i2 or i5 == i3 or i5 ==i4 or i5 == 1): continue else: index = [] index.append(i1) index.append(i2) index.append(i3) index.append(i4) index.append(i5) num5.append(index) ################################# for i1 in num1: for i2 in num2: if (i1[2] <= i2[2] or i1[4] <= i2[4]): continue else: flag = 0 for i inrange(5): if (i2[i] == i1[i]): flag = 1 if (flag == 1): continue else: for i3 in num3: flag = 0 for i inrange(5): if (i3[i] == i1[i] or i3[i] == i2[i]): flag = 1 if (flag == 1): continue else: for i4 in num4: flag = 0 for i inrange(5): if (i4[i] == i1[i] or i4[i] == i2[i] or i4[i] == i3[i]): flag = 1 if (flag == 1): continue else: for i5 in num5: if (i4[1] >= i5[1] or i4[4] >= i5[4]): continue else: flag = 0 for i inrange(5): if (i5[i] == i1[i] or i5[i] == i2[i] or i5[i] == i3[i] or i5[i] == i4[i]): flag = 1 if (flag == 1): continue print('========================') print(i1) print(i2) print(i3) print(i4) print(i5) print('========================') #################################