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