https://hack.codingblocks.com/submission/1381631
https://hack.codingblocks.com/submission/1381590
can some one please tell why these codes give wrong answer on 2nd test case
https://hack.codingblocks.com/submission/1381631
https://hack.codingblocks.com/submission/1381590
can some one please tell why these codes give wrong answer on 2nd test case
Not able to open (this is your account link probably).
Share question and code link.
Your submission is not visible to us. But while solving this, i figured out that second case fails because of not using long long. Make sure that you use long long as range of distances is 10^12.
In case this does not works, copy your code to the hackerblocks ide and send the link here.
Thanks for the fix, The range given in question is of integer.