diff --git a/.gitattributes b/.gitattributes
index 494bd80a..607cda74 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,5 +1,4 @@
###
- # @Github: https://github.com/Certseeds/CS203_DSAA_template
# @Author: nanoseeds
# @Date: 2020-07-15 23:48:29
# @LastEditors: nanoseeds
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a8db5091..d97369a4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -78,7 +78,7 @@ jobs:
# This workflow contains a single job called "build"
build:
name: publish release
- if: github.repository == 'Certseeds/CS203_DSAA_template'
+ if: github.repository == 'Certseeds/algorithm-template'
needs: test
# The type of runner that the job will run on
runs-on: ubuntu-22.04
@@ -128,7 +128,7 @@ jobs:
- name: zip the packet
working-directory: ./../
run: |
- zip -r script_no_need.zip ./CS203_DSAA_template -x "*/.git/*"
+ zip -r script_no_need.zip ./algorithm-template -x "*/.git/*"
tree
- name: release
@@ -144,7 +144,7 @@ jobs:
release-branch:
name: publish release-branch
- if: github.repository == 'Certseeds/CS203_DSAA_template'
+ if: github.repository == 'Certseeds/algorithm-template'
needs: [ test, build ]
# The type of runner that the job will run on
runs-on: ubuntu-22.04
diff --git a/.gitignore b/.gitignore
index 587dd590..56170a86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
###
-## @Github: https://github.com/Certseeds/CS203_DSAA_template
## @Author: nanoseeds
## @Date: 2020-07-15 23:48:29
## @LastEditors: nanoseeds
@@ -338,3 +337,7 @@ fabric.properties
*.o
*.so
*.exe
+
+##
+
+*.old
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d41a2a7..334ddb53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,9 +4,9 @@ set(PROJECT_VERSION_MAJOR 0)
set(PROJECT_VERSION_MINOR 11)
set(PROJECT_VERSION_PATCH 1) # delete endsWith strs when master merge dev
-project(CS203_DSAA_template
+project(algorithm_template
DESCRIPTION "Template for Algorithm Based on C++11 and Modern CMake"
- HOMEPAGE_URL "https://github.com/Certseeds/CS203_DSAA_template"
+ HOMEPAGE_URL "https://github.com/Certseeds/algorithm-template"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
diff --git a/README.md b/README.md
index a789b3ca..3358d648 100644
--- a/README.md
+++ b/README.md
@@ -19,14 +19,14 @@
An awesome Algorithm Template for IO-Driven Single-File Problem(like Online-Judge Problem) !
分布式1 去中心化2 的IO驱动型单文件问题4解题模板
- Explore the docs »
+ Explore the docs »
- View Demo
+ View Demo
·
- Report Bug
+ Report Bug
·
- Request Feature
+ Request Feature
@@ -76,9 +76,9 @@ OJ系统存在着一些特殊要求-因此考虑到下面的因素, 设计了一
2. 使用绿色按钮[Use This Template][Use_This_Template], 生成仓库, clone下来使用(推荐)
3. fork repo, clone下来使用(不推荐, fork的仓库只有合入主仓库才被github计入提交图)
-[download_zip]: https://github.com/Certseeds/CS203_DSAA_template/releases/latest/download/script_no_need.zip
-[download_zip_refs]: https://github.com/Certseeds/CS203_DSAA_template/archive/refs/heads/release.zip
-[Use_This_Template]: https://github.com/Certseeds/CS203_DSAA_template/generate
+[download_zip]: https://github.com/Certseeds/algorithm-template/releases/latest/download/script_no_need.zip
+[download_zip_refs]: https://github.com/Certseeds/algorithm-template/archive/refs/heads/release.zip
+[Use_This_Template]: https://github.com/Certseeds/algorithm-template/generate
### Prerequisites
@@ -109,7 +109,7 @@ ccache --version
``` bash
# 在use this template之后
-git clone https://github.com/${YOUE_GITHUB_USER_NAME}/CS203_DSAA_template.git
+git clone https://github.com/${YOUE_GITHUB_USER_NAME}/algorithm-template.git
```
+ 使用CLion打开仓库
@@ -154,7 +154,7 @@ git clone https://github.com/${YOUE_GITHUB_USER_NAME}/CS203_DSAA_template.git
+ 在本repo, 使用`Catch2`测试框架.
+ 比如, 我们有四组数据, 第一组, 第二组测试边界值, 第三组使用随机数测试对偶性与正确性, 第四组测试几个手动的随机值.
+ 参见[test_for_lab00_A](./lab_00/lab_00_A/lab_00_A_test.cpp).
-+ 这样一来, 我们只需要每次修改完主文件之后, run `CS203_DSAA_template_test`, 对其进行调用, 就能验证其在所有的测试用例上的正确性.
++ 这样一来, 我们只需要每次修改完主文件之后, run `algorithm-template_test`, 对其进行调用, 就能验证其在所有的测试用例上的正确性.
### 多个输出值的检查:`Catch::Matchers`
@@ -196,7 +196,7 @@ PS: 此处注意, 引用文件的相对路径, 不是直接的`test/lab_00/lab_0
而是编译出的文件相对于测试数据的相对路径.
-在样例中, 编译出的文件在`CS203_DSAA_template/cmake-build-debug`下, 所以需要加`./../`
+在样例中, 编译出的文件在`algorithm-template/cmake-build-debug`下, 所以需要加`./../`
### 输入输出重定向-Stage 2: 从文件中读取输入, 将输出定向到文件中
@@ -357,7 +357,7 @@ some code is based on this license
讨论内容相关的,请到 [Discussion][discussion_LINK]
-Project Link: [https://github.com/Certseeds/CS203_DSAA_template][Project_LINK]
+Project Link: [https://github.com/Certseeds/algorithm-template][Project_LINK]
(back to top)
@@ -380,27 +380,27 @@ Use this space to list resources you find helpful and would like to give credit
(back to top)
[Best-Readme-Template]: https://github.com/othneildrew/Best-README-Template
-[Project_LINK]: https://github.com/Certseeds/CS203_DSAA_template
-[issue_LINK]: https://github.com/Certseeds/CS203_DSAA_template/issues
-[pr_LINK]: https://github.com/Certseeds/CS203_DSAA_template/pulls
-[discussion_LINK]: https://github.com/Certseeds/CS203_DSAA_template/discussions
+[Project_LINK]: https://github.com/Certseeds/algorithm-template
+[issue_LINK]: https://github.com/Certseeds/algorithm-template/issues
+[pr_LINK]: https://github.com/Certseeds/algorithm-template/pulls
+[discussion_LINK]: https://github.com/Certseeds/algorithm-template/discussions
[catch2_image]: https://raw.githubusercontent.com/catchorg/Catch2/v2.x/artwork/catch2-logo-small.png
[AGPL-shield]: https://img.shields.io/badge/License-AGPL-orange?style=for-the-badge
[AGPL_Link]: http://opensource.org/licenses/AGPL
[cc_by_nc_sa_4_0_shield]: https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-orange?style=for-the-badge
[cc_by_nc_sa_4_0]: https://creativecommons.org/licenses/by-nc-sa/4.0/
[cc_by_nc_sa_4_0_image]: https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png
-[contributors-shield]: https://img.shields.io/github/contributors/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[contributors-url]: https://github.com/Certseeds/CS203_DSAA_template/graphs/contributors
-[forks-shield]: https://img.shields.io/github/forks/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[forks-url]: https://github.com/Certseeds/CS203_DSAA_template/network/members
-[stars-shield]: https://img.shields.io/github/stars/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[stars-url]: https://github.com/Certseeds/CS203_DSAA_template/stargazers
-[issues-shield]: https://img.shields.io/github/issues/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[issues-url]: https://github.com/Certseeds/CS203_DSAA_template/issues
-[license-shield]: https://img.shields.io/github/license/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[license-url]: https://github.com/Certseeds/CS203_DSAA_template/blob/master/LICENSE.md
-[release-shield]: https://img.shields.io/github/release/Certseeds/CS203_DSAA_template.svg?style=for-the-badge
-[release-url]: https://github.com/Certseeds/CS203_DSAA_template/releases
+[contributors-shield]: https://img.shields.io/github/contributors/Certseeds/algorithm-template.svg?style=for-the-badge
+[contributors-url]: https://github.com/Certseeds/algorithm-template/graphs/contributors
+[forks-shield]: https://img.shields.io/github/forks/Certseeds/algorithm-template.svg?style=for-the-badge
+[forks-url]: https://github.com/Certseeds/algorithm-template/network/members
+[stars-shield]: https://img.shields.io/github/stars/Certseeds/algorithm-template.svg?style=for-the-badge
+[stars-url]: https://github.com/Certseeds/algorithm-template/stargazers
+[issues-shield]: https://img.shields.io/github/issues/Certseeds/algorithm-template.svg?style=for-the-badge
+[issues-url]: https://github.com/Certseeds/algorithm-template/issues
+[license-shield]: https://img.shields.io/github/license/Certseeds/algorithm-template.svg?style=for-the-badge
+[license-url]: https://github.com/Certseeds/algorithm-template/blob/master/LICENSE.md
+[release-shield]: https://img.shields.io/github/release/Certseeds/algorithm-template.svg?style=for-the-badge
+[release-url]: https://github.com/Certseeds/algorithm-template/releases
[GitHub-Whexy]: https://github.com/whexy
[Two-Night-Online-Judge]: https://www.whexy.com/posts/wannaAC
diff --git a/algorithm/2020S/20200415/20200415.cpp b/algorithm/2020S/20200415/20200415.cpp
index a98077e5..9fcd29c1 100644
--- a/algorithm/2020S/20200415/20200415.cpp
+++ b/algorithm/2020S/20200415/20200415.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
diff --git a/algorithm/2020S/20200426/20200426_1st.cpp b/algorithm/2020S/20200426/20200426_1st.cpp
index 60158b31..ff10e495 100644
--- a/algorithm/2020S/20200426/20200426_1st.cpp
+++ b/algorithm/2020S/20200426/20200426_1st.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
diff --git a/algorithm/2020S/20200426/20200426_3rd.cpp b/algorithm/2020S/20200426/20200426_3rd.cpp
index 6b2f575e..c99847a3 100644
--- a/algorithm/2020S/20200426/20200426_3rd.cpp
+++ b/algorithm/2020S/20200426/20200426_3rd.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
diff --git a/algorithm/2020S/20200426/20200426_4th.cpp b/algorithm/2020S/20200426/20200426_4th.cpp
index 00462e24..54197922 100644
--- a/algorithm/2020S/20200426/20200426_4th.cpp
+++ b/algorithm/2020S/20200426/20200426_4th.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
diff --git a/algorithm/2020S/20200426/20200426_5th.cpp b/algorithm/2020S/20200426/20200426_5th.cpp
index 2154ad9c..d1b3b468 100644
--- a/algorithm/2020S/20200426/20200426_5th.cpp
+++ b/algorithm/2020S/20200426/20200426_5th.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
diff --git a/algorithm/2020S/20200511/20200511_4th.cpp b/algorithm/2020S/20200511/20200511_4th.cpp
index 0245abb4..8643017b 100644
--- a/algorithm/2020S/20200511/20200511_4th.cpp
+++ b/algorithm/2020S/20200511/20200511_4th.cpp
@@ -1,14 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace fourth_20200511{
#endif
@@ -68,6 +66,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200511/20200511_4th_test.cpp b/algorithm/2020S/20200511/20200511_4th_test.cpp
index 6a6dfb8d..99ad6bb7 100644
--- a/algorithm/2020S/20200511/20200511_4th_test.cpp
+++ b/algorithm/2020S/20200511/20200511_4th_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case with sequence", "[test 4th_20200511 1]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2020S/20200511/20200511_fst.cpp b/algorithm/2020S/20200511/20200511_fst.cpp
index 28dedfb3..74165798 100644
--- a/algorithm/2020S/20200511/20200511_fst.cpp
+++ b/algorithm/2020S/20200511/20200511_fst.cpp
@@ -1,14 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace fst_20200511{
#endif
@@ -71,6 +69,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200511/20200511_fst_test.cpp b/algorithm/2020S/20200511/20200511_fst_test.cpp
index 5ab917bf..aeaa9b58 100644
--- a/algorithm/2020S/20200511/20200511_fst_test.cpp
+++ b/algorithm/2020S/20200511/20200511_fst_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case with sequence", "[test 02 A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2020S/20200511/20200511_snd.cpp b/algorithm/2020S/20200511/20200511_snd.cpp
index fc2da509..59b1a5ae 100644
--- a/algorithm/2020S/20200511/20200511_snd.cpp
+++ b/algorithm/2020S/20200511/20200511_snd.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
@@ -9,7 +7,7 @@
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace snd_20200511 {
#endif
@@ -75,6 +73,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200511/20200511_snd_test.cpp b/algorithm/2020S/20200511/20200511_snd_test.cpp
index 7d5ac17c..20e4fc01 100644
--- a/algorithm/2020S/20200511/20200511_snd_test.cpp
+++ b/algorithm/2020S/20200511/20200511_snd_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case with sequence", "[test snd_20200511 1]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2020S/20200511/20200511_trd.cpp b/algorithm/2020S/20200511/20200511_trd.cpp
index 7f113e04..c6566854 100644
--- a/algorithm/2020S/20200511/20200511_trd.cpp
+++ b/algorithm/2020S/20200511/20200511_trd.cpp
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace trd_20200511{
#endif
@@ -44,6 +42,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200511/20200511_trd_test.cpp b/algorithm/2020S/20200511/20200511_trd_test.cpp
index d928c8aa..5a3c6090 100644
--- a/algorithm/2020S/20200511/20200511_trd_test.cpp
+++ b/algorithm/2020S/20200511/20200511_trd_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case with sequence", "[test trd_20200511 1]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2020S/20200511/CMakeLists.txt b/algorithm/2020S/20200511/CMakeLists.txt
index fbd7160a..b728bb04 100644
--- a/algorithm/2020S/20200511/CMakeLists.txt
+++ b/algorithm/2020S/20200511/CMakeLists.txt
@@ -11,8 +11,8 @@ foreach (elementName IN LISTS dependencies)
add_executable(${PROJECT_NAME}_${elementName} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_${elementName}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}_test.cpp)
- target_compile_definitions(${PROJECT_NAME}_${elementName}_test PRIVATE CS203_DSAA_TEST_MACRO)
- target_link_libraries(${PROJECT_NAME}_${elementName}_test PRIVATE CS203_DSAA_template_INCLUDE)
+ target_compile_definitions(${PROJECT_NAME}_${elementName}_test PRIVATE ALGORITHM_TEST_MACRO)
+ target_link_libraries(${PROJECT_NAME}_${elementName}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}.cpp")
add_test(${PROJECT_NAME}_${elementName}_CTEST ${PROJECT_NAME}_${elementName}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2020S/20200610/20200610_fst.cpp b/algorithm/2020S/20200610/20200610_fst.cpp
index 0cefdf86..4d447c08 100644
--- a/algorithm/2020S/20200610/20200610_fst.cpp
+++ b/algorithm/2020S/20200610/20200610_fst.cpp
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
@@ -9,7 +7,7 @@
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace fst_20200610 {
#endif
@@ -107,6 +105,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200610/20200610_snd.cpp b/algorithm/2020S/20200610/20200610_snd.cpp
index 8cbb9c08..f7a5557d 100644
--- a/algorithm/2020S/20200610/20200610_snd.cpp
+++ b/algorithm/2020S/20200610/20200610_snd.cpp
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace snd_20200610 {
#endif
@@ -58,6 +56,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2020S/20200610/20200610_trd.cpp b/algorithm/2020S/20200610/20200610_trd.cpp
index 589309cf..f4438ff6 100644
--- a/algorithm/2020S/20200610/20200610_trd.cpp
+++ b/algorithm/2020S/20200610/20200610_trd.cpp
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/* CS203_DSAA_template
- Copyright (C) 2020-2023 nanoseeds
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace trd_20200610 {
#endif
@@ -45,6 +43,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_A/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_A/CMakeLists.txt
index 41fc7dbf..354751e1 100644
--- a/algorithm/2021F/lab_02/lab_02_A/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_A/lab_02_A.cpp b/algorithm/2021F/lab_02/lab_02_A/lab_02_A.cpp
index 5c557c38..ec9440ec 100644
--- a/algorithm/2021F/lab_02/lab_02_A/lab_02_A.cpp
+++ b/algorithm/2021F/lab_02/lab_02_A/lab_02_A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag Done
#include
@@ -15,7 +10,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_A{
#endif
@@ -103,6 +98,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_A/lab_02_A_test.cpp b/algorithm/2021F/lab_02/lab_02_A/lab_02_A_test.cpp
index a12b1add..d64aaa4d 100644
--- a/algorithm/2021F/lab_02/lab_02_A/lab_02_A_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_A/lab_02_A_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case with sequence", "[test 02 A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_02/lab_02_B/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_B/CMakeLists.txt
index 571102e9..c490830a 100644
--- a/algorithm/2021F/lab_02/lab_02_B/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_B/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_B/lab_02_B.cpp b/algorithm/2021F/lab_02/lab_02_B/lab_02_B.cpp
index 84ee2d24..d60e11b8 100644
--- a/algorithm/2021F/lab_02/lab_02_B/lab_02_B.cpp
+++ b/algorithm/2021F/lab_02/lab_02_B/lab_02_B.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag Done
#include
@@ -13,7 +8,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_B{
#endif
@@ -76,6 +71,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_B/lab_02_B_test.cpp b/algorithm/2021F/lab_02/lab_02_B/lab_02_B_test.cpp
index 49570217..3ec7c3b6 100644
--- a/algorithm/2021F/lab_02/lab_02_B/lab_02_B_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_B/lab_02_B_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -47,4 +42,4 @@ TEST_CASE("test case with sequence", "[test 02 B]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_02/lab_02_C/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_C/CMakeLists.txt
index 8809d6b1..5de3f24f 100644
--- a/algorithm/2021F/lab_02/lab_02_C/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_C/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_C/lab_02_C.cpp b/algorithm/2021F/lab_02/lab_02_C/lab_02_C.cpp
index 535089bc..65556b25 100644
--- a/algorithm/2021F/lab_02/lab_02_C/lab_02_C.cpp
+++ b/algorithm/2021F/lab_02/lab_02_C/lab_02_C.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag Done
#include
#include
@@ -16,7 +11,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_C{
#endif
@@ -111,6 +106,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_C/lab_02_C_test.cpp b/algorithm/2021F/lab_02/lab_02_C/lab_02_C_test.cpp
index eb220799..3d910870 100644
--- a/algorithm/2021F/lab_02/lab_02_C/lab_02_C_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_C/lab_02_C_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -60,4 +55,4 @@ TEST_CASE("test case with sequence", "[test 02 C][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_02/lab_02_D/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_D/CMakeLists.txt
index ffff7238..dce330ce 100644
--- a/algorithm/2021F/lab_02/lab_02_D/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_D/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_D/lab_02_D.cpp b/algorithm/2021F/lab_02/lab_02_D/lab_02_D.cpp
index 8280f753..d7844610 100644
--- a/algorithm/2021F/lab_02/lab_02_D/lab_02_D.cpp
+++ b/algorithm/2021F/lab_02/lab_02_D/lab_02_D.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag Done
#include
@@ -14,7 +9,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_D{
#endif
// 10^9 * 2 < 2^31 -1
@@ -120,6 +115,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_D/lab_02_D_test.cpp b/algorithm/2021F/lab_02/lab_02_D/lab_02_D_test.cpp
index f3d10ae7..100e7d23 100644
--- a/algorithm/2021F/lab_02/lab_02_D/lab_02_D_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_D/lab_02_D_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -66,4 +61,4 @@ TEST_CASE("test case with sequence", "[.][test 02 D]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_02/lab_02_E/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_E/CMakeLists.txt
index 7e7867bb..c43d3c98 100644
--- a/algorithm/2021F/lab_02/lab_02_E/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_E/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_E/lab_02_E.cpp b/algorithm/2021F/lab_02/lab_02_E/lab_02_E.cpp
index eb6d3712..a1939137 100644
--- a/algorithm/2021F/lab_02/lab_02_E/lab_02_E.cpp
+++ b/algorithm/2021F/lab_02/lab_02_E/lab_02_E.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag TODO
#include
#include
@@ -21,7 +16,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_E{
#endif
@@ -103,6 +98,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_E/lab_02_E_test.cpp b/algorithm/2021F/lab_02/lab_02_E/lab_02_E_test.cpp
index 140ff59e..0c9ba9af 100644
--- a/algorithm/2021F/lab_02/lab_02_E/lab_02_E_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_E/lab_02_E_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -60,4 +55,4 @@ TEST_CASE("test case with sequence", "[test 02 E]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_02/lab_02_F/CMakeLists.txt b/algorithm/2021F/lab_02/lab_02_F/CMakeLists.txt
index b6564222..7bd14a82 100644
--- a/algorithm/2021F/lab_02/lab_02_F/CMakeLists.txt
+++ b/algorithm/2021F/lab_02/lab_02_F/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_02/lab_02_F/lab_02_F.cpp b/algorithm/2021F/lab_02/lab_02_F/lab_02_F.cpp
index a99329a8..b0505237 100644
--- a/algorithm/2021F/lab_02/lab_02_F/lab_02_F.cpp
+++ b/algorithm/2021F/lab_02/lab_02_F/lab_02_F.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag TODO
#include
#include
@@ -21,7 +16,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_02_F{
#endif
@@ -87,6 +82,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_02/lab_02_F/lab_02_F_test.cpp b/algorithm/2021F/lab_02/lab_02_F/lab_02_F_test.cpp
index 7c3cba06..efde1036 100644
--- a/algorithm/2021F/lab_02/lab_02_F/lab_02_F_test.cpp
+++ b/algorithm/2021F/lab_02/lab_02_F/lab_02_F_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -63,4 +58,4 @@ TEST_CASE("test case with sequence", "[test 02 F][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_A/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_A/CMakeLists.txt
index 41fc7dbf..354751e1 100644
--- a/algorithm/2021F/lab_03/lab_03_A/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_A/lab_03_A.cpp b/algorithm/2021F/lab_03/lab_03_A/lab_03_A.cpp
index 5004c29a..7e584667 100644
--- a/algorithm/2021F/lab_03/lab_03_A/lab_03_A.cpp
+++ b/algorithm/2021F/lab_03/lab_03_A/lab_03_A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* 在____内, 如果数组C中,有 i,j ∈N+, i < j, C[i]>C[j], 则 (C[i],C[j])为一个逆序对
@@ -31,7 +26,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_A{
#endif
@@ -152,6 +147,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_A/lab_03_A_test.cpp b/algorithm/2021F/lab_03/lab_03_A/lab_03_A_test.cpp
index 94542171..dab569ba 100644
--- a/algorithm/2021F/lab_03/lab_03_A/lab_03_A_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_A/lab_03_A_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag 归并排序
//@Tag Merge Sort
//@Tag 逆序对
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -56,4 +51,4 @@ TEST_CASE("test case with sequence", "[test 03 A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_B/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_B/CMakeLists.txt
index 571102e9..c490830a 100644
--- a/algorithm/2021F/lab_03/lab_03_B/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_B/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_B/lab_03_B.cpp b/algorithm/2021F/lab_03/lab_03_B/lab_03_B.cpp
index 0ebbbb26..a0cd5b2d 100644
--- a/algorithm/2021F/lab_03/lab_03_B/lab_03_B.cpp
+++ b/algorithm/2021F/lab_03/lab_03_B/lab_03_B.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* 数组α具有ν个元素,请输出数组a `中位数的double形式`
@@ -32,7 +27,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_B{
#endif
@@ -136,6 +131,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_B/lab_03_B_test.cpp b/algorithm/2021F/lab_03/lab_03_B/lab_03_B_test.cpp
index 727245ad..7fa0a73f 100644
--- a/algorithm/2021F/lab_03/lab_03_B/lab_03_B_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_B/lab_03_B_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence", "[test 03 B]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_C/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_C/CMakeLists.txt
index 8809d6b1..5de3f24f 100644
--- a/algorithm/2021F/lab_03/lab_03_C/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_C/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_C/lab_03_C.cpp b/algorithm/2021F/lab_03/lab_03_C/lab_03_C.cpp
index 04f2b4b1..fd6f742b 100644
--- a/algorithm/2021F/lab_03/lab_03_C/lab_03_C.cpp
+++ b/algorithm/2021F/lab_03/lab_03_C/lab_03_C.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 输入为一个无序序列, 请分别插入排序和选择排序,并比较哪一个更好
@@ -41,7 +36,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_C{
#endif
// TODO
@@ -183,6 +178,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_C/lab_03_C_test.cpp b/algorithm/2021F/lab_03/lab_03_C/lab_03_C_test.cpp
index 8157bae2..0771abb8 100644
--- a/algorithm/2021F/lab_03/lab_03_C/lab_03_C_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_C/lab_03_C_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -53,4 +48,4 @@ TEST_CASE("test case with sequence", "[test 03 C]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_D/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_D/CMakeLists.txt
index ffff7238..dce330ce 100644
--- a/algorithm/2021F/lab_03/lab_03_D/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_D/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_D/lab_03_D.cpp b/algorithm/2021F/lab_03/lab_03_D/lab_03_D.cpp
index c1f1c689..9c634dc8 100644
--- a/algorithm/2021F/lab_03/lab_03_D/lab_03_D.cpp
+++ b/algorithm/2021F/lab_03/lab_03_D/lab_03_D.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -20,7 +15,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_D{
#endif
@@ -86,6 +81,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_D/lab_03_D_test.cpp b/algorithm/2021F/lab_03/lab_03_D/lab_03_D_test.cpp
index d1627888..b1f14950 100644
--- a/algorithm/2021F/lab_03/lab_03_D/lab_03_D_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_D/lab_03_D_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -64,4 +59,4 @@ TEST_CASE("test case with sequence", "[test 03 D][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_E/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_E/CMakeLists.txt
index 7e7867bb..c43d3c98 100644
--- a/algorithm/2021F/lab_03/lab_03_E/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_E/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_E/lab_03_E.cpp b/algorithm/2021F/lab_03/lab_03_E/lab_03_E.cpp
index e4e29156..75c4a0a6 100644
--- a/algorithm/2021F/lab_03/lab_03_E/lab_03_E.cpp
+++ b/algorithm/2021F/lab_03/lab_03_E/lab_03_E.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -20,7 +15,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_E{
#endif
@@ -86,6 +81,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_E/lab_03_E_test.cpp b/algorithm/2021F/lab_03/lab_03_E/lab_03_E_test.cpp
index 23c647b1..2ed5a30f 100644
--- a/algorithm/2021F/lab_03/lab_03_E/lab_03_E_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_E/lab_03_E_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -64,4 +59,4 @@ TEST_CASE("test case with sequence", "[test 03 E][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_03/lab_03_F/CMakeLists.txt b/algorithm/2021F/lab_03/lab_03_F/CMakeLists.txt
index b6564222..7bd14a82 100644
--- a/algorithm/2021F/lab_03/lab_03_F/CMakeLists.txt
+++ b/algorithm/2021F/lab_03/lab_03_F/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_03/lab_03_F/lab_03_F.cpp b/algorithm/2021F/lab_03/lab_03_F/lab_03_F.cpp
index abf6c9cc..cba4a8b2 100644
--- a/algorithm/2021F/lab_03/lab_03_F/lab_03_F.cpp
+++ b/algorithm/2021F/lab_03/lab_03_F/lab_03_F.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -20,7 +15,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_03_F{
#endif
@@ -86,6 +81,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_03/lab_03_F/lab_03_F_test.cpp b/algorithm/2021F/lab_03/lab_03_F/lab_03_F_test.cpp
index d8c77e27..eed57d8f 100644
--- a/algorithm/2021F/lab_03/lab_03_F/lab_03_F_test.cpp
+++ b/algorithm/2021F/lab_03/lab_03_F/lab_03_F_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -64,4 +59,4 @@ TEST_CASE("test case with sequence", "[test 03 F][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_04/lab_04_2A/CMakeLists.txt b/algorithm/2021F/lab_04/lab_04_2A/CMakeLists.txt
index 9f7dbcfb..a78119fe 100644
--- a/algorithm/2021F/lab_04/lab_04_2A/CMakeLists.txt
+++ b/algorithm/2021F/lab_04/lab_04_2A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A.cpp b/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A.cpp
index 4a0ff17d..b4409daf 100644
--- a/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A.cpp
+++ b/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 给出两个各有ν(希腊字母Nu),μ(希腊字母Mu)长的多项式Ν(大写希腊字母Nu),Μ(大写希腊字母Mu),请计算两者之和
@@ -20,7 +15,7 @@ Copyright (C) 2020-2023 nanoseeds
* */
// DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -34,7 +29,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_04_2A{
#endif
@@ -112,6 +107,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A_test.cpp b/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A_test.cpp
index 7ba777a0..70c6c80c 100644
--- a/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A_test.cpp
+++ b/algorithm/2021F/lab_04/lab_04_2A/lab_04_2A_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,5 +47,5 @@ TEST_CASE("test case with sequence [test 04_2A]", "[test 04_2A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_04/lab_04_A/CMakeLists.txt b/algorithm/2021F/lab_04/lab_04_A/CMakeLists.txt
index 41fc7dbf..354751e1 100644
--- a/algorithm/2021F/lab_04/lab_04_A/CMakeLists.txt
+++ b/algorithm/2021F/lab_04/lab_04_A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_04/lab_04_A/lab_04_A.cpp b/algorithm/2021F/lab_04/lab_04_A/lab_04_A.cpp
index a9caabae..1202c376 100644
--- a/algorithm/2021F/lab_04/lab_04_A/lab_04_A.cpp
+++ b/algorithm/2021F/lab_04/lab_04_A/lab_04_A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 给出两个各有ν(希腊字母Nu),μ(希腊字母Mu)长的多项式Ν(大写希腊字母Nu),Μ(大写希腊字母Mu),请计算两者之和
@@ -19,7 +14,7 @@ Copyright (C) 2020-2023 nanoseeds
* 之后分行输出 ${系数},${指数}
* */
// DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -30,7 +25,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_04_A{
#endif
@@ -96,6 +91,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_04/lab_04_A/lab_04_A_test.cpp b/algorithm/2021F/lab_04/lab_04_A/lab_04_A_test.cpp
index 206561d1..ff0ed881 100644
--- a/algorithm/2021F/lab_04/lab_04_A/lab_04_A_test.cpp
+++ b/algorithm/2021F/lab_04/lab_04_A/lab_04_A_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 04_A]", "[test 04_A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_04/lab_04_B/CMakeLists.txt b/algorithm/2021F/lab_04/lab_04_B/CMakeLists.txt
index 571102e9..c490830a 100644
--- a/algorithm/2021F/lab_04/lab_04_B/CMakeLists.txt
+++ b/algorithm/2021F/lab_04/lab_04_B/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_04/lab_04_B/lab_04_B.cpp b/algorithm/2021F/lab_04/lab_04_B/lab_04_B.cpp
index 1a3853a9..0b02f524 100644
--- a/algorithm/2021F/lab_04/lab_04_B/lab_04_B.cpp
+++ b/algorithm/2021F/lab_04/lab_04_B/lab_04_B.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 甲 个学生排成一排
@@ -36,7 +31,7 @@ please find the going-out order of student.
//@Tag Done
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
#include
@@ -55,7 +50,7 @@ struct ListNode {
explicit ListNode(int32_t x) : ListNode(x, nullptr) {}
};
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
#include
#include
@@ -63,7 +58,7 @@ struct ListNode {
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_04_B{
#endif
@@ -148,6 +143,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_04/lab_04_B/lab_04_B_test.cpp b/algorithm/2021F/lab_04/lab_04_B/lab_04_B_test.cpp
index 339ad2d6..05e1b242 100644
--- a/algorithm/2021F/lab_04/lab_04_B/lab_04_B_test.cpp
+++ b/algorithm/2021F/lab_04/lab_04_B/lab_04_B_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 04_B]", "[test 04_B]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_04/lab_04_C/CMakeLists.txt b/algorithm/2021F/lab_04/lab_04_C/CMakeLists.txt
index 8809d6b1..5de3f24f 100644
--- a/algorithm/2021F/lab_04/lab_04_C/CMakeLists.txt
+++ b/algorithm/2021F/lab_04/lab_04_C/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_04/lab_04_C/lab_04_C.cpp b/algorithm/2021F/lab_04/lab_04_C/lab_04_C.cpp
index fd6cb353..bfecda43 100644
--- a/algorithm/2021F/lab_04/lab_04_C/lab_04_C.cpp
+++ b/algorithm/2021F/lab_04/lab_04_C/lab_04_C.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 假设有一些自行车链条的链粒,每一个链粒都有一个权重
@@ -42,7 +37,7 @@ Copyright (C) 2020-2023 nanoseeds
* 输出`3 5`
* */
//@Tag DONE
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
#include
@@ -65,7 +60,7 @@ struct ListNode {
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC target("mmx")
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
#include
#include
@@ -74,7 +69,7 @@ struct ListNode {
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_04_C{
#endif
@@ -192,6 +187,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_04/lab_04_C/lab_04_C_test.cpp b/algorithm/2021F/lab_04/lab_04_C/lab_04_C_test.cpp
index d8b62ad5..e41a9f71 100644
--- a/algorithm/2021F/lab_04/lab_04_C/lab_04_C_test.cpp
+++ b/algorithm/2021F/lab_04/lab_04_C/lab_04_C_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 04_C]", "[test 04_C]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_04/lab_04_D/CMakeLists.txt b/algorithm/2021F/lab_04/lab_04_D/CMakeLists.txt
index ffff7238..dce330ce 100644
--- a/algorithm/2021F/lab_04/lab_04_D/CMakeLists.txt
+++ b/algorithm/2021F/lab_04/lab_04_D/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_04/lab_04_D/lab_04_D.cpp b/algorithm/2021F/lab_04/lab_04_D/lab_04_D.cpp
index 66b47481..14d51018 100644
--- a/algorithm/2021F/lab_04/lab_04_D/lab_04_D.cpp
+++ b/algorithm/2021F/lab_04/lab_04_D/lab_04_D.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*@题目描述
* 给一个序列 α, 一共有ν(希腊字母Nu)个元素,其中的第ι(希腊字幕iota)个元素为$α_ι$
@@ -40,7 +35,7 @@ Copyright (C) 2020-2023 nanoseeds
* PS: 据说跳表也可以,没尝试故不分析
* */
//@Tag DONE
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
#else
@@ -51,7 +46,7 @@ Copyright (C) 2020-2023 nanoseeds
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC target("sse,sse2,mmx")
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
#include
#include
@@ -60,7 +55,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_04_D{
#endif
using std::cin;
@@ -357,6 +352,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_04/lab_04_D/lab_04_D_test.cpp b/algorithm/2021F/lab_04/lab_04_D/lab_04_D_test.cpp
index dece7f72..5416b01c 100644
--- a/algorithm/2021F/lab_04/lab_04_D/lab_04_D_test.cpp
+++ b/algorithm/2021F/lab_04/lab_04_D/lab_04_D_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 04_D]", "[test 04_D]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_05/lab_05_A/CMakeLists.txt b/algorithm/2021F/lab_05/lab_05_A/CMakeLists.txt
index 41fc7dbf..354751e1 100644
--- a/algorithm/2021F/lab_05/lab_05_A/CMakeLists.txt
+++ b/algorithm/2021F/lab_05/lab_05_A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_05/lab_05_A/lab_05_A.cpp b/algorithm/2021F/lab_05/lab_05_A/lab_05_A.cpp
index ae501d09..a8b73128 100644
--- a/algorithm/2021F/lab_05/lab_05_A/lab_05_A.cpp
+++ b/algorithm/2021F/lab_05/lab_05_A/lab_05_A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* 惧亡者排成一个队列,每个惧亡者都有一个生体转化偏好
@@ -42,7 +37,7 @@ Copyright (C) 2020-2023 nanoseeds
* */
//@Tag DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -56,7 +51,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_05_A{
#endif
@@ -152,6 +147,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_05/lab_05_A/lab_05_A_test.cpp b/algorithm/2021F/lab_05/lab_05_A/lab_05_A_test.cpp
index 77b75919..82fff60a 100644
--- a/algorithm/2021F/lab_05/lab_05_A/lab_05_A_test.cpp
+++ b/algorithm/2021F/lab_05/lab_05_A/lab_05_A_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 05_A]", "[test 05_A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_05/lab_05_B/CMakeLists.txt b/algorithm/2021F/lab_05/lab_05_B/CMakeLists.txt
index 571102e9..c490830a 100644
--- a/algorithm/2021F/lab_05/lab_05_B/CMakeLists.txt
+++ b/algorithm/2021F/lab_05/lab_05_B/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_05/lab_05_B/lab_05_B.cpp b/algorithm/2021F/lab_05/lab_05_B/lab_05_B.cpp
index e6861e37..6dadf006 100644
--- a/algorithm/2021F/lab_05/lab_05_B/lab_05_B.cpp
+++ b/algorithm/2021F/lab_05/lab_05_B/lab_05_B.cpp
@@ -1,17 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* TODO
* */
//@Tag DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -25,7 +20,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_05_B{
#endif
@@ -131,6 +126,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_05/lab_05_B/lab_05_B_test.cpp b/algorithm/2021F/lab_05/lab_05_B/lab_05_B_test.cpp
index 1891d234..49ace72f 100644
--- a/algorithm/2021F/lab_05/lab_05_B/lab_05_B_test.cpp
+++ b/algorithm/2021F/lab_05/lab_05_B/lab_05_B_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 05_B]", "[test 05_B]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_05/lab_05_C/CMakeLists.txt b/algorithm/2021F/lab_05/lab_05_C/CMakeLists.txt
index 8809d6b1..5de3f24f 100644
--- a/algorithm/2021F/lab_05/lab_05_C/CMakeLists.txt
+++ b/algorithm/2021F/lab_05/lab_05_C/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_05/lab_05_C/lab_05_C.cpp b/algorithm/2021F/lab_05/lab_05_C/lab_05_C.cpp
index b11edc67..5e35f038 100644
--- a/algorithm/2021F/lab_05/lab_05_C/lab_05_C.cpp
+++ b/algorithm/2021F/lab_05/lab_05_C/lab_05_C.cpp
@@ -1,17 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* 匹配括号,输出是否匹配
* */
//@Tag DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -27,7 +22,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_05_C{
#endif
@@ -121,6 +116,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_05/lab_05_C/lab_05_C_test.cpp b/algorithm/2021F/lab_05/lab_05_C/lab_05_C_test.cpp
index cd845b8f..d995f90a 100644
--- a/algorithm/2021F/lab_05/lab_05_C/lab_05_C_test.cpp
+++ b/algorithm/2021F/lab_05/lab_05_C/lab_05_C_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence [test 05_C]", "[test 05_C]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_05/lab_05_D/CMakeLists.txt b/algorithm/2021F/lab_05/lab_05_D/CMakeLists.txt
index ffff7238..dce330ce 100644
--- a/algorithm/2021F/lab_05/lab_05_D/CMakeLists.txt
+++ b/algorithm/2021F/lab_05/lab_05_D/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_05/lab_05_D/lab_05_D.cpp b/algorithm/2021F/lab_05/lab_05_D/lab_05_D.cpp
index 854afab4..f06e9626 100644
--- a/algorithm/2021F/lab_05/lab_05_D/lab_05_D.cpp
+++ b/algorithm/2021F/lab_05/lab_05_D/lab_05_D.cpp
@@ -1,16 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* @题目描述
* */
//@Tag DONE
-#ifndef CS203_DSAA_TEST_MACRO
+#ifndef ALGORITHM_TEST_MACRO
#pragma GCC optimize(3, "Ofast", "inline", "no-stack-protector", "unroll-loops")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
@@ -24,7 +19,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_05_D{
#endif
@@ -106,6 +101,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_05/lab_05_D/lab_05_D_test.cpp b/algorithm/2021F/lab_05/lab_05_D/lab_05_D_test.cpp
index 4a82a769..9958bb16 100644
--- a/algorithm/2021F/lab_05/lab_05_D/lab_05_D_test.cpp
+++ b/algorithm/2021F/lab_05/lab_05_D/lab_05_D_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -51,4 +46,4 @@ TEST_CASE("test case with sequence [test 05_D]", "[test 05_D]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_A/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_A/CMakeLists.txt
index 41fc7dbf..354751e1 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_A/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_A/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A.cpp b/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A.cpp
index 46d5020f..c788175b 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* 题目描述
Given two arrays A with length n and B with length T. We want to know whether each element in array B is in array A or not.
@@ -26,7 +21,7 @@ The 4th line contains T integers b1,b2,...,bT.For each bi∈[1,10^9]
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_A{
#endif
@@ -112,6 +107,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A_test.cpp
index 406ddd23..9fa7bc85 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_A/lab_welcome_A_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -57,4 +52,4 @@ TEST_CASE("test case with sequence", "[test welcome A]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_B/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_B/CMakeLists.txt
index 571102e9..c490830a 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_B/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_B/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B.cpp b/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B.cpp
index 05c2d457..32c6e38d 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
* 题目描述
Given two arrays A with length n and B with length T. We want to know whether each element in array B is in array A or not.
@@ -26,7 +21,7 @@ The 4th line contains T integers b1,b2,...,bT.For each bi∈[1,10^5]
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_B{
#endif
@@ -112,6 +107,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B_test.cpp
index 148e99bc..63ad632c 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_B/lab_welcome_B_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -57,4 +52,4 @@ TEST_CASE("test case with sequence", "[test welcome B]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_C/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_C/CMakeLists.txt
index 8809d6b1..5de3f24f 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_C/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_C/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C.cpp b/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C.cpp
index 1a539a8b..a3019aac 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
/*
*题目描述
Suppose in CS203, the number system only has three values 2,3,6. It holds 2<3<6. Given an integer n, please find the n-th smallest number in CS203 number system.
@@ -36,7 +31,7 @@ Next T lines, each line contains an integer an integer n,[1,10^9]
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_C{
#endif
@@ -137,6 +132,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C_test.cpp
index 434ccfca..7a89f766 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_C/lab_welcome_C_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -51,4 +46,4 @@ TEST_CASE("test case 1", "[test welcome C]") {
CHECK(cal_detail(1000000000) == "3226236233626363362");
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_D/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_D/CMakeLists.txt
index ffff7238..dce330ce 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_D/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_D/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D.cpp b/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D.cpp
index 6f1c0c20..05a5eb65 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -21,7 +16,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_D{
#endif
@@ -196,6 +191,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D_test.cpp
index 837556a6..5e01d183 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_D/lab_welcome_D_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,4 +47,4 @@ TEST_CASE("test case with sequence", "[test welcome D]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_E/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_E/CMakeLists.txt
index 7e7867bb..c43d3c98 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_E/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_E/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E.cpp b/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E.cpp
index 4c54a6f0..0c2eaae2 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -21,7 +16,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_E{
#endif
@@ -88,6 +83,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E_test.cpp
index 7ed18e87..04b92ff6 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_E/lab_welcome_E_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -63,4 +58,4 @@ TEST_CASE("test case with sequence", "[test welcome E][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_F/CMakeLists.txt b/algorithm/2021F/lab_welcome/lab_welcome_F/CMakeLists.txt
index b6564222..7bd14a82 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_F/CMakeLists.txt
+++ b/algorithm/2021F/lab_welcome/lab_welcome_F/CMakeLists.txt
@@ -9,8 +9,8 @@ enable_testing()
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}.cpp)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp)
-target_compile_definitions(${PROJECT_NAME}_test PRIVATE CS203_DSAA_TEST_MACRO)
-target_link_libraries(${PROJECT_NAME}_test PRIVATE CS203_DSAA_template_INCLUDE)
+target_compile_definitions(${PROJECT_NAME}_test PRIVATE ALGORITHM_TEST_MACRO)
+target_link_libraries(${PROJECT_NAME}_test PRIVATE algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_ORDER}_${PROBLEM_ORDER}_test.cpp")
add_test(${PROJECT_NAME}_CTEST ${PROJECT_NAME}_test)
set(CMAKE_CXX_STANDARD 11)
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F.cpp b/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F.cpp
index 4ba1e8a2..989620ad 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F.cpp
@@ -1,10 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
#include
#include
#include
@@ -21,7 +16,7 @@ Copyright (C) 2020-2023 nanoseeds
#include
#include
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
namespace lab_welcome_F{
#endif
@@ -88,6 +83,6 @@ static const auto faster_streams = [] {
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
return 0;
}();
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F_test.cpp b/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F_test.cpp
index b8a594ae..2f13cd5e 100644
--- a/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F_test.cpp
+++ b/algorithm/2021F/lab_welcome/lab_welcome_F/lab_welcome_F_test.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -63,4 +58,4 @@ TEST_CASE("test case with sequence", "[test welcome F][.]") {
}
}
}
-#endif //CS203_DSAA_TEST_MACRO
+#endif //ALGORITHM_TEST_MACRO
diff --git a/algorithm/array/CMakeLists.txt b/algorithm/array/CMakeLists.txt
index a979e6f8..fd67b98a 100644
--- a/algorithm/array/CMakeLists.txt
+++ b/algorithm/array/CMakeLists.txt
@@ -33,8 +33,8 @@ unset(leetcode_order)
foreach (elementName IN LISTS dependencies)
add_executable(${PROJECT_NAME}_${elementName} ${CMAKE_CURRENT_SOURCE_DIR}/${elementName}_test.cpp)
- target_compile_definitions(${PROJECT_NAME}_${elementName} PRIVATE CS203_DSAA_TEST_MACRO)
- target_link_libraries(${PROJECT_NAME}_${elementName} CS203_DSAA_template_INCLUDE)
+ target_compile_definitions(${PROJECT_NAME}_${elementName} PRIVATE ALGORITHM_TEST_MACRO)
+ target_link_libraries(${PROJECT_NAME}_${elementName} algorithm_template_INCLUDE)
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${elementName}_test.cpp")
add_test(${PROJECT_NAME}_${elementName}_CTEST ${PROJECT_NAME}_${elementName})
endforeach ()
diff --git a/algorithm/array/leetcode_1.cpp b/algorithm/array/leetcode_1.cpp
index 6dec1915..34355889 100644
--- a/algorithm/array/leetcode_1.cpp
+++ b/algorithm/array/leetcode_1.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -36,6 +31,6 @@ class Solution {
if the number is not so big, it's better to use brute force,
if number > 50,choose hashmap.
*/
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
\ No newline at end of file
diff --git a/algorithm/array/leetcode_1010.cpp b/algorithm/array/leetcode_1010.cpp
index a48bc780..43ab2b57 100644
--- a/algorithm/array/leetcode_1010.cpp
+++ b/algorithm/array/leetcode_1010.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -29,6 +24,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1010_test.cpp b/algorithm/array/leetcode_1010_test.cpp
index 53e35adf..1dc0ac71 100644
--- a/algorithm/array/leetcode_1010_test.cpp
+++ b/algorithm/array/leetcode_1010_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag 暴力解法
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
#include "leetcode_1010.cpp"
#include
@@ -33,4 +28,4 @@ TEST_CASE("test case 2 {test_1010}", "{test_1010}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1010_TEST_HPP
diff --git a/algorithm/array/leetcode_1013.cpp b/algorithm/array/leetcode_1013.cpp
index f1a6184c..fb4a0d04 100644
--- a/algorithm/array/leetcode_1013.cpp
+++ b/algorithm/array/leetcode_1013.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -40,6 +35,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1013_test.cpp b/algorithm/array/leetcode_1013_test.cpp
index 8ebb19f2..d6c66344 100644
--- a/algorithm/array/leetcode_1013_test.cpp
+++ b/algorithm/array/leetcode_1013_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag "双"指针
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
#include
#include
@@ -50,4 +45,4 @@ TEST_CASE("test case 4 {test_1013}", "{test_1013}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1013_TEST_HPP
diff --git a/algorithm/array/leetcode_1020.cpp b/algorithm/array/leetcode_1020.cpp
index c92dff1d..0b1d0813 100644
--- a/algorithm/array/leetcode_1020.cpp
+++ b/algorithm/array/leetcode_1020.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -76,6 +71,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1020_test.cpp b/algorithm/array/leetcode_1020_test.cpp
index 6f004425..86c68515 100644
--- a/algorithm/array/leetcode_1020_test.cpp
+++ b/algorithm/array/leetcode_1020_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag 暴力解法
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
#include
@@ -91,4 +86,4 @@ TEST_CASE("test case 5 {test_1020}", "{test_1020}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1020_TEST_HPP
diff --git a/algorithm/array/leetcode_1030.cpp b/algorithm/array/leetcode_1030.cpp
index fb94d249..c310b318 100644
--- a/algorithm/array/leetcode_1030.cpp
+++ b/algorithm/array/leetcode_1030.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -72,6 +67,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1030_test.cpp b/algorithm/array/leetcode_1030_test.cpp
index 207d5035..cef046c6 100644
--- a/algorithm/array/leetcode_1030_test.cpp
+++ b/algorithm/array/leetcode_1030_test.cpp
@@ -1,16 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag 排序
//@Tag 模拟
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
#include
#include
@@ -93,4 +88,4 @@ TEST_CASE("test case 4-1 {test_1030}", "{test_1030}") {
CHECK(result.size() == rows * cols);
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1030_TEST_HPP
diff --git a/algorithm/array/leetcode_1051.cpp b/algorithm/array/leetcode_1051.cpp
index 72c4f0a6..b57fa011 100644
--- a/algorithm/array/leetcode_1051.cpp
+++ b/algorithm/array/leetcode_1051.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -47,6 +42,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1051_test.cpp b/algorithm/array/leetcode_1051_test.cpp
index 7494a476..09842ba4 100644
--- a/algorithm/array/leetcode_1051_test.cpp
+++ b/algorithm/array/leetcode_1051_test.cpp
@@ -1,16 +1,11 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag 排序
//@Tag 小规模数据集
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
#include
#include
@@ -50,4 +45,4 @@ TEST_CASE("test case 1-3 {test_1051}", "{test_1051}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1051_TEST_HPP
diff --git a/algorithm/array/leetcode_1089.cpp b/algorithm/array/leetcode_1089.cpp
index 229f87a0..590c144e 100644
--- a/algorithm/array/leetcode_1089.cpp
+++ b/algorithm/array/leetcode_1089.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -40,7 +35,7 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1089_test.cpp b/algorithm/array/leetcode_1089_test.cpp
index 04615030..8229afcc 100644
--- a/algorithm/array/leetcode_1089_test.cpp
+++ b/algorithm/array/leetcode_1089_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
//@Tag 反演
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
#include
#include
@@ -59,4 +54,4 @@ TEST_CASE("test case 1-5 {test_1089}", "{test_1089}") {
CHECK_THAT(result, Equals(duplicateZerosConst(input)));
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1089_TEST_HPP
diff --git a/algorithm/array/leetcode_11.cpp b/algorithm/array/leetcode_11.cpp
index ff0588d9..d816844e 100644
--- a/algorithm/array/leetcode_11.cpp
+++ b/algorithm/array/leetcode_11.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -36,6 +31,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1108.cpp b/algorithm/array/leetcode_1108.cpp
index 5affb25d..d4773ec7 100644
--- a/algorithm/array/leetcode_1108.cpp
+++ b/algorithm/array/leetcode_1108.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -48,6 +43,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1108_test.cpp b/algorithm/array/leetcode_1108_test.cpp
index e5e6561d..d4d1c2ce 100644
--- a/algorithm/array/leetcode_1108_test.cpp
+++ b/algorithm/array/leetcode_1108_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
#include
#include
@@ -40,4 +35,4 @@ TEST_CASE("test case 1-3 {test_1108}", "{test_1108}") {
CHECK(result == solution.defangIPaddr(input));
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1108_TEST_HPP
diff --git a/algorithm/array/leetcode_1170.cpp b/algorithm/array/leetcode_1170.cpp
index 6efefaaa..7414453e 100644
--- a/algorithm/array/leetcode_1170.cpp
+++ b/algorithm/array/leetcode_1170.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -52,6 +47,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1170_test.cpp b/algorithm/array/leetcode_1170_test.cpp
index 5648e172..b7fd3161 100644
--- a/algorithm/array/leetcode_1170_test.cpp
+++ b/algorithm/array/leetcode_1170_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
#include
#include
@@ -59,4 +54,4 @@ TEST_CASE("test case 1-4 {test_1170}", "{test_1170}") {
CHECK_THAT(output, Equals(solution.numSmallerByFrequency(queries, words)));
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1170_TEST_HPP
diff --git a/algorithm/array/leetcode_1184.cpp b/algorithm/array/leetcode_1184.cpp
index 8df36f58..abf50ffd 100644
--- a/algorithm/array/leetcode_1184.cpp
+++ b/algorithm/array/leetcode_1184.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -35,6 +30,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1184_test.cpp b/algorithm/array/leetcode_1184_test.cpp
index 529737af..6666465c 100644
--- a/algorithm/array/leetcode_1184_test.cpp
+++ b/algorithm/array/leetcode_1184_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
#include
#include
@@ -46,4 +41,4 @@ TEST_CASE("test case 1-3 {test_1184}", "{test_1184}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1184_TEST_HPP
diff --git a/algorithm/array/leetcode_11_test.cpp b/algorithm/array/leetcode_11_test.cpp
index 794e2083..8b166e88 100644
--- a/algorithm/array/leetcode_11_test.cpp
+++ b/algorithm/array/leetcode_11_test.cpp
@@ -1,15 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2020-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2020-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
#include "leetcode_11.cpp"
#include
@@ -40,4 +35,4 @@ TEST_CASE("test case 3 [test_11]", "[test_11]") {
CHECK(clas.maxArea(vec) == 74004);
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_11_TEST_HPP
diff --git a/algorithm/array/leetcode_1200.cpp b/algorithm/array/leetcode_1200.cpp
index d0604f93..3aea14d2 100644
--- a/algorithm/array/leetcode_1200.cpp
+++ b/algorithm/array/leetcode_1200.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -36,6 +31,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1200_test.cpp b/algorithm/array/leetcode_1200_test.cpp
index 8b03ecb4..ecdb394b 100644
--- a/algorithm/array/leetcode_1200_test.cpp
+++ b/algorithm/array/leetcode_1200_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
#include
#include
@@ -45,4 +40,4 @@ TEST_CASE("test case 1-3 {test_1200}", "{test_1200}") {
CHECK_THAT(output, Equals(solution.minimumAbsDifference(distance)));
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1200_TEST_HPP
diff --git a/algorithm/array/leetcode_1217.cpp b/algorithm/array/leetcode_1217.cpp
index 9df4b318..b881e2d2 100644
--- a/algorithm/array/leetcode_1217.cpp
+++ b/algorithm/array/leetcode_1217.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -33,6 +28,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1217_test.cpp b/algorithm/array/leetcode_1217_test.cpp
index 11a9ad41..d5f19bbf 100644
--- a/algorithm/array/leetcode_1217_test.cpp
+++ b/algorithm/array/leetcode_1217_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
#include
#include
@@ -38,4 +33,4 @@ TEST_CASE("test case 1-2 {test_1217}", "{test_1217}") {
CHECK(result == output);
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1217_TEST_HPP
diff --git a/algorithm/array/leetcode_1329.cpp b/algorithm/array/leetcode_1329.cpp
index d6518b77..04799f40 100644
--- a/algorithm/array/leetcode_1329.cpp
+++ b/algorithm/array/leetcode_1329.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -89,6 +84,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1329_test.cpp b/algorithm/array/leetcode_1329_test.cpp
index 763069a4..db989d59 100644
--- a/algorithm/array/leetcode_1329_test.cpp
+++ b/algorithm/array/leetcode_1329_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
#include
#include
@@ -102,4 +97,4 @@ TEST_CASE("test case 1-5 {test_1329}", "{test_1329}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1329_TEST_HPP
diff --git a/algorithm/array/leetcode_1360.cpp b/algorithm/array/leetcode_1360.cpp
index 078088d9..c5484daf 100644
--- a/algorithm/array/leetcode_1360.cpp
+++ b/algorithm/array/leetcode_1360.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -54,6 +49,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1360_test.cpp b/algorithm/array/leetcode_1360_test.cpp
index b4b9e5d6..5f5bd746 100644
--- a/algorithm/array/leetcode_1360_test.cpp
+++ b/algorithm/array/leetcode_1360_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2022-2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2022-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
#include
#include "leetcode_1360.cpp"
@@ -52,4 +47,4 @@ TEST_CASE("test case 1-4 {test_1360}", "{test_1360}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1360_TEST_HPP
diff --git a/algorithm/array/leetcode_1365.cpp b/algorithm/array/leetcode_1365.cpp
index bb9d59b5..78597685 100644
--- a/algorithm/array/leetcode_1365.cpp
+++ b/algorithm/array/leetcode_1365.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -46,6 +41,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1365_test.cpp b/algorithm/array/leetcode_1365_test.cpp
index 3ce642de..e24cf928 100644
--- a/algorithm/array/leetcode_1365_test.cpp
+++ b/algorithm/array/leetcode_1365_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
#include
#include "leetcode_1365.cpp"
@@ -46,4 +41,4 @@ TEST_CASE("test case 1-4 {test_1365}", "{test_1365}") {
CHECK_THAT(result, Equals(solution.smallerNumbersThanCurrent(nums)));
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1365_TEST_HPP
diff --git a/algorithm/array/leetcode_1371.cpp b/algorithm/array/leetcode_1371.cpp
index c137cb89..48861194 100644
--- a/algorithm/array/leetcode_1371.cpp
+++ b/algorithm/array/leetcode_1371.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -51,6 +46,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1371_test.cpp b/algorithm/array/leetcode_1371_test.cpp
index cc211186..ab3fbcfd 100644
--- a/algorithm/array/leetcode_1371_test.cpp
+++ b/algorithm/array/leetcode_1371_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
#include
#include
@@ -29,4 +24,4 @@ TEST_CASE("test case 1-1 {test_1371}", "{test_1371}") {
}
}
-#endif //CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
+#endif //ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1371_TEST_HPP
diff --git a/algorithm/array/leetcode_1391.cpp b/algorithm/array/leetcode_1391.cpp
index e4a17700..c4a90107 100644
--- a/algorithm/array/leetcode_1391.cpp
+++ b/algorithm/array/leetcode_1391.cpp
@@ -1,11 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
-#ifdef CS203_DSAA_TEST_MACRO
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
+#ifdef ALGORITHM_TEST_MACRO
#include
#include
@@ -163,6 +158,6 @@ class Solution {
}
};
-#ifdef CS203_DSAA_TEST_MACRO
+#ifdef ALGORITHM_TEST_MACRO
}
#endif
diff --git a/algorithm/array/leetcode_1391_test.cpp b/algorithm/array/leetcode_1391_test.cpp
index ae5e5655..055d63e9 100644
--- a/algorithm/array/leetcode_1391_test.cpp
+++ b/algorithm/array/leetcode_1391_test.cpp
@@ -1,14 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
-/*
-CS203_DSAA_template
-
-Copyright (C) 2023 nanoseeds
-
-*/
+// SPDX-FileCopyrightText: 2023-2025 nanoseeds
//@Tag array
//@Tag 数组
-#ifndef CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1391_TEST_HPP
-#define CS203_DSAA_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1391_TEST_HPP
+#ifndef ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1391_TEST_HPP
+#define ALGORITHM_TEMPLATE_ALGORITHM_ARRAY_LEETCODE_1391_TEST_HPP
#include