We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
importrep=re.compile(r'https?://(w{3}|ww2)?(\.)?([a-z\d\-]+)(\.[a-z\d\-]+)+')s=' '.join([input()for_inrange(int(input()))])print(';'.join(sorted(set([i.group().replace('http://', '').replace('https://', '').replace('www.', '').replace('ww2.', '') for i in re.finditer(p, s)]))))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Domain Name
You are viewing a single comment's thread. Return to all comments →
Python 3