问题描述:
输出nN^N的结果的最右边的数字:you should output the most right digit of N^N
Problem Description
Given a positive integer N,you should output the most right digit of N^N.
Input
The input contains several test cases.The first line of the input is a single integer T which is the number of test cases.T test cases follow.
Each test case contains a single positive integer N(1
Problem Description
Given a positive integer N,you should output the most right digit of N^N.
Input
The input contains several test cases.The first line of the input is a single integer T which is the number of test cases.T test cases follow.
Each test case contains a single positive integer N(1
问题解答:
我来补答展开全文阅读