n^n的末位數字(快速冪取模)

給出一個整數N,輸出N^N(N的N次方)的十進制表示的末位數字。 Input      一個數N(1 <= N <= 10^9) Output       輸出N^N的末位數字   Sample Input 13 Sample Output 3 #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using
相關文章
相關標籤/搜索