{"id":16695280,"url":"https://github.com/renbaoshuo/oi-codes","last_synced_at":"2025-03-17T00:33:44.516Z","repository":{"id":39519260,"uuid":"405544225","full_name":"renbaoshuo/OI-codes","owner":"renbaoshuo","description":"OI codes of @renbaoshuo. Mirrored from https://git.sb/baoshuo/OI-codes.git","archived":false,"fork":false,"pushed_at":"2024-08-26T03:54:09.000Z","size":6441,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T20:13:01.467Z","etag":null,"topics":["acwing","bzoj","codeforces","competitive-programming","computer-science","cpp","hustoj","hydro","libreoj","luogu","oi","s2oj","uoj","usaco","vijos"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renbaoshuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-12T04:18:10.000Z","updated_at":"2025-02-18T11:44:56.000Z","dependencies_parsed_at":"2023-09-25T06:58:12.653Z","dependency_job_id":"2f3dbc45-2a29-4aaa-9faa-376a98f37687","html_url":"https://github.com/renbaoshuo/OI-codes","commit_stats":{"total_commits":2209,"total_committers":1,"mean_commits":2209.0,"dds":0.0,"last_synced_commit":"fd072571c6227472778143365a0ba2db7234ad33"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renbaoshuo%2FOI-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renbaoshuo%2FOI-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renbaoshuo%2FOI-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renbaoshuo%2FOI-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renbaoshuo","download_url":"https://codeload.github.com/renbaoshuo/OI-codes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acwing","bzoj","codeforces","competitive-programming","computer-science","cpp","hustoj","hydro","libreoj","luogu","oi","s2oj","uoj","usaco","vijos"],"created_at":"2024-10-12T17:06:18.882Z","updated_at":"2025-03-17T00:33:39.495Z","avatar_url":"https://github.com/renbaoshuo.png","language":"C++","readme":"# OI Codes\n\n[![Author](https://img.shields.io/badge/Author-Baoshuo-b68469.svg?style=flat-square)](https://baoshuo.ren) [![Stars](https://img.shields.io/github/stars/renbaoshuo/OI-codes?style=flat-square)](https://github.com/renbaoshuo/OI-codes/stargazers) [![GPL-3.0 License](https://img.shields.io/github/license/renbaoshuo/OI-codes?style=flat-square)](/LICENSE)\n\n本仓库的主仓库位于 [GitSB](https://git.sb/baoshuo/OI-codes) 上，并在 [GitHub](https://github.com/renbaoshuo/OI-codes)、[GitLab](https://gitlab.com/baoshuo/OI-codes) 和 [GitMac](https://git.m.ac/baoshuo/OI-codes) 上设立了镜像。\n\n## 说明\n\n本仓库存放与 **OI** 有关的代码。\n\n- 部分代码的思路借鉴了题解。\n- 部分题目文件夹下会有 `solution.md` 给出做题思路，也会有部分题目会在 [博客](https://oi.baoshuo.ren/) 中给出题解。\n- 部分题目的 `samples` 和 `data` 文件夹下会存放该题的部分大样例以及测试数据，该部分内容使用 Git LFS 存储，请参阅下方的「测试数据」一节。\n\n做题时间请参考 `Author Date` ，或根据题目对应提交中注明的提交记录编号查找。\n\n## 仓库使用指南\n\n![](https://arina.loli.net/2022/05/29/zVmpsoQ34KiYDGc.png)\n\n▲ 点击「Commits」按钮可以查看历史提交记录。\n\n![](https://arina.loli.net/2022/05/29/bcQpPV1d7843nDX.png)\n\n▲ 在每个提交记录的说明中都会注明提交记录的链接/编号。\n\n![](https://arina.loli.net/2022/05/29/N6A2kDgCnu8Jc9r.png)\n\n![](https://arina.loli.net/2022/05/29/3IyAo9KdtQgslhL.png)\n\n▲ 可以在提交历史中找到每份代码的不同版本。\n\n## 测试数据\n\n本仓库使用了 [Git LFS](https://git-lfs.github.com) 来存储题目的测试数据。\n\n![](https://arina.loli.net/2022/07/12/Dv8t2bcr1G9fyBT.png)\n\n▲ 在 [GitSB](https://git.sb/baoshuo/OI-codes) 上可以使用「Download this directory」选项下载某道题的所有测试数据。\n\n![](https://arina.loli.net/2022/07/12/9gN2tKMqUVIO5iY.png)\n\n▲ 在 [GitMac](https://git.m.ac/baoshuo/OI-codes) 上可以直接预览存储在 LFS 中的文件内容。\n\n---\n\n在克隆仓库前请先安装 Git LFS，并使用如下命令以获得更快的克隆速度：\n\n```bash\ngit lfs clone https://git.sb/baoshuo/OI-codes.git\n```\n\n如果克隆仓库时不需要拉取测试数据，可以使用以下命令：\n\n```bash\nGIT_LFS_SKIP_SMUDGE=1 git clone https://git.sb/baoshuo/OI-codes.git\n```\n\n后期如果希望再次拉取测试数据，可以使用以下命令：\n\n```bash\ngit lfs pull\n```\n\n## 子模块\n\n本仓库包含了以下子模块：\n\n- [MikeMirzayanov/testlib](https://github.com/MikeMirzayanov/testlib)\n- [atcoder/ac-library](https://github.com/atcoder/ac-library)\n\n在克隆仓库后需要运行以下命令检出子模块：\n\n```bash\ngit submodule update --init --recursive\n```\n\n## 文件目录结构\n\n| 文件夹                                | 测评系统                                                                                                                                              | 账号                                                               | 说明                                |\n| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | ----------------------------------- |\n| [`AcWing`](./AcWing/)                 | [![AcWing](https://arina.loli.net/2022/05/29/P2bn7gmuZKvAqIV.png/250/50)](https://www.acwing.com/problem/)                                            | [宝硕](https://www.acwing.com/user/myspace/index/32848/)           | 部分题目为权限题，需购买对应课程。  |\n| [`AtCoder`](./AtCoder/)               | [![AtCoder](https://arina.loli.net/2022/05/29/wZ2Ge4uRt7S9Qxz.png/1000/75)](https://atcoder.jp/contests/archive)                                      | [baoshuo](https://atcoder.jp/users/baoshuo)                        | 题目为比赛题。                      |\n| [`bjtu`](./bjtu/)                     | [acm.bjtu](https://citel.bjtu.edu.cn/acm/problem)                                                                                                     | [宝硕](https://citel.bjtu.edu.cn/acm/user/4252)                    |                                     |\n| [`BZOJ`](./BZOJ/)                     | [Hydro BZOJ 域](https://hydro.ac/d/bzoj/)、[DarkBZOJ](https://darkbzoj.tk/problems)                                                                   | -                                                                  | 原 BZOJ 已经停止运营。              |\n| [`Codeforces`](./Codeforces/)         | [![Codeforces](https://arina.loli.net/2022/05/29/34Lz8cShuaVDEZI.png/250/50)](https://codeforces.com/problemset)                                      | [baoshuo](https://codeforces.com/profile/baoshuo)                  |                                     |\n| [`Gym`](./Gym/)                       | [![Codeforces::Gym](https://arina.loli.net/2022/05/29/34Lz8cShuaVDEZI.png/250/50)](https://codeforces.com/gyms)                                       | [baoshuo](https://codeforces.com/profile/baoshuo)                  |                                     |\n| [`HDU`](./HDU/)                       | [Hangzhou Dianzi University Online Judge](http://acm.hdu.edu.cn/listproblem.php?vol=1)                                                                | [renbaoshuo](http://acm.hdu.edu.cn/userstatus.php?user=renbaoshuo) | 需要实名认证。                      |\n| [`LibreOJ`](./LibreOJ/)               | [![LibreOJ](https://arina.loli.net/2022/05/29/bSj28sOMdiJc9Lp.png/250/50)](https://loj.ac/p)                                                          | [baoshuo](https://loj.ac/u/baoshuo)                                |                                     |\n| [`Luogu`](./Luogu/)                   | [![洛谷](https://arina.loli.net/2022/05/29/hUrC3Ky4n6XiSx2.png/250/50)](https://www.luogu.com.cn/problem/list)                                        | [宝硕](https://www.luogu.com.cn/user/168214)                       |                                     |\n| [`NowCoder`](./NowCoder/)             | ![牛客竞赛](https://arina.loli.net/2022/05/29/K24iPrRsmF6CGBT.png/250/50)                                                                             | [宝硕](https://ac.nowcoder.com/acm/contest/profile/742234351)      |                                     |\n| [`POJ`](./POJ/)                       | [Peking University JudgeOnline](http://poj.org/problemlist)                                                                                           | [renbaoshuo](http://poj.org/userstatus?user_id=renbaoshuo)         |                                     |\n| [`S2OJ`](./S2OJ/)                     | [![石家庄二中在线评测系统](https://arina.loli.net/2022/05/29/RdHeuitDCTGgNcQ.png/300/50)](https://www.sjzezoj.com/problems)                           | [baoshuo](https://www.sjzezoj.com/user/profile/baoshuo)            | 校内 OJ，需要访问权限。存在登录墙。 |\n| [`tk.hustoj.com`](./tk.hustoj.com/)   | [HUSTOJ TK 题库](http://tk.hustoj.com/problemset.php)                                                                                                 | [renbaoshuo](http://tk.hustoj.com/userinfo.php?user=renbaoshuo)    |                                     |\n| [`USACO`](./USACO/)                   | [USACO](https://www.usaco.org)                                                                                                                        | -                                                                  |                                     |\n| [`USACO-Training`](./USACO-Training/) | [USACO Training](https://train.usaco.org/)                                                                                                            | -                                                                  |                                     |\n| [`Vijos`](./Vijos/)                   | [Vijos](https://vijos.org/p)                                                                                                                          | [renbaoshuo](https://vijos.org/user/145797)                        |                                     |\n| [`XJOI`](./XJOI/)                     | [XJOI](https://xjoi.net/problemlist)                                                                                                                  | [renbaoshuo](https://xjoi.net/user/profile/renbaoshuo)             | 存在登录墙。                        |\n| [`ybt`](./ybt/)                       | [![信息学奥赛一本通（C++ 版）在线测评系统](https://arina.loli.net/2022/05/29/k92iPQR1ZLabzmB.jpg/250/50)](http://ybt.ssoier.cn:8088/problem_list.php) | baoshuo                                                            |                                     |\n\n## 语言环境信息\n\n本仓库中代码本地编译环境如下：\n\n|   语言 | 编译器版本                                                  | 编译命令                                  |\n| -----: | ----------------------------------------------------------- | ----------------------------------------- |\n|      C | `gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0`                 | `gcc code.c -o code -std=c11 -O2 -lm`     |\n|    C++ | `g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0`                 | `g++ code.cpp -o code -std=c++14 -O2 -lm` |\n| Python | `Python 3.9.5 (default, May 19 2021, 11:32:47) [GCC 9.3.0]` | `python code.py`                          |\n| NodeJS | `v14.18.1`                                                  | `node code.js`                            |\n|    PHP | `PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )`     | `php code.php`                            |\n\n运行环境如下：\n\n|          |                                           |\n| -------: | :---------------------------------------- |\n|      CPU | `Intel(R) Core(TM) i7-9750H @ 2.60GHz`    |\n|     内存 | 32GiB                                     |\n| 系统版本 | `Ubuntu 20.04.4 LTS on Windows 10 x86_64` |\n| 内核版本 | `5.10.102.1-microsoft-standard-WSL2`      |\n\n代码运行时长均以此环境为准。\n\n## Author\n\n**OI Codes** © [Baoshuo](https://github.com/renbaoshuo), Released under the [GPL-3.0](./LICENSE) License.\u003cbr\u003e\nAuthored and maintained by Baoshuo.\n\n\u003e [Personal Website](https://baoshuo.ren) · [Blog](https://blog.baoshuo.ren) · GitHub [@renbaoshuo](https://github.com/renbaoshuo) · Twitter [@renbaoshuo](https://twitter.com/renbaoshuo)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenbaoshuo%2Foi-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenbaoshuo%2Foi-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenbaoshuo%2Foi-codes/lists"}