51Nod-1004-n^n的末位数字

给出一个整数N,输出N^N(N的N次方)的十进制表示的末位数字。 Input 一个数N(1 <= N <= 10^9) Output 输出N^N的末位数字 Input示例 13 Output示例 3web 一道规律题,幂的末位数的规律为四次一循环,因此……svg #include <stdio.h> #include <math.h> int main() { int a, b, c;
相关文章
相关标签/搜索