笔者打了两年 xcpc,留下了一些笔记 + 板子,可以供大家学习借鉴
有些部分的代码可能来自别人的模板,也有些地方不是很全,同时也欢迎大家补充。
不保证模板的完全正确,请一定在使用前进行自测。
Template-of-acm ├── cpp-template/ (C++ 算法模板与 Markdown 讲解) │ ├── Supplements/ │ ├── NumberTheory/ │ ├── BasicAlgorithms/ │ ├── Combinatorics/ │ ├── LinearAlgebra/ │ ├── Polynomial/ │ ├── Geometry/ │ ├── Graph/ │ ├── DataStructures/ │ ├── DynamicProgramming/ │ ├── Strings/ │ ├── GameTheory/ │ ├── Probability/ │ ├── Construct/ │ ├── GroupTheory/ │ ├── Tricks/ │ └── BasicKnowledge/ └── python-template/ (Python 算法模板库,包含 111 个经典算法模板及全自动化测试驱动)
python-template/ 目录下包含了完整的 Python 算法模板库,涵盖数论、图论、数据结构、字符串、计算几何等 13 大类算法。
在该目录下运行以下命令即可对全量 111 个 Python 算法模板进行微分/对拍测试:
cd python-template
python3 _verify_all.pyNo explicit open-source license has been added yet. Unless the repository owner adds a license, all rights are reserved by default.