3的幂的和

Description 求:3^0 + 3^1 +...+ 3^(N) mod 1000000007。   Input 每行一个整数N(0 <= N <= 10^9)   Output 输出:计算结果   Sample Input 3 Sample Output 40   #include <bits/stdc++.h> using namespace std; typedef long long
相关文章
相关标签/搜索