作业帮 > 英语 > 作业

输出nN^N的结果的最右边的数字:you should output the most right digit of N

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/06/23 15:19:29
输出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
输出nN^N的结果的最右边的数字:you should output the most right digit of N
可能是超时了啊啊啊