|
|
back to threadReply to message- Messages should be written in English and correspond to the matter of the website.
- Messages should not contain offences and obscene words.
- Messages should not contain correct solutions.
Re: what is the difference between this code and that code, still get wrong int pow(int X, int N, int M) { if(N<1) return 1; int res=pow(X, N>>1, M); res=(res*res)%M; if(N&1) return (X*res)%M; return res; }
|
|
|