As the round is over, the links are disabled by them.
I can only come up with a very basic brute force solution of $$$(2*N)!$$$ where for each of the order of visiting I calculate the cost and then update the answer accordingly. But as expected this even didn't pass even a single test.
Can someone please help me with some spoilers on how to proceed further with it?
Thanks!