diff --git a/.gitignore b/.gitignore
index 1d17dae..424afbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.venv
+*.exe
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index f6906f2..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
-# 基于编辑器的 HTTP 客户端请求
-/httpRequests/
-# 已忽略包含查询文件的默认文件夹
-/queries/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/CodeEpiphany/challenges.db b/.idea/CodeEpiphany/challenges.db
deleted file mode 100644
index c0a3ae1..0000000
Binary files a/.idea/CodeEpiphany/challenges.db and /dev/null differ
diff --git a/.idea/CodeEpiphany/luogu.xml b/.idea/CodeEpiphany/luogu.xml
deleted file mode 100644
index c454d6d..0000000
--- a/.idea/CodeEpiphany/luogu.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/MarsCodeWorkspaceAppSettings.xml b/.idea/MarsCodeWorkspaceAppSettings.xml
index b26fdc6..e2a065b 100644
--- a/.idea/MarsCodeWorkspaceAppSettings.xml
+++ b/.idea/MarsCodeWorkspaceAppSettings.xml
@@ -1,7 +1,6 @@
-
\ No newline at end of file
diff --git a/.idea/c_cpp_properties.json b/.idea/c_cpp_properties.json
new file mode 100644
index 0000000..ca5c05d
--- /dev/null
+++ b/.idea/c_cpp_properties.json
@@ -0,0 +1,13 @@
+{
+ "configurations": [
+ {
+ "name": "CLion",
+ "includePath": [
+ "${workspaceFolder}/**"
+ ],
+ "cStandard": "c17",
+ "cppStandard": "c++17"
+ }
+ ],
+ "version": 4
+}
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
deleted file mode 100644
index fe83ec9..0000000
--- a/.idea/codeStyles/Project.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
deleted file mode 100644
index e402e4d..0000000
--- a/.idea/codeStyles/codeStyleConfig.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/editor.xml b/.idea/editor.xml
new file mode 100644
index 0000000..3f164bc
--- /dev/null
+++ b/.idea/editor.xml
@@ -0,0 +1,350 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/exercises.iml b/.idea/exercises.iml
new file mode 100644
index 0000000..4c94235
--- /dev/null
+++ b/.idea/exercises.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/.idea/exercises@1.iml b/.idea/exercises@1.iml
deleted file mode 100644
index 964dabf..0000000
--- a/.idea/exercises@1.iml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..2ca729b
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
deleted file mode 100644
index 105ce2d..0000000
--- a/.idea/inspectionProfiles/profiles_settings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index aa8bfc5..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 32d0c6e..7d2682d 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -3,7 +3,6 @@
-
\ No newline at end of file
diff --git a/.idea/pyProjectModel.xml b/.idea/pyProjectModel.xml
deleted file mode 100644
index 9963416..0000000
--- a/.idea/pyProjectModel.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 94a25f7..35eb1dd 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..44ea720
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "customColor": "",
+ "associatedIndex": 6
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1784800801763
+
+
+ 1784800801763
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/luogu_ez_B3628.cpp b/luogu_ez_B3628.cpp
new file mode 100644
index 0000000..d9bb99c
--- /dev/null
+++ b/luogu_ez_B3628.cpp
@@ -0,0 +1,20 @@
+#include
+
+int minBlood = 0, blood = 0;
+
+int main() {
+ int n, current;
+ std::cin >> n;
+ for (int i = 0; i < n; i++) {
+ std::cin >> current;
+ blood += current;
+ minBlood = std::min(minBlood, blood);
+ }
+ if (minBlood >= 0) {
+ std::cout << 1 << std::endl;
+ } else {
+ std::cout << -minBlood + 1 << std::endl;
+ }
+
+ return 0;
+}
diff --git a/pojcs101_E01003.cpp b/pojcs101_E01003.cpp
new file mode 100644
index 0000000..e5f0a2a
--- /dev/null
+++ b/pojcs101_E01003.cpp
@@ -0,0 +1,30 @@
+#include
+#include
+
+
+static std::vector max_lengths;
+
+static void init() {
+ double length = 0;
+ for (int i = 2; length < 5.5; i++) {
+ max_lengths.push_back(length);
+ length += 1.0 / i;
+ }
+}
+
+
+int main() {
+ init();
+ double target_length = 0;
+ for (;;) {
+ std::cin >> target_length;
+ if (target_length == 0) { break; }
+ for (int i = 0;; i++) {
+ if (max_lengths[i] > target_length) {
+ std::cout << i << " card(s)" << std::endl;
+ break;
+ }
+ }
+ }
+ return 0;
+}
diff --git a/pojcs101_E01218.cpp b/pojcs101_E01218.cpp
new file mode 100644
index 0000000..e909068
--- /dev/null
+++ b/pojcs101_E01218.cpp
@@ -0,0 +1,32 @@
+#include
+#include
+
+constexpr int N = 105;
+
+static int answers[N] = {0};
+
+static void initAnswers() {
+ // O(n^3),本题可接受
+ bool cells[N];
+ for (int n = 1; n < N; n++) {
+ memset(cells, false, sizeof(cells));
+ for (int i = 0; i < n; i++) {
+ for (int j = i; j < n; j += i + 1) {
+ cells[j] = !cells[j];
+ }
+ }
+ for (int i = 0; i < n; i++) {
+ if (cells[i]) { answers[n]++; }
+ }
+ }
+}
+
+int main() {
+ initAnswers();
+ int rounds, n;
+ std::cin >> rounds;
+ for (int i = 0; i < rounds; i++) {
+ std::cin >> n;
+ std::cout << answers[n] << std::endl;
+ }
+}
diff --git a/pojcs101_E02883.cpp b/pojcs101_E02883.cpp
new file mode 100644
index 0000000..d498f6d
--- /dev/null
+++ b/pojcs101_E02883.cpp
@@ -0,0 +1,21 @@
+#include
+#include
+
+int nums[5];
+
+int main() {
+ while (std::cin >> nums[0] >> nums[1] >> nums[2] >> nums[3] >> nums[4]) {
+ if (nums[0] <= nums[1] && nums[1] <= nums[2] && nums[2] <= nums[3] && nums[3] <= nums[4]) {
+ std::cout << "Yes" << std::endl;
+ } else {
+ std::sort(nums, nums + 5);
+ std::cout << "No ";
+ for (const int num : nums) {
+ std::cout << num << " ";
+ }
+ std::cout << std::endl;
+ }
+ }
+
+ return 0;
+}
diff --git a/pojcs101_M01002.cpp b/pojcs101_M01002.cpp
new file mode 100644
index 0000000..c3c26a4
--- /dev/null
+++ b/pojcs101_M01002.cpp
@@ -0,0 +1,58 @@
+#include
+#include