i have written the whole and it’s working also
the only problem is that it is asking to output answer in modulo 10^9+7
so how to do addition of large numbers and get the output as required
here is my code …please tell me how to answer it in modulo 10^9+7
The contest is live. Please refrain from posting codes and queries about problem here until contest is live.
If you have a doubt in the problem, ask it in Comment section and the problem moderators will reply you!
contest is live, so please don’t post your code.
Sorry, i didnt notice its from a live contest. Deleted my answer.