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
相關文章
相關標籤/搜索