Sample Input:

      13**13(以两个**代表次方)

      13**20

Sample Output:                  

      253

      801

 1 #include <stdio.h>
 2 int main()
 3 {
 4     int x,y,i,h;
 5     while(scanf("%d%d",&x,&y)!=-1)
 6     {
 7     
 8         x=x%1000;
 9          for(h=1,i=0;i<y;i++)
10          {
11              
12               h*=x;
13              h%=1000;
14          } 
15          printf("%d\n",h);
16     }
17     return 0;
18 }

 

 

相关文章:

  • 2021-09-25
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
相关资源
相似解决方案