1093: 1992^1992的末两位数是多少
Time Limit: 1 Sec Memory Limit: 128 MBDescription
求1992个1992的乘积的末两位数是多少?
Input
无
Output
输出只有一行,包括1个二位整数。
HINT
Source
#include<iostream>
using namespace std;
main()
{
int m=1,n=1992;
while(n)
{
m*=1992;
m%=100;
n--;
}
cout<<m<<endl;
}

本文探讨了如何计算1992的1992次幂的末两位数,通过循环和取模操作实现快速计算。

被折叠的 条评论
为什么被折叠?



