From ca6daa582cdfefebdaf7d2dba0f63e658d505bf4 Mon Sep 17 00:00:00 2001 From: rogerwang2008 Date: Fri, 9 Oct 2026 10:21:51 +0800 Subject: [PATCH] some programs!!! --- .idea/workspace.xml | 749 ++++++++++-------- CMakeLists.txt | 2 + _others/others_test.c | 21 + _others/others_test.c.cpp | 50 -- _others/others_test_cpp.cpp | 29 + cs101/{ => stage_1}/dh_01_01.cpp | 0 cs101/{ => stage_1}/dh_01_02_subway.cpp | 0 cs101/{ => stage_1}/dh_01_03.cpp | 0 cs101/{ => stage_1}/dh_01_04.cpp | 0 cs101/{ => stage_1}/dh_01_05_vote.cpp | 0 cs101/{ => stage_1}/dh_03_01_bike_or_walk.cpp | 0 .../dh_03_02_draw_rectangles.cpp | 0 cs101/{ => stage_1}/dh_03_03.cpp | 0 cs101/{ => stage_1}/dh_03_04_lamps.cpp | 0 .../{ => stage_1}/dh_03_05_perfect_cubes.cpp | 0 cs101/{ => stage_1}/dh_04_01_fibonacci.cpp | 0 .../dh_04_04_balloons.cpp} | 0 .../{ => stage_1}/dh_04_04_balloons_init1.py | 0 cs101/stage_1/dh_05_01_newton_sqrt.cpp | 29 + cs101/stage_1/dh_05_02_three_nums.cpp | 42 + cs101/stage_1/dh_05_03_different_num.cpp | 18 + cs101/stage_1/dh_05_04_fried_chicken.cpp | 18 + cs101/stage_1/dh_05_05_pair_of_shit_nums.cpp | 28 + .../dh_05_05_pair_of_shit_nums_ANALYSIS.cpp | 137 ++++ .../dh_05_05_pair_of_shit_nums_SIEVE.cpp | 68 ++ cs101/stage_1/dh_06_02_convex_polygon.cpp | 67 ++ cs101/stage_1/dh_06_04_split.cpp | 46 ++ cs101/stage_2/dh_11_01_change.cpp | 48 ++ cs101/stage_2/dh_11_02_shit_num.cpp | 37 + cs101/stage_2/dh_11_03_jump_rope.cpp | 32 + .../dh_00_05_sum_fractions.cpp | 0 .../dh_00_10_smaller_numbers.cpp | 0 .../dh_00_11_count_digits_init.py | 0 .../dh_00_12_bottle_exchange.cpp | 0 cs101/{ => stage_pre}/dh_00_13_flip.cpp | 0 cs101/{ => stage_pre}/dh_00_14_encryption.cpp | 0 cs101/{ => stage_pre}/dh_00_15_jusephus.cpp | 0 cs101/{ => stage_pre}/dh_00_16_swap_bits.cpp | 0 dp/eagle_egg.cpp | 52 ++ dsa/ch2_linear_list/P2629_good_news.cpp | 60 ++ dsa/ch2_linear_list/SDOI2007_queue.cpp | 117 +++ dsa/ch3_stack_queue/USACO12MARs_flowerpot.cpp | 96 +++ .../USACO12MARs_flowerpot_WRONG.cpp | 87 ++ 43 files changed, 1452 insertions(+), 381 deletions(-) create mode 100644 _others/others_test.c delete mode 100644 _others/others_test.c.cpp create mode 100644 _others/others_test_cpp.cpp rename cs101/{ => stage_1}/dh_01_01.cpp (100%) rename cs101/{ => stage_1}/dh_01_02_subway.cpp (100%) rename cs101/{ => stage_1}/dh_01_03.cpp (100%) rename cs101/{ => stage_1}/dh_01_04.cpp (100%) rename cs101/{ => stage_1}/dh_01_05_vote.cpp (100%) rename cs101/{ => stage_1}/dh_03_01_bike_or_walk.cpp (100%) rename cs101/{ => stage_1}/dh_03_02_draw_rectangles.cpp (100%) rename cs101/{ => stage_1}/dh_03_03.cpp (100%) rename cs101/{ => stage_1}/dh_03_04_lamps.cpp (100%) rename cs101/{ => stage_1}/dh_03_05_perfect_cubes.cpp (100%) rename cs101/{ => stage_1}/dh_04_01_fibonacci.cpp (100%) rename cs101/{sh_04_04_balloons.cpp => stage_1/dh_04_04_balloons.cpp} (100%) rename cs101/{ => stage_1}/dh_04_04_balloons_init1.py (100%) create mode 100644 cs101/stage_1/dh_05_01_newton_sqrt.cpp create mode 100644 cs101/stage_1/dh_05_02_three_nums.cpp create mode 100644 cs101/stage_1/dh_05_03_different_num.cpp create mode 100644 cs101/stage_1/dh_05_04_fried_chicken.cpp create mode 100644 cs101/stage_1/dh_05_05_pair_of_shit_nums.cpp create mode 100644 cs101/stage_1/dh_05_05_pair_of_shit_nums_ANALYSIS.cpp create mode 100644 cs101/stage_1/dh_05_05_pair_of_shit_nums_SIEVE.cpp create mode 100644 cs101/stage_1/dh_06_02_convex_polygon.cpp create mode 100644 cs101/stage_1/dh_06_04_split.cpp create mode 100644 cs101/stage_2/dh_11_01_change.cpp create mode 100644 cs101/stage_2/dh_11_02_shit_num.cpp create mode 100644 cs101/stage_2/dh_11_03_jump_rope.cpp rename cs101/{ => stage_pre}/dh_00_05_sum_fractions.cpp (100%) rename cs101/{ => stage_pre}/dh_00_10_smaller_numbers.cpp (100%) rename cs101/{ => stage_pre}/dh_00_11_count_digits_init.py (100%) rename cs101/{ => stage_pre}/dh_00_12_bottle_exchange.cpp (100%) rename cs101/{ => stage_pre}/dh_00_13_flip.cpp (100%) rename cs101/{ => stage_pre}/dh_00_14_encryption.cpp (100%) rename cs101/{ => stage_pre}/dh_00_15_jusephus.cpp (100%) rename cs101/{ => stage_pre}/dh_00_16_swap_bits.cpp (100%) create mode 100644 dp/eagle_egg.cpp create mode 100644 dsa/ch2_linear_list/P2629_good_news.cpp create mode 100644 dsa/ch2_linear_list/SDOI2007_queue.cpp create mode 100644 dsa/ch3_stack_queue/USACO12MARs_flowerpot.cpp create mode 100644 dsa/ch3_stack_queue/USACO12MARs_flowerpot_WRONG.cpp diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 68352ba..1034548 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,8 @@