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.
Thanks for help. map() helped a little bit, but didnt solve the problem. Cases 3-7 terminate with timeout.
Didnt get about 6-8 lines. I need to convert list elements to integers to do OR instead of comparing strings, cause it seems faster that way.
Btw, Im using python3, and as far as I know raw_input() was renamed to input and running input() instead of str(input()) doesnt change anything.
And yes, my code is more like "academic" now, so separation of actions makes me understand better what I do.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
Thanks for help. map() helped a little bit, but didnt solve the problem. Cases 3-7 terminate with timeout.
Didnt get about 6-8 lines. I need to convert list elements to integers to do OR instead of comparing strings, cause it seems faster that way. Btw, Im using python3, and as far as I know raw_input() was renamed to input and running input() instead of str(input()) doesnt change anything. And yes, my code is more like "academic" now, so separation of actions makes me understand better what I do.