jojo的奇妙判定

灌水区

500ms?
by HYSK_残雪 @ 2019-07-19 16:45:38


```cpp #include<cstdio> #define ll long long using namespace std; const int maxn=3e6+5; ll inv[maxn]={0,1}; int main(){ int n,p; scanf("%d%d",&n,&p); printf("1\n"); for(int i=2;i<=n;i++) inv[i]=(ll)p-(p/i)*inv[p%i]%p,printf("%d\n",inv[i]); return 0; } ``` 公式天下第一
by Tazo @ 2019-07-19 17:03:29


@[蓝蓝的天堂](/space/show?uid=40352) Orz
by foxdemon @ 2019-07-19 17:10:42


@[HYSK_残雪](/space/show?uid=65671) @[蓝蓝的天堂](/space/show?uid=40352) 我是说测试点是TLE,然而显示出Unaccepted
by Space_Gold_Trash @ 2019-07-19 17:11:50


不,是评测状态
by Space_Gold_Trash @ 2019-07-19 17:12:11


不是都是这样吗??(#`O′)
by Tazo @ 2019-07-19 18:02:42


然而这和JOJO有什么关系
by 雪树蟋蟀 @ 2019-07-19 18:08:10


@[蓝蓝的天堂](/space/show?uid=40352) 想成libre oj了...
by Space_Gold_Trash @ 2019-07-19 19:02:43


64?
by きりと @ 2019-07-19 21:18:19


|