http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1622
简单题。。直接暴力快速幂

#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;

typedef long long ll;
const ll p = 1000000007;

int main() {
	ll A, B, C;
	scanf("%lld%lld%lld", &A, &B, &C);
	ll t = 2, ans = 1;
	while (C) {
		if (C & 1) ans = (ans * t) % p;
		t = (t * t) % p;
		C >>= 1;
	}
	printf("%lld\n", ans);
	return 0;
}

相关文章:

  • 2021-09-07
  • 2022-01-10
  • 2021-08-06
  • 2021-07-21
  • 2022-02-17
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2022-12-23
  • 2022-02-23
  • 2021-08-20
  • 2021-05-16
  • 2021-05-27
  • 2021-05-20
  • 2022-02-11
相关资源
相似解决方案