题解:
代码:
def AI_clq(ll,num): l1=[i for i in ll if i<4] l2=[i for i in ll if i>=4] ans=[] if num==8: if len(l1)==4 and len(l2)==4: ans.append(l1+l2) elif num==4: if len(l1)==4: ans.append(l1) if len(l2)==4: ans.append(l2) elif num==2: if len(l1)==2 or len(l2)==2: if len(l1)==2: ans.append(l1) if len(l2)==2: ans.append(l2) elif len(l1)==4 or len(l2)==4: if len(l1)==4: ans.append([l1[0],