Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86970 丁俊杰 字母概率 Python3 Accepted 42 MS 3740 KB 183 2024-07-31 19:45:30

Tests(1/1):


Code:

while True: a,b=input().split() res=0 for x in b: if x==a.upper()or x==a.lower(): res+=1 print("{:.5f}".format(res/len(b)))