You are viewing a single comment's thread. Return to all comments →
The int in the boilercode needs to be changed to long. Some of the test cases have large n and m, and result will exceed 32bits (int size).
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Gridland Metro
You are viewing a single comment's thread. Return to all comments →
The int in the boilercode needs to be changed to long. Some of the test cases have large n and m, and result will exceed 32bits (int size).