| 比赛 | 2025.5.24 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 线性同余发生器 | 最终得分 | 100 |
| 用户昵称 | 李金泽 | 运行时间 | 0.434 s |
| 代码语言 | C++ | 内存使用 | 1.61 MiB |
| 提交时间 | 2025-05-24 11:03:50 | ||
#include<cstdio>
#define ll long long
using namespace std;
ll a,m;const ll mod=1e9+7;
int main(){
freopen("LCG.in","r",stdin);freopen("LCG.out","w",stdout);
scanf("%lld%lld",&a,&m);a=1;
for(ll i=1;i<m;i++)a=a*i%mod;
printf("%lld",a);
return 0;
}