标签:++ bsp clu define ott font 技术分享 mis problem
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5539 Accepted Submission(s): 4320
1 #include <iostream> 2 #include <stdio.h> 3 #include <string.h> 4 5 using namespace std; 6 7 #define MOD 9973 8 9 int main() 10 { 11 int T; 12 cin>>T; 13 while(T--) 14 { 15 int a,b; 16 scanf("%d%d",&a,&b); 17 b%=MOD; 18 int c = b; 19 for (int i=0;i<MOD-3;i++) 20 c = (c*b)%MOD; 21 a = (a*c)%MOD; 22 printf("%d\n",a); 23 } 24 return 0; 25 }
标签:++ bsp clu define ott font 技术分享 mis problem
原文地址:http://www.cnblogs.com/haoabcd2010/p/6670786.html