1 case failing.I have used a map


1 case is failing

have edited your code here


Had to use long long int so instead of std:: i have initialised it with using namespace std
Hope this will solve your doubt, if it does. Please mark it as resolved.