• + 0 comments
    def repeatedString(s: str, n: int) -> int:
        return s.count('a') * (n // len(s)) + s[:n % len(s)].count('a')