Coder-Strike 2014 - Qualification Round
はい。
http://codeforces.com/contest/411
A. Password Check
ざっくりと大意
・長さ5文字以上/1つ以上の大文字/1つ以上の小文字/1つ以上の数字のパスワード強度の条件を満たしているか?
方針のようなもの
・条件をすべてチェックする。
ans=['Too weak','Correct'] chk=[0]*4 n=raw_input() if len(n)>=5: chk[0]=1 for i in n: if i.isupper() and chk[1]==0: chk[1]=1 if i.islower() and chk[2]==0: chk[2]=1 if i.isdigit() and chk[3]==0: chk[3]=1 print ans[sum(chk)==4]