题目 http://acm.hdu.edu.cn/showproblem.php?pid=6063 根据公式打表,可以发现一个规律就是求和的结果正好就是n的k次方,然后快速幂取模即可。 #include<bits/stdc++.h>using namespace std;const long long int MOD=7+1e9;long long int p
RXD and math Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 310 Accepted Submission(s): 160 Problem Description RXD is a goo
Problem Description RXD has a tree T , with the size of n . Each edge has a cost. Define f(S) as the the cost of the minimal Steiner Tree of the set S on tree T . he wants to