摘要:
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> 阅读全文
摘要:
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 阅读全文
摘要:
#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[... 阅读全文