You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int pow(int x, int n, int MOD) {
|
|
long long y = x;
|
|
int res = 1;
|
|
for (; n > 0; n >>= 1) {
|
|
if (n & 1)
|
|
res = res * y % MOD;
|
|
y = y * y % MOD;
|
|
}
|
|
return res;
|
|
}
|
|
|
|
int main() {
|
|
const int MOD = 1000000007;
|
|
int x = pow(2, 10, MOD);
|
|
cout << x << endl;
|
|
}
|