1 条题解
-
1
#include<iostream> #include<cstdio> #include<cstring> #define ll long long using namespace std; const ll mod=1000000007; ll n,m; inline ll ksm(ll x,ll k){ ll tmp=1; while(k){ if(k%2==1)tmp*=x,tmp%=mod; x=x*x%mod,k>>=1; } return tmp; } int main(){ cin>>n>>m; cout<<ksm(2,n*m); }
- 1
信息
- ID
- 4990
- 时间
- 1000ms
- 内存
- 125MiB
- 难度
- 3
- 标签
- 递交数
- 6
- 已通过
- 5
- 上传者