【Luogu3414】SAC#1 - 组合数


problem

solution

codes

#include
#define mod 6662333
using namespace std;
typedef long long LL;
LL dfs(LL a, LL b, LL p){
    if(b==1)return a%p;
    LL t = dfs(a,b>>1,p)%p;
    if(b%2==0)return t*t%p;
    else return t*t*a%p;
}
int main(){  
    LL n;  cin>>n;
    cout<2,n-1,mod);
    return 0;
}

相关