delete pics to save space
This commit is contained in:
17
history_source/ccf 入门篇/U4/4.5.3.cpp
Normal file
17
history_source/ccf 入门篇/U4/4.5.3.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long long a,b;
|
||||
while(true)
|
||||
{
|
||||
cin>>a>>b;
|
||||
a=a%10;
|
||||
for(int i=1;i<b;i++){
|
||||
a=a*a;
|
||||
a=a%10;
|
||||
}
|
||||
cout<<a<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user