2021-01-04 03:40:59 +00:00
|
|
|
# OI-codes
|
2020-11-15 12:32:53 +00:00
|
|
|
|
2021-07-05 00:22:33 +00:00
|
|
|
[![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)
|
2021-08-31 04:41:10 +00:00
|
|
|
|
2020-11-15 12:32:53 +00:00
|
|
|
## 说明
|
|
|
|
|
2021-08-31 04:41:10 +00:00
|
|
|
本仓库存放与 **OI** 有关的代码。
|
2020-11-15 12:32:53 +00:00
|
|
|
|
2022-04-01 09:16:52 +00:00
|
|
|
- 部分代码的思路借鉴了题解。
|
|
|
|
- 部分题目文件夹下会有 `solution.md` 给出做题思路,也会有部分题目会在 [博客](https://oi.baoshuo.ren/) 中给出题解。
|
|
|
|
- 部分题目的 `data` 文件夹下会存放该题的部分测试数据。
|
2020-11-15 12:32:53 +00:00
|
|
|
|
2021-08-31 04:41:10 +00:00
|
|
|
做题时间请参考 `Author Date` ,或根据题目对应提交中注明的提交记录编号查找。
|
2021-07-05 00:22:33 +00:00
|
|
|
|
2021-11-19 03:44:58 +00:00
|
|
|
## 语言环境信息
|
|
|
|
|
|
|
|
本仓库中代码本地编译环境如下:
|
|
|
|
|
|
|
|
| 语言 | 编译器版本 | 编译命令 |
|
|
|
|
| -----: | ----------------------------------------------------------- | ----------------------------------------- |
|
|
|
|
| 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` |
|
|
|
|
|
2022-01-20 03:11:01 +00:00
|
|
|
运行环境如下:
|
|
|
|
|
|
|
|
| | |
|
|
|
|
| -------: | :---------------------------------------- |
|
|
|
|
| CPU | `Intel(R) Core(TM) i7-9750H @ 2.60GHz` |
|
|
|
|
| 内存 | 32GiB |
|
|
|
|
| 系统版本 | `Ubuntu 20.04.3 LTS on Windows 10 x86_64` |
|
|
|
|
| 内核版本 | `5.10.60.1-microsoft-standard-WSL2` |
|
|
|
|
|
|
|
|
代码运行时长均以此环境为准。
|
2021-11-19 03:44:58 +00:00
|
|
|
|
2022-03-23 06:58:14 +00:00
|
|
|
## 使用指南
|
|
|
|
|
2022-03-23 11:32:51 +00:00
|
|
|
![](https://user-images.githubusercontent.com/47095648/159689834-dfe67eef-b5a2-484c-98a3-745e7a6f7714.png)
|
2022-03-23 06:58:14 +00:00
|
|
|
|
|
|
|
▲ 点击「Commits」按钮可以查看历史提交记录。
|
|
|
|
|
2022-03-23 11:32:51 +00:00
|
|
|
![](https://user-images.githubusercontent.com/47095648/159689915-f4761f71-c203-4293-a23b-6ee2f77536fe.png)
|
2022-03-23 06:58:14 +00:00
|
|
|
|
|
|
|
▲ 在每个提交记录的说明中都会注明提交记录的链接/编号。
|
|
|
|
|
2022-03-23 11:32:51 +00:00
|
|
|
![](https://user-images.githubusercontent.com/47095648/159690018-3d7b94e3-4e1d-4712-b26c-8f749c3e0988.png)
|
2022-03-23 06:58:14 +00:00
|
|
|
|
2022-03-23 11:32:51 +00:00
|
|
|
![](https://user-images.githubusercontent.com/47095648/159690097-43d2b381-d8a7-4cc6-aa0a-261078285fe1.png)
|
2022-03-23 06:58:14 +00:00
|
|
|
|
|
|
|
▲ 可以在提交历史中找到每份代码的不同版本。
|
|
|
|
|
2021-07-05 00:22:33 +00:00
|
|
|
## Author
|
2021-01-04 03:40:59 +00:00
|
|
|
|
2022-01-20 03:11:01 +00:00
|
|
|
**OI-codes** © [Baoshuo](https://github.com/renbaoshuo), Released under the [GPL-3.0](./LICENSE) License.<br>
|
2021-07-05 00:22:33 +00:00
|
|
|
Authored and maintained by Baoshuo with help from [contributors](https://github.com/renbaoshuo/OI-codes/contributors).
|
2020-11-15 12:32:53 +00:00
|
|
|
|
2021-07-05 00:22:33 +00:00
|
|
|
> [Personal Website](https://baoshuo.ren) · [Blog](https://blog.baoshuo.ren) · GitHub [@renbaoshuo](https://github.com/renbaoshuo) · Twitter [@renbaoshuo](https://twitter.com/renbaoshuo)
|