Code Monkey home page Code Monkey logo

competitive_programming's People

Contributors

ryutakremer avatar

Watchers

 avatar

competitive_programming's Issues

UnionFind木改善

  • 計算量的に問題のあるオペレーションが多々あり

    • 結局 O(N) で済んでいるから問題ないが怖い場合もある
  • 仲間の数を知れるメゾッドの作成・そのうち最大のものを取り出すメゾッドの改善

    • どこかの問題で実装した気がする

ライブラリの依存関係?問題

多くのライブラリがTemplete.hppを前提としているのでIFDEFでの処理の記述を行うなり,事前にincludeするべきかもしれない

Combinationの処理最適化

ifacの計算で毎回逆元を求めていると遅いので、最初にfacを埋めて
ifac[n]=fac[n]の逆元
とした後
ifac[i-1] = ifac[i] * i
という漸化式使って計算していくと良いですよ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.