code_list = []
for i in range(5):
for j in range(5):
for k in range(5):
for l in range(5):
for m in range(5):
tab=[]
tab.append(i)
tab.append(j)
tab.append(k)
tab.append(l)
tab.append(m)
code = ""
for ii in range(5):
subcode = ""
for jj in range(5):
if tab[jj] == ii:
subcode = subcode + str(jj+1)
if len(subcode) != 0:
if len(code) == 0:
code = subcode
else:
code = code + "." + subcode
if code not in code_list:
aaa = code.split(".")
for iii in range(len(aaa)-1):
for jjj in range(len(aaa)-1):
if aaa[jjj][0] > aaa[jjj+1][0]:
temp = aaa[jjj]
aaa[jjj] = aaa[jjj+1]
aaa[jjj+1] = temp
bbb = aaa[0];
for ll in range(len(aaa)-1):
bbb = bbb + "." + aaa[ll+1]
if bbb not in code_list:
code_list.append(bbb)
for i in range(len(code_list)):
print code_list[i]
0 件のコメント:
コメントを投稿