为什么埃氏筛跑得比线性筛要快这么多????????

P3383 【模板】线性筛素数

@[Narcisuss](/space/show?uid=113464) 欧拉筛常数大
by Itst @ 2018-11-05 17:19:21


$vector$常数aaaaa
by 15owzLy1 @ 2018-11-05 17:19:32


@[Narcisuss](/space/show?uid=113464) 或许是这样子的
by Itst @ 2018-11-05 17:19:38


埃氏筛没有取模
by foreverlasting @ 2018-11-05 17:20:09


有没有开 $O2$ 啊
by 15owzLy1 @ 2018-11-05 17:20:22


vector常数大
by Labelray @ 2018-11-05 17:20:58


@[Itst](/space/show?uid=96296) 谢谢大佬
by Narcisuss @ 2018-11-05 17:21:01


@[15owzLy1](/space/show?uid=43139) 两个都没开
by Narcisuss @ 2018-11-05 17:21:16


你把vector改成手动往数组里放就行了
by Labelray @ 2018-11-05 17:21:48


@[Labelray](/space/show?uid=52211) 我同桌没用vector也跑了1300ms……
by Narcisuss @ 2018-11-05 17:21:52


| 下一页