Getting wrong answer in one test case while other test case passed successfully. I’m using multiset and can’t figure out what’s the problem in my code. Please help!.
my code: https://ide.codingblocks.com/s/226429
Getting wrong answer if I'm using Multiset
@devaman1729
distance can be greater than 10^9 which can’t be stored in int. Change line 8 to multiset long int m;
Got it, it worked. Thanks!
1 Like