A 牛牛的密码
牛牛的密码
https://ac.nowcoder.com/acm/contest/7604/A
A 牛牛的密码
纯模拟
s=input() l1=[] l2=[] l3=[] l4=[] ans=0 for i in s: if 'a'<=i<='z': l1.append(i) elif 'A'<=i<='Z': l2.append(i) elif '0'<=i<='9': l3.append(i) else: l4.append(i) if l1: ans+=1 if l2: ans+=1 if l3: ans+=1 if l4: ans+=1 print(f"password level:{ans}") if l1: print("".join(l1)) else: print("(Null)") if l2: print("".join(l2)) else: print("(Null)") if l3: print("".join(l3)) else: print("(Null)") if l4: print("".join(l4)) else: print("(Null)")