LSTDGT - Last Digit of Power
Given two numbers a and b. Find the last digit of a^b. (a to the power b)
There will be t (1<=t<=10) testcases. In each case there will be two number a (1<=a<=10^100000) and b (1<=b<=10^100000) separated by a space.
Print the last digit of a^b in a single line.
Just remove unneccessary blank lines to get your code under source limit.
well quite easy one...
To be moved to tutorial very soon !
@Jamil Siam: Changing time limit is not an good idea after you publish the Problem. We have all ready many problem slimier to this.
@all: TL has been updated. Please try again.Last edit: 2017-06-01 16:33:46
Please move this to tutorials ASAP.
Last edit: 2017-05-31 21:29:54