⌨️

[AtCoder]ABC-379|B - Strawberries

2024/11/25に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def getString():
    return input()


def main():
    N, K = getIntMap()
    S = getString()

    print(S.count("O" * K))


if __name__ == "__main__":
    main()

Discussion