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)
ARRGAME2 Problem - CodeChef … CodeChef: Practical coding for everyone
I’ve tried to implement following the editorial ( ARRGAME2 - Editorial - editorial - CodeChef Discuss ).
Here’s my commented submission: CodeChef: Practical coding for everyone
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.