NC230854. Edward Gaming, the Champion
描述
输入描述
The only line contains a nonempty string, which consists of no more than lowercase Latin letters, 'a' to 'z'.
输出描述
Output a line containing a single integer, indicating the number of occurrences of "edgnb" in the given string.
示例1
输入:
edgnb
输出:
1
pypy3 解法, 执行用时: 129ms, 内存消耗: 36712K, 提交时间: 2021-11-21 11:05:15
print(input().count('edgnb'))
Python3 解法, 执行用时: 45ms, 内存消耗: 5128K, 提交时间: 2022-05-09 22:16:11
print(input().count("edgnb"))