2926 - Ivan
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Re: 2926 - Ivan
Hint muy descarao: matrix exponentation
Re: 2926 - Ivan
tambien sale por una sucesion, lo que hay que hacer una observacion, porque N <= 2*10^9, pero es mucho mas rapido que la exponenciacion de matrices
teruel