TLE in powpow2 on SPOJ

CodeLink->https://ide.codingblocks.com/s/224973

I have some following doubt
-> Solution on spoj getting TLE
-> In the above code Line 161 what it says
-> we have fact_41 and fact_41_p array so I don’t get it what fact_41_p array does in this code.

Hey @imsaurabh
Please read the first explanation on this discussion
https://www.quora.com/How-do-I-solve-Power-with-Combinatorics-HARD-on-SPOJ
Then you will be able to understand there arrays and operations
Regarding TLE don’t worry about it
SPOJ has extremely tight constraints which can give TLE only due to a split second
So don’t worry about it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.