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.
Be careful with those debug prints! I just found out:
1) A bug in iostream causing an infinite loop in one of my statements writing to cout
2) Obviously they kill your program after so much time has passed, and the printing slows it down, obviously. There is not way to distinguish this from a wrong result.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Roads and Libraries
You are viewing a single comment's thread. Return to all comments →
Be careful with those debug prints! I just found out:
1) A bug in iostream causing an infinite loop in one of my statements writing to cout 2) Obviously they kill your program after so much time has passed, and the printing slows it down, obviously. There is not way to distinguish this from a wrong result.