Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67209 胡海峰老师 字母概率 Python3 Accepted 36 MS 3764 KB 183 2024-03-16 09:46:47

Tests(1/1):


Code:

w,words = input().split() while w: w = w.lower() words = words.lower() res = words.count(w)/len(words) print("{:.5f}".format(res)) w, words = input().split()