提交记录 18864
提交时间 |
评测时间 |
2023-01-08 20:03:01 |
2023-09-03 19:42:23 |
//g++ test.cpp -o test -g -std=c++14 -O0 -Wall -fsanitize=undefined
#include<iostream>
#include<cstdio>
const int maxn=1e6+10,mod=1e9+7;
int ni[maxn];
int main(){
ni[1]=1;
for(int i=2;i<maxn;i++) ni[i]=mod-1LL*mod/i*ni[mod%i]%mod;
for(int i=1;i<maxn;i++) printf("%d ",ni[i]);
putchar('\n');
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 166.251 ms | 13 MB + 284 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-16 15:20:56 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠