Hi All,
This is my first post. so apologies if there is any mistake in the writings.
I used the below method to solve the ICL21C problem tag but I think due to the large answer modulo some number I was keep getting WA.
sample answer link
https://www.codechef.com/viewsolution/43962180
So my question is if we need to give an answer modulo some number then we need to use the same method used by the problem setter which beats the creativity to solve the problem.
Apologies again if I made any mistakes in the post