*/
#include"stdio.h"
int main(void)
{
static unsigned int temp[1024];/*分段储存数据*/
unsigned int position=1;/*记录共有几段*/
int overflow=0; /*记录在算每一段时是否溢出*/
long
times=10000,tm_cnt,sgn_cnt;/*默认10000次计算,可以更改,两个计数器(乘方次数,段的位置)*/
temp[0]=2;/*初始值为2*/
if(times>13000)
{
printf("your input is too large");/*检查输入是否越界*/
exit(0);
}
/*开始计算,外层为乘方次数,内层为每一位计算*/
for(tm_cnt=0;tm_cnt<times-1;tm_cnt++)
{
for(sgn_cnt=0;sgn_cnt<position;sgn_cnt++)
{