Can anyone please tell me where is my solution going wrong ???
Question: http://www.codechef.com/problems/CSS2
My Solution: http://www.codechef.com/viewsolution/5225353
Can anyone please tell me where is my solution going wrong ???
Question: http://www.codechef.com/problems/CSS2
My Solution: http://www.codechef.com/viewsolution/5225353
Your solution is not publicly visible.
The solution not being visible was a glitch at our end. This has been fixed. Why do you not ask for help on the editorial page of the problem? http://discuss.codechef.com/questions/54097/css2-editorial
Your algorithm is correct. I am unable to find a bug.
I can only point out that you could have used only one map instead of using two different maps.
You can make std::map<pair<int,int> , pair<int,int> >
.
Here’s my solution: http://www.codechef.com/viewsolution/5219242