Can one of the admins please check if everything is alright with this problem. I have a solution which I think is optimal and I keep getting a TLE.
Thanks.
@xilinx can you take a quick look, sorry for tagging you.
The test data seems fine, my old code gets AC.