https://github.com/ryoga-exe/cp-library
📈 Library and Code snippets for competitive programming
https://github.com/ryoga-exe/cp-library
codesnippets competitive-programming cpp library snippets
Last synced: 5 months ago
JSON representation
📈 Library and Code snippets for competitive programming
- Host: GitHub
- URL: https://github.com/ryoga-exe/cp-library
- Owner: Ryoga-exe
- License: cc0-1.0
- Created: 2021-05-16T14:35:52.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T16:27:31.000Z (over 3 years ago)
- Last Synced: 2025-07-02T15:50:56.551Z (12 months ago)
- Topics: codesnippets, competitive-programming, cpp, library, snippets
- Language: C++
- Homepage: https://repos.ryoga.dev/cp-library/
- Size: 1.11 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cp-library
[](/LICENSE)
[](https://github.com/Ryoga-exe/cp-library/issues)

[](repos.ryoga.dev/cp-library/)
[](https://twitter.com/intent/follow?screen_name=Ryoga_exe)
[](https://atcoder.jp/users/Ryoga_exe)
## What is this?|これは何?
[Document](repos.ryoga.dev/cp-library/)
Ryoga.exe's Library and Code snippets for competitive programming.
For use with `C++17 (GCC 9.2.1)`.
Ryoga.exe の競プロ用ライブラリ・スニペット
`C++17 (GCC 9.2.1)` での使用を想定しています。
## Generate Snippet|スニペットを生成する
```bash
# Install Dependencies (it requires PyYAML to parse yaml files)
pip install PyYAML
# Run!
python generate-snippet.py
```
## Add new file to library|ライブラリ追加手順
1. ファイル (`src//.hpp` 等) を追加
prefix などは以下の通りに記述して設定する ([例](/src/data-structure/unionfind.hpp))
```cpp
/// @prefix <>
/// @description <>
/// @isFileTemplate false
```
ここで以下の形式の `start` がない場合はファイルのはじめからス ニペットに登録される、ある場合は `start` の次の行から登録される
```cpp
/// start
```
`src/` 直下に新たにディレクトリを作成してその中にファイルを追加 した場合、`config.yml` を更新する
2. ドキュメントを追加
## Add Releases|リリースを追加
```bash
git tag v1.0.0
git push origin --tag
```
## License|ライセンス
Licensed under a CC0 license. See [LICENSE file](/LICENSE) for more further details.