Last Digit of Power

Problem Name:
Last Digit of Power
Site:Spoj
Links:
Tags:
Problem setters: