上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页
摘要: POJ 3070 阅读全文
posted @ 2017-11-21 13:37 Aragaki 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Problem fzu 1759 Super A^B mod C calculation http://acm.fzu.edu.cn/problem.php?pid=1759 其中和 #include <iostream> #include <string.h> #include <stdio.h> 阅读全文
posted @ 2017-11-21 13:08 Aragaki 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-20 22:44 Aragaki 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-20 20:28 Aragaki 阅读(1330) 评论(0) 推荐(0) 编辑
摘要: 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()//求... 阅读全文
posted @ 2017-11-20 20:17 Aragaki 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-20 13:43 Aragaki 阅读(204) 评论(0) 推荐(0) 编辑
摘要: A.找出最大的两个数 注意ll #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_bac 阅读全文
posted @ 2017-11-19 13:49 Aragaki 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int dp[500005]; int q[500005]; int sum[500005]; int head, tail, n, m; int getDP(int i, int j) { return dp[j] + m + (sum[i] - sum[j]) * (sum[... 阅读全文
posted @ 2017-10-18 16:39 Aragaki 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 注意不能每个T都mem 不然会T 阅读全文
posted @ 2017-10-17 18:20 Aragaki 阅读(230) 评论(0) 推荐(0) 编辑
摘要: hdu 6214 阅读全文
posted @ 2017-10-17 01:23 Aragaki 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页