Multiverse Of Courier Service

Limits 1s, 512 MB

Dr. Strange finally discovered a safe way to travel between parallel universes. By noticing people’s interests, he decided to start a courier business between two parallel universes named AAA and BBB. There are NNN habitable planets in both AAA and BBB numbered from 111 to NNN. For each iii, from 111 to NNN, let’s call ithi^{th}ith planet AiA_iAi​ for universe AAA and BiB_iBi​ for universe BBB.


This is a companion discussion topic for the original entry at https://toph.co/p/multiverse-of-transportation

Is there any editorial available for this problem?