| 比赛 | 201712练习 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 大整数取模 | 最终得分 | 100 |
| 用户昵称 | サイタマ | 运行时间 | 0.001 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2017-12-27 20:49:25 | ||
#include<fstream>
#include<string>
using namespace std;
ifstream cin("bigint.in");
ofstream cout("bigint.out");
string str;
long long n=0,m,l;
int lyh()
{
cin>>str;
cin>>m;
l=str.length();
for(int i=1;i<=l;i++)
{
n*=10;
n+=int(str[i-1]-48);
n%=m;
}
cout<<n<<endl;
cin.close();
cout.close();
return 0;
}
int Main=lyh();
int main(){;}