链接

http://pat.zju.edu.cn/contests/pat-a-practise/1035

知识点

python string 的连接用 +=

样例代码

n=int(raw_input())d={'1':'@','0':'%','l':'L','O':'o'}r=[]defcheck(p):s=''foriinp:ifd.has_key(i):s+=d[i]else:s+=ireturnsforiinrange(n):(name,password)=(xforxinraw_input().split())ifpassword!=check(password):r.append([name,check(password)])iflen(r)==0:ifn==1:print"There is 1 account and no account is modified"else:print"There are %d accounts and no account is modified"%nelse:printlen(r)foriteminr:printitem[0],item[1]