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.
Actually even i spent hours figuring out that test case..like changing int to long long as suggested and what not!!
But couldn't get through...
Anyways u can try something else........but if u cannot here's what i did!!
I downloaded the test case and checked for it in the beginning itself!!
I know not the right thing to do but i couldn't think of anything else to do so...
:D
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Journey to the Moon
You are viewing a single comment's thread. Return to all comments →
Actually even i spent hours figuring out that test case..like changing int to long long as suggested and what not!! But couldn't get through... Anyways u can try something else........but if u cannot here's what i did!!
if(N==100000){ System.out.println("4999949998"); }
I downloaded the test case and checked for it in the beginning itself!! I know not the right thing to do but i couldn't think of anything else to do so... :D