题目描述
求1992个1992的乘积的末两位数是多少?
输入
无
输出
输出只有一行(这意味着末尾有一个回车符号),包括1个整数。
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t=0,a=1;
do{
t++;
a=(a*1992)%100;
}while(t<1992);
cout<<a;
return 0;
}
求1992个1992的乘积的末两位数是多少?
无
输出只有一行(这意味着末尾有一个回车符号),包括1个整数。
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t=0,a=1;
do{
t++;
a=(a*1992)%100;
}while(t<1992);
cout<<a;
return 0;
}