魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
2283: 2的N次方
Memory Limit:128 MB
Time Limit:1.000 S
:
Creator:
Submit:10
Solved:6
Submit
Statistics
Description
输⼊n⾏,每⾏⼀个整数x,输出2的x次⽅的个位是多少?2的3次⽅表⽰3个2相乘,结果是8
Input
输⼊n⾏,每⾏⼀个整数x
Output
输出n⾏,每⾏⼀个整数,2的x次方的个位。
Sample Input
3 5 4 2
Sample Output
2 6 4
HINT
10% 只有⼀⾏,x<10
30% 每⼀⾏的整数满⾜0 < x < 10
50% 每⼀⾏的整数满⾜0 < x < 60
100% 每⼀⾏的整数满⾜0 < x < 1e9, ⾏数不超过100000
Source/Category
数组
循环
Submit
Statistics