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.
Could the challenge get any easier‽ 😆 This was easier than the earlier challenges, yet it was worth more points, 30 instead of 20.
Thank you, HackerRank! ❤️
import re, sys
# We don't even CARE about ignoring the first
# line of input containing the number N. It
# won't match the pattern anyway.
print('\n'.join(m[1] for m in re.finditer(
r'[:,][^#\n]*(#([0-9A-Fa-f]{3}){1,2})',
sys.stdin.read())))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hex Color Code
You are viewing a single comment's thread. Return to all comments →
Could the challenge get any easier‽ 😆 This was easier than the earlier challenges, yet it was worth more points, 30 instead of 20.
Thank you, HackerRank! ❤️