55pts 求助
查看原帖
55pts 求助
688783
SilverLi楼主2023/4/15 13:24

Link

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e5+5;
int n,mod=6662333;
inline int fast(int p) {
	int res=1,x=2;
	while(p) {
		if(p&1)	res=res*x%mod;
		x=x*x%mod,p/=2;
	}
	return res;
}
signed main() {
	cin>>n;
	cout<<(fast(n)/2);
	return 0;
}

2023/4/15 13:24
加载中...