#include<iostream> #include<cmath> using namespace std; int main() { long long a,b,c,d,e; cin>>a>>b>>c; d=pow(b,c); e=pow(a,d); cout<<e%10<<endl; }
实在搞不清楚哪里错了,自测样例都过了