HackerRank Tweets

  • + 0 comments

    python 3

    import re pattern = re.compile(r'\w*[#@]?(hackerrank)\w*',re.IGNORECASE)

    n =int(input()) count = 0

    for _ in range(n): text = input() if re.search(pattern, text): count = count + 1 print(count)