8000 performance of comb, fact (mod_int) · Issue #1 · Suikaba/procon-lib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

performance of comb, fact (mod_int) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Suikaba opened this issue Apr 1, 2019 · 0 comments
Open

performance of comb, fact (mod_int) #1

Suikaba opened this issue Apr 1, 2019 · 0 comments

Comments

@Suikaba
Copy link
Owner
Suikaba commented Apr 1, 2019

なぜか fact、comb が呼ばれるたびに逆元を求めており、計算量が悪い。
逆元は一度計算したらメモしておくようにする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0