摘要:
A. #include <bits/stdc++.h> #define PI acos(-1.0) #define mem(a,b) memset((a),b,sizeof(a)) #define TS printf("!!!\n") #define pb push_back #define inf 阅读全文
摘要:
Description Given A,B,C, You should quickly calculate the result of A^B mod C. (1<=A,C<=1000000000,1<=B<=10^1000000). Given A,B,C, You should quickly 阅读全文
摘要:
ll C[1005][1005];void calc_Cmn()//求组合数 { for(int i=0;i<1001;i++) { C[i][0]=C[i][i]=1; for(int j=1;j<i;j++) C[i][j]=C[i-1][j-1]+C[i-1][j]; } } ll Cuo[1005]; void Cuo()//求... 阅读全文
摘要:
A.记录每个A前面有多少个Q 后面有多少个Q #include <bits/stdc++.h> #define PI acos(-1.0) #define mem(a,b) memset((a),b,sizeof(a)) #define TS printf("!!!\n") #define pb p 阅读全文