Unable to figure out errors. Link to my solution is
Please HELP!!!
Unable to figure out errors. Link to my solution is
Please HELP!!!
please post link to your solution
Here is the link to my solution.
not able to view your solution if you could just paste it on some other platform and send link then
You are using a global map and hence for every new test case map is not empty and it uses already stored values.Correct this and i would suggest use array. Also take input this way
while(cin>>n)
{
// Try Yourself first
}
solution- CodeChef: Practical coding for everyone
Thanks !