Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
67224 | 潘允晨 | 字母概率 | Python3 | Accepted | 33 MS | 3748 KB | 276 | 2024-03-16 10:32:01 |
''' input a apple c Candy a banana output 0.20000 0.20000 0.50000 ''' letter,word=input().split() while letter: letter=letter.lower() word=word.lower() res=word.count(letter)/len(word) print('{:.5f}'.format(res)) letter,word=input().split()