I’d be grateful for help.
This is a nice practice problem from long contest OCT13 (involving finding pairs b/w 2 arrays s.t. x^y>y^x)
http://www.codechef.com/problems/ARRGAME2 … http://www.codechef.com/OCT13/problems/ARRGAME2
I’ve tried to implement following the editorial ( http://discuss.codechef.com/questions/26264/arrgame2-editorial ).
Here’s my commented submission: http://www.codechef.com/viewsolution/5262350
I reviewed the code and tested with different inputs (as in problem page comments and my own test cases), but output was fine.
I also tested the sorting and rank functions separately, and couldn’t find any problem there.
Please help me resolve this code.