Go to file
Baoshuo Ren 9e895fc8b4
P9752 [CSP-S 2023] 密码锁
https://www.luogu.com.cn/record/135102084
2023-11-14 20:21:23 +08:00
.vscode Use `-Wno-unused-result` when compile c++ src 2022-10-01 13:38:02 +08:00
AcWing 851. spfa求最短路 2022-10-28 21:33:57 +08:00
AtCoder D - Add One Edge 2023-07-08 21:58:29 +08:00
BZOJ 3237. [Ahoi2013] 连通图 2023-02-09 21:20:03 +08:00
Codeforces G - Shortest Path Queries 2023-02-05 21:54:44 +08:00
Gym D - Strange Fractions 2023-02-16 09:47:40 +08:00
HDU chore: separate definition blocks 2022-05-20 09:23:27 +08:00
Hydro Fix broken LFS files 2022-09-17 16:23:49 +08:00
LibreOJ #3994. 「CSP-S 2023」密码锁 2023-11-14 20:04:41 +08:00
Luogu P9752 [CSP-S 2023] 密码锁 2023-11-14 20:21:23 +08:00
NFLSOJ #13368. 「NOIP2022模拟赛pb」丝线 2022-11-23 21:18:12 +08:00
NowCoder A. 填数游戏 2023-10-17 22:32:38 +08:00
POJ chore: update format configs 2022-06-01 09:45:41 +08:00
S2OJ #2021. 【NOIP2003 提高组】加分二叉树 2023-03-30 17:31:25 +08:00
USACO/2021.12-Bronze USACO 2021 December Contest (Bronze) 2021-12-22 17:03:40 +08:00
USACO-Training/1.2 Your Ride Is Here 2021-12-17 21:36:04 +08:00
UniversalOJ #228. 基础数据结构练习题 2023-02-02 08:37:43 +08:00
Vijos P1001 谁拿了最多奖学金 2021-10-02 17:24:19 +08:00
XJOI chore: update format configs 2022-06-01 09:45:41 +08:00
bjtu 1996 - 铁憨憨骑士团的课后作业 2022-09-13 09:01:51 +08:00
includes feat: add ac-library 2022-07-23 22:15:20 +08:00
tk.hustoj.com 1347: Unix-head 2021-07-25 19:05:36 +08:00
utils fix: int128 ostream helper 2023-02-22 16:26:40 +08:00
ybt chore: update format configs 2022-06-01 09:45:41 +08:00
.astyle-format feat: update astyle format 2021-11-19 16:12:29 +08:00
.clang-format Update priority of headers 2022-10-16 08:04:09 +08:00
.gitattributes fix: samples 2022-08-29 09:28:17 +08:00
.gitignore fix: samples 2022-08-29 09:28:17 +08:00
.gitmodules feat: add ac-library 2022-07-23 22:15:20 +08:00
.lfsconfig Update LFS Remote URLs 2022-09-17 16:38:50 +08:00
.prettierignore feat: init go format 2022-06-08 11:09:22 +08:00
.prettierrc chore: update format configs 2022-06-01 09:45:41 +08:00
LICENSE Use GPLv3 LICENSE 2020-11-15 20:30:03 +08:00
README.md Add bjtu 2022-09-13 10:31:36 +08:00
clean.sh [Upd] clean temp code files 2021-07-24 15:54:06 +08:00

README.md

OI Codes

Author Stars GPL-3.0 License

本仓库的主仓库位于 GitSB 上,并在 GitHubGitLabGitMac 上设立了镜像。

说明

本仓库存放与 OI 有关的代码。

  • 部分代码的思路借鉴了题解。
  • 部分题目文件夹下会有 solution.md 给出做题思路,也会有部分题目会在 博客 中给出题解。
  • 部分题目的 samplesdata 文件夹下会存放该题的部分大样例以及测试数据,该部分内容使用 Git LFS 存储,请参阅下方的「测试数据」一节。

做题时间请参考 Author Date ,或根据题目对应提交中注明的提交记录编号查找。

仓库使用指南

▲ 点击「Commits」按钮可以查看历史提交记录。

▲ 在每个提交记录的说明中都会注明提交记录的链接/编号。

▲ 可以在提交历史中找到每份代码的不同版本。

测试数据

本仓库使用了 Git LFS 来存储题目的测试数据。

▲ 在 GitSB 上可以使用「Download this directory」选项下载某道题的所有测试数据。

▲ 在 GitMac 上可以直接预览存储在 LFS 中的文件内容。


在克隆仓库前请先安装 Git LFS并使用如下命令以获得更快的克隆速度

git lfs clone https://git.sb/baoshuo/OI-codes.git

如果克隆仓库时不需要拉取测试数据,可以使用以下命令:

GIT_LFS_SKIP_SMUDGE=1 git clone https://git.sb/baoshuo/OI-codes.git

后期如果希望再次拉取测试数据,可以使用以下命令:

git lfs pull

子模块

本仓库包含了以下子模块:

在克隆仓库后需要运行以下命令检出子模块:

git submodule update --init --recursive

文件目录结构

文件夹 测评系统 账号 说明
AcWing AcWing 宝硕 部分题目为权限题,需购买对应课程。
AtCoder AtCoder baoshuo 题目为比赛题。
bjtu acm.bjtu 宝硕
BZOJ Hydro BZOJ 域DarkBZOJ - 原 BZOJ 已经停止运营。
Codeforces Codeforces baoshuo
Gym Codeforces::Gym baoshuo
HDU Hangzhou Dianzi University Online Judge renbaoshuo 需要实名认证。
LibreOJ LibreOJ baoshuo
Luogu 洛谷 宝硕
NowCoder 牛客竞赛 宝硕
POJ Peking University JudgeOnline renbaoshuo
S2OJ 石家庄二中在线评测系统 baoshuo 校内 OJ需要访问权限。存在登录墙。
tk.hustoj.com HUSTOJ TK 题库 renbaoshuo
USACO USACO -
USACO-Training USACO Training -
Vijos Vijos renbaoshuo
XJOI XJOI renbaoshuo 存在登录墙。
ybt 信息学奥赛一本通(C++ 版)在线测评系统 baoshuo

语言环境信息

本仓库中代码本地编译环境如下:

语言 编译器版本 编译命令
C gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 gcc code.c -o code -std=c11 -O2 -lm
C++ g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 g++ code.cpp -o code -std=c++14 -O2 -lm
Python Python 3.9.5 (default, May 19 2021, 11:32:47) [GCC 9.3.0] python code.py
NodeJS v14.18.1 node code.js
PHP PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS ) php code.php

运行环境如下:

CPU Intel(R) Core(TM) i7-9750H @ 2.60GHz
内存 32GiB
系统版本 Ubuntu 20.04.4 LTS on Windows 10 x86_64
内核版本 5.10.102.1-microsoft-standard-WSL2

代码运行时长均以此环境为准。

Author

OI Codes © Baoshuo, Released under the GPL-3.0 License.
Authored and maintained by Baoshuo.

Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo