Commit e871b16f by 安晓东

宝石与石头

parent f5ef36d5
def numJewelsInStones(J, S):
count = 0
for i in S:
if i in J:
count+=1
print(count)
numJewelsInStones("aA","aAAbbbb") # 预期输出 3
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment