0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-16 20:05:26 +00:00
Go to file
2022-06-08 11:09:22 +08:00
.vscode feat: init go format 2022-06-08 11:09:22 +08:00
AcWing 210. 异或运算 2022-06-06 21:24:54 +08:00
AtCoder chore: update format configs 2022-06-01 09:45:41 +08:00
BZOJ chore: update format configs 2022-06-01 09:45:41 +08:00
Codeforces B - Patchouli's Magical Talisman 2022-06-07 09:01:39 +08:00
Gym chore: update format configs 2022-06-01 09:45:41 +08:00
HDU chore: separate definition blocks 2022-05-20 09:23:27 +08:00
Hydro chore: update format configs 2022-06-01 09:45:41 +08:00
includes feat(includes): add testlib.h 2022-02-13 15:04:54 +08:00
LibreOJ #2953. 「NOIP2018」旅行 2022-06-07 16:34:23 +08:00
Luogu P4362 [NOI2002] 贪吃的九头龙 2022-06-08 10:49:15 +08:00
NowCoder NC232778 [模板]KMP字符串匹配 2022-01-25 11:07:17 +08:00
POJ chore: update format configs 2022-06-01 09:45:41 +08:00
S2OJ #305. 【模板】后缀排序 2022-06-05 11:42:24 +08:00
tk.hustoj.com 1347: Unix-head 2021-07-25 19:05:36 +08:00
UniversalOJ #35. 后缀排序 2022-06-06 16:47:10 +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
utils chore: rename "templates" to "utils" 2022-05-25 14:27:44 +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
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 chore: update format configs 2022-06-01 09:45:41 +08:00
.gitattributes chore: add data for AtCoder 2022-05-30 21:37:30 +08:00
.gitignore chore: rename "templates" to "utils" 2022-05-25 14:27:44 +08:00
.lfsconfig chore: add data for LibreOJ 2022-05-28 20:25:28 +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
clean.sh [Upd] clean temp code files 2021-07-24 15:54:06 +08:00
LICENSE Use GPLv3 LICENSE 2020-11-15 20:30:03 +08:00
README.md chore: add logo of onlinejudges 2022-05-29 13:26:32 +08:00

OI Codes

Author Stars GPL-3.0 License

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

说明

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

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

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

仓库使用指南

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

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

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

关于 Git LFS

本仓库使用了 Git LFS 来存储题目的测试数据。在克隆仓库前请先安装 Git LFS并使用如下命令以获得更快的克隆速度

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

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

git clone https://git.sb/baoshuo/OI-codes.git --skip-smudge

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

git lfs pull

文件目录结构

文件夹 测评系统 账号 说明
AcWing AcWing 宝硕 部分题目为权限题,需购买对应课程。
AtCoder AtCoder baoshuo 题目为比赛题。
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