()[]{} 所組成之字串,假設是 str2。
()[]{} 必須對稱存在,且對應的括號間不能插入單獨的括號。
tmp=”
while ans!=tmp:
tmp=ans
ans=re.sub('\(\)',”,ans)
.....
({[()]()})
Ans=CORRECT
(){[()]()
Ans=ERROR
A_PENCIL 或 A_XXBBHCL (_ 表示空白字元)。
This is a ball, not a bell.
This is a ball, not a bell. This is , not l.
(‘a’~’z’,’A’~’Z’)、數字 (‘0’~’9’) 以及空白字元所構成。
Cyut54is a356good 72school Ne0125ver 56give22 66up
54+356+72+125+56+22+66
Cyut54is a356good 72school Ne0125ver 56give22 66up 54+356+72+125+56+22+66=751