some programs!!

This commit is contained in:
rogerwang2008 committed 2026-09-28 14:05:06 +08:00
1 parent ed054247d5
commit 71f1022dea
38 files changed
+1037 -281

No files matched your search

+361 -219
View File
@@ -23,22 +23,24 @@
<config projectName="exercises" targetName="cs101__dh_20260923_01_bike_or_walk" /> <config projectName="exercises" targetName="cs101__dh_20260923_01_bike_or_walk" />
<config projectName="exercises" targetName="pojcs101_M02692_12_coins" /> <config projectName="exercises" targetName="pojcs101_M02692_12_coins" />
<config projectName="exercises" targetName="graph__ECNA2001_sort_letters" /> <config projectName="exercises" targetName="graph__ECNA2001_sort_letters" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0205_polynomial_addition" />
<config projectName="exercises" targetName="pojcs101_T12559_biggest_smallest_combination" /> <config projectName="exercises" targetName="pojcs101_T12559_biggest_smallest_combination" />
<config projectName="exercises" targetName="pojcs101_T12559_biggest_smallest_combination_WRONG" /> <config projectName="exercises" targetName="pojcs101_T12559_biggest_smallest_combination_WRONG" />
<config projectName="exercises" targetName="pojcs101_E02883" /> <config projectName="exercises" targetName="pojcs101_E02883" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0217_magic_square" />
<config projectName="exercises" targetName="pojcs101_M02694_polish_notation_tree" /> <config projectName="exercises" targetName="pojcs101_M02694_polish_notation_tree" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0204_prefix_cycle" />
<config projectName="exercises" targetName="pojcs101_M01017_6_boxes" /> <config projectName="exercises" targetName="pojcs101_M01017_6_boxes" />
<config projectName="exercises" targetName="cs101__dh_20260917_03" /> <config projectName="exercises" targetName="cs101__dh_20260917_03" />
<config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE" /> <config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0217_magic_square" />
<config projectName="exercises" targetName="dp__backpack_dp__NOIP2006S_jinming_budget_dp_knapsack" /> <config projectName="exercises" targetName="dp__backpack_dp__NOIP2006S_jinming_budget_dp_knapsack" />
<config projectName="exercises" targetName="cs101__dh_20260923_03" /> <config projectName="exercises" targetName="cs101__dh_20260923_03" />
<config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_PINGPONG" /> <config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_PINGPONG" />
<config projectName="exercises" targetName="cs101__dh_20260923_04_lamps" />
<config projectName="exercises" targetName="JLOI2009_binary_tree_GIVEUP" /> <config projectName="exercises" targetName="JLOI2009_binary_tree_GIVEUP" />
<config projectName="exercises" targetName="_others__qyz__gdbh" /> <config projectName="exercises" targetName="dsa__ch3_stack_queue__dsa_0306_stack_operation" />
<config projectName="exercises" targetName="cs101__dh_20260909_16_swap_bits" /> <config projectName="exercises" targetName="cs101__dh_20260909_16_swap_bits" />
<config projectName="exercises" targetName="pojcs101_M03704_brackets" /> <config projectName="exercises" targetName="pojcs101_M03704_brackets" />
<config projectName="exercises" targetName="dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW" />
<config projectName="exercises" targetName="luogu_ez_B3628" /> <config projectName="exercises" targetName="luogu_ez_B3628" />
<config projectName="exercises" targetName="dp__TJOI2007_walk_segments_dp" /> <config projectName="exercises" targetName="dp__TJOI2007_walk_segments_dp" />
<config projectName="exercises" targetName="pojcs101_M03441_sum_zero" /> <config projectName="exercises" targetName="pojcs101_M03441_sum_zero" />
@@ -50,6 +52,7 @@
<config projectName="exercises" targetName="graph__luogu_P3916_graph_iteration" /> <config projectName="exercises" targetName="graph__luogu_P3916_graph_iteration" />
<config projectName="exercises" targetName="_others__jzh__jzh_c1_h" /> <config projectName="exercises" targetName="_others__jzh__jzh_c1_h" />
<config projectName="exercises" targetName="dp__NOIP1996S_miner_dp_MWASTE" /> <config projectName="exercises" targetName="dp__NOIP1996S_miner_dp_MWASTE" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0204_prefix_cycle" />
<config projectName="exercises" targetName="pojcs101_T01011_sticks" /> <config projectName="exercises" targetName="pojcs101_T01011_sticks" />
<config projectName="exercises" targetName="cs101__dh_20260909_15_jusephus" /> <config projectName="exercises" targetName="cs101__dh_20260909_15_jusephus" />
<config projectName="exercises" targetName="pojcs101_M02431_cows_gas_leak_WRONG" /> <config projectName="exercises" targetName="pojcs101_M02431_cows_gas_leak_WRONG" />
@@ -61,18 +64,20 @@
<config projectName="exercises" targetName="cs101__dh_20260909_05_sum_fractions" /> <config projectName="exercises" targetName="cs101__dh_20260909_05_sum_fractions" />
<config projectName="exercises" targetName="pojcs101_E01003" /> <config projectName="exercises" targetName="pojcs101_E01003" />
<config projectName="exercises" targetName="cs101__dh_20260909_14_encryption" /> <config projectName="exercises" targetName="cs101__dh_20260909_14_encryption" />
<config projectName="exercises" targetName="dsa__ch3_stack_queue__dsa_0302_calculator" />
<config projectName="exercises" targetName="JLOI2009_binary_tree" /> <config projectName="exercises" targetName="JLOI2009_binary_tree" />
<config projectName="exercises" targetName="pojcs101_M03532" /> <config projectName="exercises" targetName="pojcs101_M03532" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0206_binary_query" />
<config projectName="exercises" targetName="pojcs101_M01321_chest_grid" /> <config projectName="exercises" targetName="pojcs101_M01321_chest_grid" />
<config projectName="exercises" targetName="cs101__dh_20260917_01" /> <config projectName="exercises" targetName="cs101__dh_20260917_01" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0203_string_insertion" />
<config projectName="exercises" targetName="cs101__dh_20260923_05_perfect_cubes" />
<config projectName="exercises" targetName="pojcs101_T04117_split_int" /> <config projectName="exercises" targetName="pojcs101_T04117_split_int" />
<config projectName="exercises" targetName="pojcs101_T27373_biggest_combination_t2_TLE" /> <config projectName="exercises" targetName="pojcs101_T27373_biggest_combination_t2_TLE" />
<config projectName="exercises" targetName="cs101__dh_20260909_13_flip" /> <config projectName="exercises" targetName="cs101__dh_20260909_13_flip" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0205_polynomial_addition" />
<config projectName="exercises" targetName="cs101__dh_20260923_02_draw_rectangles" /> <config projectName="exercises" targetName="cs101__dh_20260923_02_draw_rectangles" />
<config projectName="exercises" targetName="pojcs101_M01002_memorable_number" /> <config projectName="exercises" targetName="pojcs101_M01002_memorable_number" />
<config projectName="exercises" targetName="pojcs101_M02524_ubiquitous_religions_dsu" /> <config projectName="exercises" targetName="pojcs101_M02524_ubiquitous_religions_dsu" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0206_binary_query" />
<config projectName="exercises" targetName="pojcs101_M03247_palindromic_prime" /> <config projectName="exercises" targetName="pojcs101_M03247_palindromic_prime" />
<config projectName="exercises" targetName="SHOI2002_ski" /> <config projectName="exercises" targetName="SHOI2002_ski" />
<config projectName="exercises" targetName="pojcs101_E01218" /> <config projectName="exercises" targetName="pojcs101_E01218" />
@@ -81,66 +86,75 @@
<config projectName="exercises" targetName="dp__SHOI2002_ski_dp" /> <config projectName="exercises" targetName="dp__SHOI2002_ski_dp" />
<config projectName="exercises" targetName="cs101__dh_20260917_05_vote" /> <config projectName="exercises" targetName="cs101__dh_20260917_05_vote" />
<config projectName="exercises" targetName="_others__jzh__jzh_e2_j" /> <config projectName="exercises" targetName="_others__jzh__jzh_e2_j" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0201_dictionary" />
<config projectName="exercises" targetName="cs101__dh_20260909_10_smaller_numbers" /> <config projectName="exercises" targetName="cs101__dh_20260909_10_smaller_numbers" />
<config projectName="exercises" targetName="dsa__ch3_stack_queue__dsa_0301_sliding_window" />
<config projectName="exercises" targetName="pojcs101_T01011_sticks_WRONG" /> <config projectName="exercises" targetName="pojcs101_T01011_sticks_WRONG" />
<config projectName="exercises" targetName="pojcs101_M01852_ants_falling" /> <config projectName="exercises" targetName="pojcs101_M01852_ants_falling" />
<config projectName="exercises" targetName="cs101__dh_20260923_11_fibonacci" />
<config projectName="exercises" targetName="cs101__sh_20260923_14_balloons" />
<config projectName="exercises" targetName="graph__luogu_P3916_graph_iteration_WRONG" /> <config projectName="exercises" targetName="graph__luogu_P3916_graph_iteration_WRONG" />
<config projectName="exercises" targetName="SHOI2002_ski_WRONG" /> <config projectName="exercises" targetName="SHOI2002_ski_WRONG" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0201_dictionary" /> <config projectName="exercises" targetName="dsa__ch3_stack_queue__dsa_0302_calculator_WRONG" />
<config projectName="exercises" targetName="pojcs101_T27104_chicken_monitors" /> <config projectName="exercises" targetName="pojcs101_T27104_chicken_monitors" />
<config projectName="exercises" targetName="_others__others_test" />
<config projectName="exercises" targetName="cs101__dh_20260917_04" /> <config projectName="exercises" targetName="cs101__dh_20260917_04" />
<config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE_BETTER" /> <config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE_BETTER" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0202_card_stacking" />
<config projectName="exercises" targetName="cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdCXX__CMakeCXXCompilerId" /> <config projectName="exercises" targetName="cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdCXX__CMakeCXXCompilerId" />
<config projectName="exercises" targetName="NOIP2016J_bay" /> <config projectName="exercises" targetName="NOIP2016J_bay" />
<config projectName="exercises" targetName="lc_135_candy" /> <config projectName="exercises" targetName="lc_135_candy" />
<config projectName="exercises" targetName="pojcs101_T27373_biggest_combination_t2" /> <config projectName="exercises" targetName="pojcs101_T27373_biggest_combination_t2" />
<config projectName="exercises" targetName="_others__qyz__test" />
<config projectName="exercises" targetName="dsa__linear_list__dsa_0203_string_insertion" />
<config projectName="exercises" targetName="cs101__dh_20260909_11_count_digits" /> <config projectName="exercises" targetName="cs101__dh_20260909_11_count_digits" />
<config projectName="exercises" targetName="pojcs101_M01328_radar_greedy_WRONG" /> <config projectName="exercises" targetName="pojcs101_M01328_radar_greedy_WRONG" />
<config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack" /> <config projectName="exercises" targetName="dp__backpack_dp__NOIP2005J_herbs_dp_knapsack" />
<config projectName="exercises" targetName="graph__USACO06DECs_cow_picnic" /> <config projectName="exercises" targetName="graph__USACO06DECs_cow_picnic" />
<config projectName="exercises" targetName="cs101__dh_20260917_02_subway" /> <config projectName="exercises" targetName="cs101__dh_20260917_02_subway" />
<config projectName="exercises" targetName="dsa__ch2_linear_list__dsa_0202_card_stacking" />
</generated> </generated>
</component> </component>
<component name="CMakeSettings" AUTO_RELOAD="true"> <component name="CMakeSettings" AUTO_RELOAD="true">
<configurations /> <configurations />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4491295e-723c-4e0b-b7b4-9be1cbde5db8" name="更改" comment="some programs"> <list default="true" id="4491295e-723c-4e0b-b7b4-9be1cbde5db8" name="更改" comment="some programs!">
<change afterPath="$PROJECT_DIR$/.clang-format" afterDir="false" /> <change afterPath="$PROJECT_DIR$/_others/others_test.c.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/_others/jzh/jzh_c1_h.c" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cs101/dh_03_05_perfect_cubes.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_05_sum_fractions.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cs101/dh_04_01_fibonacci.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_10_smaller_numbers.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cs101/dh_04_04_balloons_init1.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_11_count_digits_init.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/cs101/sh_04_04_balloons.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_12_bottle_exchange.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0301_sliding_window.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_13_flip.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0301_sliding_window_SLOW.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_14_encryption.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0302_calculator.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_15_jusephus.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0302_calculator_WRONG.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260909_16_swap_bits.cpp" afterDir="false" /> <change afterPath="$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0306_stack_operation.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260917_01.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260917_02_subway.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260917_03.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260917_04.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260917_05_vote.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260923_01_bike_or_walk.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260923_02_draw_rectangles.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260923_03.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/cs101/dh_20260923_04_lamps.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0202_card_stacking.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0203_string_insertion.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0204_prefix_cycle.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0205_polynomial_addition.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0206_binary_query.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/dsa/linear_list/dsa_0217_magic_square.cpp" afterDir="false" />
<change afterPath="$PROJECT_DIR$/graph/USACO06DECs_cow_picnic.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" /> <change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/graph/ECNA2001_sort_letters.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/graph/ECNA2001_sort_letters.cpp" afterDir="false" /> <change beforePath="$PROJECT_DIR$/_others/qyz/gdbh.cpp" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/luogu_P1160_biodir_linked_list.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/luogu_P1160_biodir_linked_list.cpp" afterDir="false" /> <change beforePath="$PROJECT_DIR$/_others/qyz/test.cpp" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/noi2001_food_chain_dsu.py" beforeDir="false" afterPath="$PROJECT_DIR$/NOI2001_food_chain_dsu.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cs101/dh_20260909_05_sum_fractions.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_05_sum_fractions.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_10_smaller_numbers.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_10_smaller_numbers.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_11_count_digits_init.py" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_11_count_digits_init.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_12_bottle_exchange.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_12_bottle_exchange.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_13_flip.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_13_flip.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_14_encryption.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_14_encryption.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_15_jusephus.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_15_jusephus.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260909_16_swap_bits.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_00_16_swap_bits.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260917_01.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_01_01.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260917_02_subway.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_01_02_subway.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260917_03.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_01_03.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260917_04.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_01_04.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260917_05_vote.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_01_05_vote.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260923_01_bike_or_walk.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_03_01_bike_or_walk.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260923_02_draw_rectangles.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_03_02_draw_rectangles.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260923_03.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_03_03.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cs101/dh_20260923_04_lamps.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/cs101/dh_03_04_lamps.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0201_dictionary.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0201_dictionary.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0202_card_stacking.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0202_card_stacking.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0203_string_insertion.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0203_string_insertion.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0204_prefix_cycle.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0204_prefix_cycle.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0205_polynomial_addition.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0205_polynomial_addition.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0206_binary_query.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0206_binary_query.cpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dsa/linear_list/dsa_0217_magic_square.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0217_magic_square.cpp" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -159,8 +173,8 @@
<list> <list>
<option value="C++ Single file program" /> <option value="C++ Single file program" />
<option value="CMakeLists.txt" /> <option value="CMakeLists.txt" />
<option value="Python Script" />
<option value="C++ Single file for OJ" /> <option value="C++ Single file for OJ" />
<option value="Python Script" />
</list> </list>
</option> </option>
</component> </component>
@@ -173,6 +187,10 @@
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component> </component>
<component name="HighlightingSettingsPerFile"> <component name="HighlightingSettingsPerFile">
<setting file="file://$PROJECT_DIR$/cs101/dh_20260917_01.cpp" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0301_sliding_window_SLOW.cpp" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0301_sliding_window_WRONG.cpp" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0302_calculator_WRONG.cpp" root0="FORCE_HIGHLIGHTING" />
<setting file="mock:///dummy.cpp" root0="SKIP_HIGHLIGHTING" /> <setting file="mock:///dummy.cpp" root0="SKIP_HIGHLIGHTING" />
</component> </component>
<component name="MacroExpansionManager"> <component name="MacroExpansionManager">
@@ -246,7 +264,15 @@
"CMake 应用程序.cs101__dh_20260923_01_bike_or_walk.executor": "Run", "CMake 应用程序.cs101__dh_20260923_01_bike_or_walk.executor": "Run",
"CMake 应用程序.cs101__dh_20260923_02_draw_rectangles.executor": "Run", "CMake 应用程序.cs101__dh_20260923_02_draw_rectangles.executor": "Run",
"CMake 应用程序.cs101__dh_20260923_03.executor": "Run", "CMake 应用程序.cs101__dh_20260923_03.executor": "Run",
"CMake 应用程序.cs101__dh_20260923_04_lamps.executor": "Run",
"CMake 应用程序.cs101__dh_20260923_05_perfect_cubes.executor": "Run",
"CMake 应用程序.cs101__dh_20260923_11_fibonacci.executor": "Run",
"CMake 应用程序.cs101__sh_20260923_14_balloons.executor": "Run",
"CMake 应用程序.dp__TJOI2007_walk_segments_dp.executor": "Run", "CMake 应用程序.dp__TJOI2007_walk_segments_dp.executor": "Run",
"CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window.executor": "Run",
"CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW.executor": "Run",
"CMake 应用程序.dsa__ch3_stack_queue__dsa_0302_calculator.executor": "Run",
"CMake 应用程序.dsa__ch3_stack_queue__dsa_0306_stack_operation.executor": "Run",
"CMake 应用程序.dsa__linear_list__dsa_0201_dictionary.executor": "Run", "CMake 应用程序.dsa__linear_list__dsa_0201_dictionary.executor": "Run",
"CMake 应用程序.dsa__linear_list__dsa_0202_card_stacking.executor": "Run", "CMake 应用程序.dsa__linear_list__dsa_0202_card_stacking.executor": "Run",
"CMake 应用程序.dsa__linear_list__dsa_0204_prefix_cycle.executor": "Run", "CMake 应用程序.dsa__linear_list__dsa_0204_prefix_cycle.executor": "Run",
@@ -277,6 +303,7 @@
"CidrDebugProfileConversion": "true", "CidrDebugProfileConversion": "true",
"ModuleVcsDetector.initialDetectionPerformed": "true", "ModuleVcsDetector.initialDetectionPerformed": "true",
"Python.dh_20260909_11_count_digits_init.executor": "Run", "Python.dh_20260909_11_count_digits_init.executor": "Run",
"Python.dh_20260923_14_balloons_init1.executor": "Run",
"Python.lc_127.executor": "Run", "Python.lc_127.executor": "Run",
"Python.noi2001_food_chain_dsu.executor": "Run", "Python.noi2001_food_chain_dsu.executor": "Run",
"Python.pojcs101_M03247_palindromic_prime_init1.executor": "Debug", "Python.pojcs101_M03247_palindromic_prime_init1.executor": "Debug",
@@ -293,21 +320,24 @@
"codeWithMe.voiceChat.enabledByDefault": "false", "codeWithMe.voiceChat.enabledByDefault": "false",
"deletionFromPopupRequiresConfirmation": "false", "deletionFromPopupRequiresConfirmation": "false",
"git-widget-placeholder": "main", "git-widget-placeholder": "main",
"last_opened_file_path": "/Users/roger/coding/exercises/_others/jzh", "last_opened_file_path": "/Users/roger/coding/exercises/cs101",
"node.js.detected.package.jshint": "true", "node.js.detected.package.jshint": "true",
"node.js.selected.package.jshint": "", "node.js.selected.package.jshint": "",
"nodejs_package_manager_path": "npm", "nodejs_package_manager_path": "npm",
"org.rust.first.attach.projects": "true", "org.rust.first.attach.projects": "true",
"settings.editor.selected.configurable": "fileTemplates" "settings.editor.selected.configurable": "preferences.keymap"
} }
}]]></component> }]]></component>
<component name="PyDebuggerOptionsProvider">
<option name="myDebuggerBackend" value="DEBUGPY" />
</component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/_others/jzh" />
<recent name="$PROJECT_DIR$/cs101" /> <recent name="$PROJECT_DIR$/cs101" />
<recent name="$PROJECT_DIR$/dsa/ch3_stack_queue" />
<recent name="$PROJECT_DIR$/_others/jzh" />
<recent name="$PROJECT_DIR$/graph" /> <recent name="$PROJECT_DIR$/graph" />
<recent name="$PROJECT_DIR$" /> <recent name="$PROJECT_DIR$" />
<recent name="$PROJECT_DIR$/dp/backpack_dp" />
</key> </key>
<key name="MoveFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" /> <recent name="$PROJECT_DIR$" />
@@ -317,7 +347,7 @@
<recent name="$PROJECT_DIR$/_others" /> <recent name="$PROJECT_DIR$/_others" />
</key> </key>
</component> </component>
<component name="RunManager" selected="CMake 应用程序.cs101__dh_20260923_04_lamps"> <component name="RunManager" selected="Python.dh_04_04_balloons_init1">
<configuration default="true" type="CMakeBoostTestRunConfigurationType" factoryName="Boost Test" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" TEST_MODE="SUITE_TEST"> <configuration default="true" type="CMakeBoostTestRunConfigurationType" factoryName="Boost Test" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" TEST_MODE="SUITE_TEST">
<method v="2"> <method v="2">
<option name="BeforeTestRunTask" enabled="true" /> <option name="BeforeTestRunTask" enabled="true" />
@@ -383,12 +413,7 @@
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="_others__qyz__gdbh" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="_others__qyz__gdbh" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="_others__qyz__gdbh"> <configuration name="_others__others_test" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="_others__others_test" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="_others__others_test">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="_others__qyz__test" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="_others__qyz__test" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="_others__qyz__test">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
@@ -403,12 +428,92 @@
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="cs101__dh_20260909_05_sum_fractions" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_05_sum_fractions" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_05_sum_fractions"> <configuration name="cs101__dh_00_05_sum_fractions" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_05_sum_fractions" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_05_sum_fractions">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="cs101__dh_20260909_10_smaller_numbers" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_10_smaller_numbers" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_10_smaller_numbers"> <configuration name="cs101__dh_00_10_smaller_numbers" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_10_smaller_numbers" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_10_smaller_numbers">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_00_12_bottle_exchange" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_12_bottle_exchange" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_12_bottle_exchange">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_00_13_flip" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_13_flip" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_13_flip">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_00_14_encryption" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_14_encryption" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_14_encryption">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_00_15_jusephus" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_15_jusephus" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_15_jusephus">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_00_16_swap_bits" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_00_16_swap_bits" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_00_16_swap_bits">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_01_01" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_01_01" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_01_01">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_01_02_subway" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_01_02_subway" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_01_02_subway">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_01_03" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_01_03" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_01_03">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_01_04" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_01_04" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_01_04">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_01_05_vote" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_01_05_vote" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_01_05_vote">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_03_01_bike_or_walk" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_03_01_bike_or_walk" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_03_01_bike_or_walk">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_03_02_draw_rectangles" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_03_02_draw_rectangles" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_03_02_draw_rectangles">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_03_03" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_03_03" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_03_03">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_03_04_lamps" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_03_04_lamps" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_03_04_lamps">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_03_05_perfect_cubes" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_03_05_perfect_cubes" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_03_05_perfect_cubes">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_04_01_fibonacci" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_04_01_fibonacci" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_04_01_fibonacci">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
@@ -418,72 +523,7 @@
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="cs101__dh_20260909_12_bottle_exchange" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_12_bottle_exchange" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_12_bottle_exchange"> <configuration name="cs101__sh_04_04_balloons" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__sh_04_04_balloons" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__sh_04_04_balloons">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260909_13_flip" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_13_flip" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_13_flip">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260909_14_encryption" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_14_encryption" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_14_encryption">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260909_15_jusephus" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_15_jusephus" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_15_jusephus">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260909_16_swap_bits" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260909_16_swap_bits" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260909_16_swap_bits">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260917_01" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260917_01" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260917_01">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260917_02_subway" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260917_02_subway" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260917_02_subway">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260917_03" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260917_03" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260917_03">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260917_04" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260917_04" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260917_04">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260917_05_vote" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260917_05_vote" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260917_05_vote">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260923_01_bike_or_walk" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260923_01_bike_or_walk" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260923_01_bike_or_walk">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260923_02_draw_rectangles" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260923_02_draw_rectangles" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260923_02_draw_rectangles">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260923_03" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260923_03" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260923_03">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="cs101__dh_20260923_04_lamps" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="cs101__dh_20260923_04_lamps" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="cs101__dh_20260923_04_lamps">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
@@ -533,37 +573,62 @@
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0201_dictionary" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0201_dictionary" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0201_dictionary"> <configuration name="dsa__ch2_linear_list__dsa_0201_dictionary" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0201_dictionary" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0201_dictionary">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0202_card_stacking" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0202_card_stacking" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0202_card_stacking"> <configuration name="dsa__ch2_linear_list__dsa_0202_card_stacking" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0202_card_stacking" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0202_card_stacking">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0203_string_insertion" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0203_string_insertion" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0203_string_insertion"> <configuration name="dsa__ch2_linear_list__dsa_0203_string_insertion" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0203_string_insertion" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0203_string_insertion">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0204_prefix_cycle" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0204_prefix_cycle" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0204_prefix_cycle"> <configuration name="dsa__ch2_linear_list__dsa_0204_prefix_cycle" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0204_prefix_cycle" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0204_prefix_cycle">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0205_polynomial_addition" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0205_polynomial_addition" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0205_polynomial_addition"> <configuration name="dsa__ch2_linear_list__dsa_0205_polynomial_addition" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0205_polynomial_addition" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0205_polynomial_addition">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0206_binary_query" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0206_binary_query" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0206_binary_query"> <configuration name="dsa__ch2_linear_list__dsa_0206_binary_query" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0206_binary_query" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0206_binary_query">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="dsa__linear_list__dsa_0217_magic_square" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__linear_list__dsa_0217_magic_square" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__linear_list__dsa_0217_magic_square"> <configuration name="dsa__ch2_linear_list__dsa_0217_magic_square" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch2_linear_list__dsa_0217_magic_square" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch2_linear_list__dsa_0217_magic_square">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="dsa__ch3_stack_queue__dsa_0301_sliding_window" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch3_stack_queue__dsa_0301_sliding_window" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch3_stack_queue__dsa_0301_sliding_window">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="dsa__ch3_stack_queue__dsa_0302_calculator" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch3_stack_queue__dsa_0302_calculator" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch3_stack_queue__dsa_0302_calculator">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="dsa__ch3_stack_queue__dsa_0302_calculator_WRONG" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch3_stack_queue__dsa_0302_calculator_WRONG" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch3_stack_queue__dsa_0302_calculator_WRONG">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
<configuration name="dsa__ch3_stack_queue__dsa_0306_stack_operation" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="exercises" TARGET_NAME="dsa__ch3_stack_queue__dsa_0306_stack_operation" CONFIG_NAME="Debug-GCC" RUN_TARGET_PROJECT_NAME="exercises" RUN_TARGET_NAME="dsa__ch3_stack_queue__dsa_0306_stack_operation">
<method v="2"> <method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" /> <option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method> </method>
@@ -783,7 +848,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="dh_20260909_11_count_digits_init" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="dh_00_11_count_digits_init" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="exercises" /> <module name="exercises" />
<option name="ENV_FILES" value="" /> <option name="ENV_FILES" value="" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
@@ -798,7 +863,31 @@
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="DEBUG_JUST_MY_CODE" value="false" /> <option name="DEBUG_JUST_MY_CODE" value="false" />
<option name="RUN_TOOL" value="" /> <option name="RUN_TOOL" value="" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/cs101/dh_20260909_11_count_digits_init.py" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/cs101/dh_00_11_count_digits_init.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="dh_04_04_balloons_init1" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="exercises" />
<option name="ENV_FILES" value="" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/cs101" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="DEBUG_JUST_MY_CODE" value="false" />
<option name="RUN_TOOL" value="" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/cs101/dh_04_04_balloons_init1.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
@@ -833,57 +922,66 @@
<method v="2" /> <method v="2" />
</configuration> </configuration>
<list> <list>
<item itemvalue="CMake 应用程序._others__jzh__jzh_c1_h" />
<item itemvalue="CMake 应用程序._others__jzh__jzh_e2_j" />
<item itemvalue="CMake 应用程序._others__qyz__gdbh" />
<item itemvalue="CMake 应用程序._others__qyz__test" />
<item itemvalue="CMake 应用程序.cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdC__CMakeCCompilerId" />
<item itemvalue="CMake 应用程序.cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdCXX__CMakeCXXCompilerId" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_05_sum_fractions" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_10_smaller_numbers" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_12_bottle_exchange" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_13_flip" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_14_encryption" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_15_jusephus" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_16_swap_bits" />
<item itemvalue="CMake 应用程序.cs101__dh_20260917_01" />
<item itemvalue="CMake 应用程序.cs101__dh_20260917_02_subway" />
<item itemvalue="CMake 应用程序.cs101__dh_20260917_03" />
<item itemvalue="CMake 应用程序.cs101__dh_20260917_04" />
<item itemvalue="CMake 应用程序.cs101__dh_20260917_05_vote" />
<item itemvalue="CMake 应用程序.cs101__dh_20260923_01_bike_or_walk" />
<item itemvalue="CMake 应用程序.cs101__dh_20260923_02_draw_rectangles" />
<item itemvalue="CMake 应用程序.cs101__dh_20260923_03" />
<item itemvalue="CMake 应用程序.cs101__dh_20260923_04_lamps" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_11_count_digits_CACHED" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE_BETTER" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_PINGPONG" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2006S_jinming_budget_dp_knapsack" />
<item itemvalue="CMake 应用程序.dp__NOIP1996S_miner_dp" />
<item itemvalue="CMake 应用程序.dp__NOIP1996S_miner_dp_MWASTE" />
<item itemvalue="CMake 应用程序.dp__SHOI2002_ski_dp" />
<item itemvalue="CMake 应用程序.dp__TJOI2007_walk_segments_dp" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0201_dictionary" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0202_card_stacking" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0203_string_insertion" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0204_prefix_cycle" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0205_polynomial_addition" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0206_binary_query" />
<item itemvalue="CMake 应用程序.dsa__linear_list__dsa_0217_magic_square" />
<item itemvalue="CMake 应用程序.graph__ECNA2001_sort_letters" />
<item itemvalue="CMake 应用程序.graph__luogu_P3916_graph_iteration" />
<item itemvalue="CMake 应用程序.graph__luogu_P3916_graph_iteration_WRONG" />
<item itemvalue="CMake 应用程序.graph__USACO06DECs_cow_picnic" />
<item itemvalue="CMake 应用程序.JLOI2009_binary_tree" />
<item itemvalue="CMake 应用程序.JLOI2009_binary_tree_GIVEUP" /> <item itemvalue="CMake 应用程序.JLOI2009_binary_tree_GIVEUP" />
<item itemvalue="CMake 应用程序.lc_135_candy" /> <item itemvalue="CMake 应用程序.JLOI2009_binary_tree" />
<item itemvalue="CMake 应用程序.luogu_ez_B3628" />
<item itemvalue="CMake 应用程序.luogu_P1160_biodir_linked_list" />
<item itemvalue="CMake 应用程序.luogu_template_dsu_P3367" />
<item itemvalue="CMake 应用程序.NOIP2003J_bigint" /> <item itemvalue="CMake 应用程序.NOIP2003J_bigint" />
<item itemvalue="CMake 应用程序.NOIP2016J_bay" /> <item itemvalue="CMake 应用程序.NOIP2016J_bay" />
<item itemvalue="CMake 应用程序.SHOI2002_ski_WRONG" />
<item itemvalue="CMake 应用程序.SHOI2002_ski" />
<item itemvalue="CMake 应用程序._others__jzh__jzh_c1_h" />
<item itemvalue="CMake 应用程序._others__jzh__jzh_e2_j" />
<item itemvalue="CMake 应用程序._others__others_test" />
<item itemvalue="CMake 应用程序.cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdCXX__CMakeCXXCompilerId" />
<item itemvalue="CMake 应用程序.cs101__dh_00_05_sum_fractions" />
<item itemvalue="CMake 应用程序.cs101__dh_00_10_smaller_numbers" />
<item itemvalue="CMake 应用程序.cs101__dh_00_12_bottle_exchange" />
<item itemvalue="CMake 应用程序.cs101__dh_00_13_flip" />
<item itemvalue="CMake 应用程序.cs101__dh_00_14_encryption" />
<item itemvalue="CMake 应用程序.cs101__dh_00_15_jusephus" />
<item itemvalue="CMake 应用程序.cs101__dh_00_16_swap_bits" />
<item itemvalue="CMake 应用程序.cs101__dh_01_01" />
<item itemvalue="CMake 应用程序.cs101__dh_01_02_subway" />
<item itemvalue="CMake 应用程序.cs101__dh_01_03" />
<item itemvalue="CMake 应用程序.cs101__dh_01_04" />
<item itemvalue="CMake 应用程序.cs101__dh_01_05_vote" />
<item itemvalue="CMake 应用程序.cs101__dh_03_01_bike_or_walk" />
<item itemvalue="CMake 应用程序.cs101__dh_03_02_draw_rectangles" />
<item itemvalue="CMake 应用程序.cs101__dh_03_03" />
<item itemvalue="CMake 应用程序.cs101__dh_03_04_lamps" />
<item itemvalue="CMake 应用程序.cs101__dh_03_05_perfect_cubes" />
<item itemvalue="CMake 应用程序.cs101__dh_04_01_fibonacci" />
<item itemvalue="CMake 应用程序.cs101__sh_04_04_balloons" />
<item itemvalue="CMake 应用程序.cmake-build-debug-gcc__CMakeFiles__4.3.1__CompilerIdC__CMakeCCompilerId" />
<item itemvalue="CMake 应用程序.cs101__dh_20260909_11_count_digits_CACHED" />
<item itemvalue="CMake 应用程序.dp__NOIP1996S_miner_dp_MWASTE" />
<item itemvalue="CMake 应用程序.dp__NOIP1996S_miner_dp" />
<item itemvalue="CMake 应用程序.dp__SHOI2002_ski_dp" />
<item itemvalue="CMake 应用程序.dp__TJOI2007_walk_segments_dp" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0201_dictionary" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0202_card_stacking" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0203_string_insertion" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0204_prefix_cycle" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0205_polynomial_addition" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0206_binary_query" />
<item itemvalue="CMake 应用程序.dsa__ch2_linear_list__dsa_0217_magic_square" />
<item itemvalue="CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window" />
<item itemvalue="CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW" />
<item itemvalue="CMake 应用程序.dsa__ch3_stack_queue__dsa_0302_calculator" />
<item itemvalue="CMake 应用程序.dsa__ch3_stack_queue__dsa_0302_calculator_WRONG" />
<item itemvalue="CMake 应用程序.dsa__ch3_stack_queue__dsa_0306_stack_operation" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE_BETTER" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_MWASTE" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack_PINGPONG" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2005J_herbs_dp_knapsack" />
<item itemvalue="CMake 应用程序.dp__backpack_dp__NOIP2006S_jinming_budget_dp_knapsack" />
<item itemvalue="CMake 应用程序.graph__ECNA2001_sort_letters" />
<item itemvalue="CMake 应用程序.graph__USACO06DECs_cow_picnic" />
<item itemvalue="CMake 应用程序.graph__luogu_P3916_graph_iteration_WRONG" />
<item itemvalue="CMake 应用程序.graph__luogu_P3916_graph_iteration" />
<item itemvalue="CMake 应用程序.lc_135_candy" />
<item itemvalue="CMake 应用程序.luogu_P1160_biodir_linked_list" />
<item itemvalue="CMake 应用程序.luogu_ez_B3628" />
<item itemvalue="CMake 应用程序.luogu_template_dsu_P3367" />
<item itemvalue="CMake 应用程序.pojcs101_E01003" /> <item itemvalue="CMake 应用程序.pojcs101_E01003" />
<item itemvalue="CMake 应用程序.pojcs101_E01218" /> <item itemvalue="CMake 应用程序.pojcs101_E01218" />
<item itemvalue="CMake 应用程序.pojcs101_E02883" /> <item itemvalue="CMake 应用程序.pojcs101_E02883" />
@@ -911,21 +1009,21 @@
<item itemvalue="CMake 应用程序.pojcs101_T12559_biggest_smallest_combination_WRONG" /> <item itemvalue="CMake 应用程序.pojcs101_T12559_biggest_smallest_combination_WRONG" />
<item itemvalue="CMake 应用程序.pojcs101_T12559_biggest_smallest_combination" /> <item itemvalue="CMake 应用程序.pojcs101_T12559_biggest_smallest_combination" />
<item itemvalue="CMake 应用程序.pojcs101_T27104_chicken_monitors" /> <item itemvalue="CMake 应用程序.pojcs101_T27104_chicken_monitors" />
<item itemvalue="CMake 应用程序.pojcs101_T27373_biggest_combination_t2" />
<item itemvalue="CMake 应用程序.pojcs101_T27373_biggest_combination_t2_TLE" /> <item itemvalue="CMake 应用程序.pojcs101_T27373_biggest_combination_t2_TLE" />
<item itemvalue="CMake 应用程序.SHOI2002_ski" /> <item itemvalue="CMake 应用程序.pojcs101_T27373_biggest_combination_t2" />
<item itemvalue="CMake 应用程序.SHOI2002_ski_WRONG" />
<item itemvalue="CMake 应用程序.pojcs101_M02746_josephus_problem_simulation" /> <item itemvalue="CMake 应用程序.pojcs101_M02746_josephus_problem_simulation" />
<item itemvalue="Python.dh_20260909_11_count_digits_init" /> <item itemvalue="Python.dh_04_04_balloons_init1" />
<item itemvalue="Python.NOI2001_food_chain_dsu" /> <item itemvalue="Python.NOI2001_food_chain_dsu" />
<item itemvalue="Python.dh_00_11_count_digits_init" />
<item itemvalue="Python.pojcs101_M03247_palindromic_prime_init1" /> <item itemvalue="Python.pojcs101_M03247_palindromic_prime_init1" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python.dh_04_04_balloons_init1" />
<item itemvalue="CMake 应用程序.pojcs101_M02746_josephus_problem_simulation" /> <item itemvalue="CMake 应用程序.pojcs101_M02746_josephus_problem_simulation" />
<item itemvalue="Python.pojcs101_M03247_palindromic_prime_init1" /> <item itemvalue="Python.pojcs101_M03247_palindromic_prime_init1" />
<item itemvalue="Python.NOI2001_food_chain_dsu" /> <item itemvalue="Python.NOI2001_food_chain_dsu" />
<item itemvalue="Python.dh_20260909_11_count_digits_init" /> <item itemvalue="Python.dh_00_11_count_digits_init" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
@@ -939,7 +1037,7 @@
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0202_card_stacking", "##RUN_CONFIGURATION##": "CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
@@ -953,14 +1051,14 @@
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_02_subway", "##RUN_CONFIGURATION##": "CMake 应用程序.dsa__ch3_stack_queue__dsa_0301_sliding_window_SLOW",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0206_binary_query", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_02_subway",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
@@ -974,7 +1072,7 @@
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_04", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_05_perfect_cubes",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
@@ -986,6 +1084,13 @@
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_04",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.NOIP2016J_bay", "##RUN_CONFIGURATION##": "CMake 应用程序.NOIP2016J_bay",
@@ -1002,7 +1107,7 @@
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0205_polynomial_addition", "##RUN_CONFIGURATION##": "CMake 应用程序.dsa__ch3_stack_queue__dsa_0302_calculator",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
@@ -1042,27 +1147,6 @@
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0217_magic_square",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序._others__qyz__gdbh",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0204_prefix_cycle",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_02_draw_rectangles", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_02_draw_rectangles",
@@ -1070,6 +1154,13 @@
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__sh_20260923_14_balloons",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260909_12_bottle_exchange", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260909_12_bottle_exchange",
@@ -1079,14 +1170,14 @@
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__linear_list__dsa_0201_dictionary", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_03",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260917_03", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_04_lamps",
"cmake": "CMakeBuildProfile:Debug-GCC" "cmake": "CMakeBuildProfile:Debug-GCC"
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
@@ -1112,6 +1203,13 @@
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.dsa__ch3_stack_queue__dsa_0306_stack_operation",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260909_15_jusephus", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260909_15_jusephus",
@@ -1140,6 +1238,19 @@
}, },
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
}, },
{
"first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_11_fibonacci",
"cmake": "CMakeBuildProfile:Debug-GCC"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{
"first": {
"##RUN_CONFIGURATION##": "Python.dh_20260923_14_balloons_init1"
},
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
},
{ {
"first": { "first": {
"##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_01_bike_or_walk", "##RUN_CONFIGURATION##": "CMake 应用程序.cs101__dh_20260923_01_bike_or_walk",
@@ -1148,7 +1259,7 @@
"second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5" "second": "2c1c9069-eeff-46e4-9092-db62e2b1ded5"
} }
], ],
"modificationCount": 133 "modificationCount": 154
}]]></component> }]]></component>
<component name="SharedIndexes"> <component name="SharedIndexes">
<attachedChunks> <attachedChunks>
@@ -1186,7 +1297,8 @@
<MESSAGE value="1" /> <MESSAGE value="1" />
<MESSAGE value="Update CMakeLists.txt" /> <MESSAGE value="Update CMakeLists.txt" />
<MESSAGE value="some programs" /> <MESSAGE value="some programs" />
<option name="LAST_COMMIT_MESSAGE" value="some programs" /> <MESSAGE value="some programs!" />
<option name="LAST_COMMIT_MESSAGE" value="some programs!" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
@@ -1196,6 +1308,11 @@
<line>75</line> <line>75</line>
<option name="timeStamp" value="6" /> <option name="timeStamp" value="6" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/cs101/dh_04_04_balloons_init1.py</url>
<line>9</line>
<option name="timeStamp" value="59" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType"> <line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/pojcs101_M03441_sum_zero.cpp</url> <url>file://$PROJECT_DIR$/pojcs101_M03441_sum_zero.cpp</url>
<line>32</line> <line>32</line>
@@ -1217,22 +1334,47 @@
<option name="timeStamp" value="36" /> <option name="timeStamp" value="36" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType"> <line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/dsa/linear_list/dsa_0202_card_stacking.cpp</url> <url>file://$PROJECT_DIR$/dsa/ch2_linear_list/dsa_0202_card_stacking.cpp</url>
<line>40</line> <line>40</line>
<option name="timeStamp" value="43" /> <option name="timeStamp" value="43" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType"> <line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/cs101/dh_20260917_01.cpp</url> <url>file://$PROJECT_DIR$/cs101/dh_01_01.cpp</url>
<line>5</line> <line>5</line>
<option name="timeStamp" value="44" /> <option name="timeStamp" value="44" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/cs101/dh_03_05_perfect_cubes.cpp</url>
<line>43</line>
<option name="timeStamp" value="48" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0301_sliding_window.cpp</url>
<line>69</line>
<option name="timeStamp" value="49" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0306_stack_operation.cpp</url>
<line>24</line>
<option name="timeStamp" value="50" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0302_calculator_WRONG.cpp</url>
<line>99</line>
<option name="timeStamp" value="56" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/dsa/ch3_stack_queue/dsa_0302_calculator.cpp</url>
<line>102</line>
<option name="timeStamp" value="57" />
</line-breakpoint>
<line-breakpoint enabled="true" type="com.jetbrains.cidr.execution.debugger.OCBreakpointType">
<url>file://$PROJECT_DIR$/cs101/sh_04_04_balloons.cpp</url>
<line>10</line>
<option name="timeStamp" value="61" />
</line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
<watches-manager>
<configuration name="CMakeRunConfiguration">
<watch expression="grid" language="C++" />
</configuration>
</watches-manager>
</component> </component>
<component name="XSLT-Support.FileAssociations.UIState"> <component name="XSLT-Support.FileAssociations.UIState">
<expand /> <expand />
+1 -1
View File
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.10)
project(exercises C CXX) project(exercises C CXX)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
+50
View File
@@ -0,0 +1,50 @@
#include <stdio.h>
int main() {
long long T; //注意变量都要初始化 ,T为数组个数
scanf("%lld", &T); //数组个数,决定过程要执行多少次
for (int i = 0; i < T; i++) {
long long n, m, bianhao, yushu, max = -1, index; //注意变量都要初始化,n为包裹个数,m为箱子个数,result是余数,max是装的最多
//以上变量必须定义在循环里,因为一组过后所有数据要重新开始!要不然max,index值未清除!
scanf("%lld%lld", &n, &m); //键入包裹的个数和箱子的个数
long long Amount[m], number[n]; //Amount是定义对应的箱子里装几个 ,number是用数组记录包裹的“编号”
//禁止写错数组个数!
for (int j = 0; j < m; j++) //初始化箱子数组 ,注意数组是m个
{
Amount[j] = 0;
}
for (int k = 0; k < n; k++) //把包裹赋值,记录到number里 注意数组是n个
{
scanf("%lld", &bianhao);
number[k] = bianhao;
}
for (int s = 0; s < n; s++) //进行mol m运算,余数计入number里
{
yushu = number[s] % m;
Amount[yushu] = Amount[yushu] + 1;
}
for (int t = 0; t < m; t++) //此循环计算哪个箱子装的最多
{
//max=-1;错误 在循环里定义会导致max每走一个t都会被重置!
if (max < Amount[t]) {
max = Amount[t];
}
}
for (int u = 0; u < m; u++) //此循环寻找下标
{
if (Amount[u] == max) {
index = u;
break;
}
}
for (int v = 0; v < m; v++) //此循环输出amount数组里各个元素的大小
{
printf("%lld ", Amount[v]);
}
printf("\n");
printf("%lld %lld", index, max);
printf("\n");
}
return 0;
}
-43
View File
@@ -1,43 +0,0 @@
#include <iostream>
using namespace std;
int primes[2001];
bool is_prime(int a) {
for (int i = 2; i * i <= a; i++) {
if (a % i != 0) {
continue;
} else {
return false;
}
}
return true;
}
void init_primes() {
int current_num = 2, i = 0;
for (;; current_num++) {
if (is_prime(current_num)) {
primes[i] = current_num;
i++;
}
}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int a;
cin >> a;
if (a % 2 != 0 || a < 6) {
cout << "Error!" << endl;
} else
for (int i = 0; primes[i] <= a / 2; i++) {
if (is_prime(a - primes[i])) {
cout << a << "=" << i << "+" << a - i << endl;
}
}
return 0;
}
-18
View File
@@ -1,18 +0,0 @@
#include <iostream>
using namespace std;
// x[0]..x[99]
bool is_prime(int n) {
for (int i=2; i*i<=n; i++) {
if (n%i == 0) {return false;}
}
return true;
}
int main() {
cout << is_prime(4);
return 0;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+54
View File
@@ -0,0 +1,54 @@
#include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>
struct PerfectCubeNumber {
int num = 0;
std::tuple<int, int, int> children;
constexpr bool operator<(const PerfectCubeNumber& other) const {
return std::tie(num, children) < std::tie(other.num, other.children);
}
};
constexpr int MAX_N = 101;
std::vector<PerfectCubeNumber> perfect_cube_numbers;
int n;
constexpr int cubes_sum(int a, int b, int c) {
return a * a * a + b * b * b + c * c * c;
}
void init_numbers() {
for (int a = 2; a < MAX_N; a++) {
for (int b = a; b < MAX_N; b++) {
for (int c = b; ; c++) {
const int x_cube = cubes_sum(a, b, c);
if (x_cube > MAX_N * MAX_N * MAX_N) { break; }
for (int x = std::floor(std::cbrt(x_cube)), i = 0; i < 3; x++, i++) {
if (x * x * x == x_cube) {
perfect_cube_numbers.push_back({x, std::tuple(a, b, c)});
}
}
}
}
}
std::sort(perfect_cube_numbers.begin(), perfect_cube_numbers.end());
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
init_numbers();
std::cin >> n;
for (const auto [num, children] : perfect_cube_numbers) {
if (num > n) { break; }
auto [a,b,c] = children;
std::cout << "Cube = " << num << ", Triple = (" << a << "," << b << "," << c << ")" << std::endl;
}
return 0;
}
+31
View File
@@ -0,0 +1,31 @@
#include <iostream>
#include <array>
constexpr int MAX_N = 21;
// 编译期生成斐波那契数列
constexpr std::array<int, MAX_N> make_fib() {
std::array<int, MAX_N> fib{}; // 零初始化
fib[0] = 1;
fib[1] = 1;
for (int i = 2; i < MAX_N; ++i) {
fib[i] = fib[i - 1] + fib[i - 2];
}
return fib;
}
static constexpr auto fib = make_fib();
int x;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> x;
while (std::cin >> x) {
std::cout << fib[x - 1] << std::endl;
}
return 0;
}
+17
View File
@@ -0,0 +1,17 @@
def solve(n: int) -> int:
balloons = [i for i in range(1, n + 1)]
while True:
deleted_amount = 0
for x in range(1, n):
if len(balloons) <= x * x - deleted_amount - 1 or len(balloons) == 1:
break
del balloons[x * x - deleted_amount - 1]
deleted_amount += 1
if len(balloons) == 1:
break
return balloons[0]
if __name__ == '__main__':
for n in range(1, 1150):
print(n, "->", solve(n))
+26
View File
@@ -0,0 +1,26 @@
/*
* 本来想打表的,打着打着发现了一些数学规律。具体怎么证明嘛……🤷‍
*/
#include <iostream>
#include <cmath>
constexpr size_t MAX_N = 10001;
int get_ans(int n) {
const int k = ceil(-0.5 + 0.5 * sqrt(4 * n + 1));
const bool extra = k * k < n;
const int ans = k * (k - 1) + 1 + k * extra;
return ans;
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n;
std::cin >> n;
std::cout << get_ans(n) << std::endl;
return 0;
}
@@ -0,0 +1,111 @@
#include <algorithm>
#include <iostream>
#include <queue>
constexpr size_t MAX_N = 1e6 + 1;
constexpr unsigned long long SOLVE_1_THRESHOLD = 0;
template <typename T>
class QueueWithMinMax {
protected:
std::deque<T> max_queue, min_queue;
// std::priority_queue<T, std::vector<T>, std::greater<>> min_queue;
public:
std::queue<T> q;
void push(const T& x) {
q.push(x);
while (!max_queue.empty() && max_queue.back() < x) {
max_queue.pop_back();
}
max_queue.push_back(x);
while (!min_queue.empty() && min_queue.back() > x) {
min_queue.pop_back();
}
min_queue.push_back(x);
}
void pop() {
if (!max_queue.empty() && q.front() >= max_queue.front()) {
max_queue.pop_front();
}
if (!min_queue.empty() && q.front() <= min_queue.front()) {
min_queue.pop_front();
}
q.pop();
}
[[nodiscard]] T front() const { return q.front(); }
[[nodiscard]] T get_max() const {
return max_queue.front();
}
[[nodiscard]] T get_min() const {
return min_queue.front();
}
};
int n, window_length;
int nums[MAX_N], max_nums[MAX_N], min_nums[MAX_N];
QueueWithMinMax<int> queue;
void solve_1() {
for (int i = 0; i + window_length <= n; i++) {
max_nums[i] = *std::max_element(nums + i, nums + i + window_length);
min_nums[i] = *std::min_element(nums + i, nums + i + window_length);
}
}
void solve_2() {
for (int i = 0; i < window_length; i++) {
queue.push(nums[i]);
}
for (int i = 0; i + window_length < n; i++) {
max_nums[i] = queue.get_max();
min_nums[i] = queue.get_min();
queue.pop();
queue.push(nums[i + window_length]);
}
max_nums[n - window_length] = queue.get_max();
min_nums[n - window_length] = queue.get_min();
}
void print_ans() {
for (int i = 0; i <= n - window_length; i++) {
std::cout << min_nums[i] << " ";
}
std::cout << std::endl;
for (int i = 0; i <= n - window_length; i++) {
std::cout << max_nums[i] << " ";
}
std::cout << std::endl;
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> n >> window_length;
if (window_length > n) { window_length = n; }
for (int i = 0; i < n; i++) {
std::cin >> nums[i];
}
if (1ll * n * window_length < SOLVE_1_THRESHOLD) {
solve_1();
} else {
solve_2();
}
// solve_1();
// print_ans();
// solve_2();
print_ans();
return 0;
}
@@ -0,0 +1,38 @@
#include <algorithm>
#include <iostream>
#include <queue>
constexpr size_t MAX_N = 1e6 + 1;
int n, window_length;
int nums[MAX_N], max_nums[MAX_N], min_nums[MAX_N];
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> n >> window_length;
if (window_length > n) { window_length = n; }
for (int i = 0; i < n; i++) {
std::cin >> nums[i];
}
for (int i = 0; i + window_length <= n; i++) {
max_nums[i] = *std::max_element(nums + i, nums + i + window_length);
min_nums[i] = *std::min_element(nums + i, nums + i + window_length);
}
for (int i = 0; i <= n - window_length; i++) {
std::cout << min_nums[i] << " ";
}
std::cout << std::endl;
for (int i = 0; i <= n - window_length; i++) {
std::cout << max_nums[i] << " ";
}
std::cout << std::endl;
return 0;
}
+165
View File
@@ -0,0 +1,165 @@
#include <iostream>
#include <stack>
#include <vector>
#include <variant>
#include <cassert>
class Token {
protected:
std::variant<char, int> token_variant_;
public:
explicit Token(char c) : token_variant_(c) {}
explicit Token(int x) : token_variant_(x) {}
[[nodiscard]] bool is_operator() const {
return std::holds_alternative<char>(token_variant_);
}
[[nodiscard]] char get_operator() const {
if (!is_operator()) { throw std::invalid_argument("Not an operator"); }
return std::get<char>(token_variant_);
}
[[nodiscard]] int get_number() const {
if (is_operator()) { throw std::invalid_argument("Is an operator"); }
return std::get<int>(token_variant_);
}
[[nodiscard]] int get_priority() const {
if (get_operator() == '+' || get_operator() == '-') { return 1; }
if (get_operator() == '*' || get_operator() == '/') { return 2; }
throw std::invalid_argument("Unknown priority");
}
template <typename T1, typename T2>
[[nodiscard]] auto calc_operator(T1 a, T2 b) const {
switch (get_operator()) {
case '+': return a + b;
case '-': return a - b;
case '*': return a * b;
case '/': return a / b;
default: throw std::invalid_argument("Uncalculatable operator");
}
}
bool operator==(char c) const {
if (!is_operator()) { return false; }
return get_operator() == c;
}
bool operator==(int x) const {
if (is_operator()) { return false; }
return get_number() == x;
}
template <typename T>
bool operator!=(T x) {
return !(*this == x);
}
friend std::ostream& operator<<(std::ostream& os, Token token) {
if (token.is_operator()) {
os << token.get_operator();
} else {
os << '[' << token.get_number() << ']';
}
return os;
}
};
using Expression = std::vector<Token>;
std::ostream& operator<<(std::ostream& os, const Expression& expression) {
for (const auto& token : expression) {
os << token;
}
return os;
}
Expression parse_string(const std::string& str) {
Expression expression;
std::string temp_token;
for (char c : str) {
if (!(c >= '0' && c <= '9')) {
if (!temp_token.empty()) {
expression.emplace_back(std::stoi(temp_token));
temp_token.clear();
}
expression.emplace_back(c);
} else {
temp_token += c;
}
}
if (!temp_token.empty()) { expression.emplace_back(std::stoi(temp_token)); }
return expression;
}
Expression convert_to_postfix(const Expression& infix_expression) {
Expression postfix_expression;
std::stack<Token> operators;
for (const auto& token : infix_expression) {
if (!token.is_operator()) {
postfix_expression.push_back(token);
continue;
}
if (token.get_operator() == '(') {
operators.push(token);
continue;
}
if (token.get_operator() == ')') {
while (operators.top().get_operator() != '(') {
postfix_expression.push_back(operators.top());
operators.pop();
}
operators.pop();
continue;
}
while (!operators.empty() && operators.top() != '('
&& token.get_priority() <= operators.top().get_priority()) {
postfix_expression.push_back(operators.top());
operators.pop();
}
operators.push(token);
}
while (!operators.empty()) {
postfix_expression.push_back(operators.top());
operators.pop();
}
return postfix_expression;
}
int calculate_postfix(const Expression& postfix_expression) {
std::stack<int> numbers;
for (const auto& token : postfix_expression) {
if (!token.is_operator()) {
numbers.push(token.get_number());
continue;
}
int b = numbers.top();
numbers.pop();
int a = numbers.top();
numbers.pop();
numbers.push(token.calc_operator(a, b));
}
assert(numbers.size() == 1);
return numbers.top();
}
std::string s;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> s;
while (std::cin >> s) {
Expression infix_expression = parse_string(s);
std::clog << infix_expression << std::endl;
Expression postfix_expression = convert_to_postfix(infix_expression);
std::cout << calculate_postfix(postfix_expression) << std::endl;
}
return 0;
}
@@ -0,0 +1,137 @@
#include <cassert>
#include <iostream>
#include <sstream>
#include <variant>
#include <vector>
#include <optional>
#include <stack>
struct Token {
std::variant<char, int> token;
explicit Token(char c) : token(c) {}
explicit Token(int x) : token(x) {}
[[nodiscard]] bool is_operator() const {
return std::holds_alternative<char>(token);
}
[[nodiscard]] char get_operator() const {
if (!is_operator()) { throw std::invalid_argument("Not an operator"); }
return std::get<char>(token);
}
[[nodiscard]] int get_number() const {
if (is_operator()) { throw std::invalid_argument("Is an operator"); }
return std::get<int>(token);
}
bool operator==(char c) const {
if (!is_operator()) { return false; }
return get_operator() == c;
}
bool operator==(int x) const {
if (is_operator()) { return false; }
return get_number() == x;
}
template <typename T>
bool operator!=(T x) {
return !(*this == x);
}
};
using Expression = std::vector<Token>;
Expression parse_string(const std::string& str) {
Expression expression;
std::string temp_token;
for (char c : str) {
if (!(c > '0' && c < '9')) {
if (!temp_token.empty()) {
expression.emplace_back(std::stoi(temp_token));
temp_token.clear();
}
expression.emplace_back(c);
} else {
temp_token += c;
}
}
if (!temp_token.empty()) { expression.emplace_back(std::stoi(temp_token)); }
return expression;
}
void calculate_chunk(std::stack<Token>& undealt_tokens, std::stack<Token>& ready_tokens) {
while (!undealt_tokens.empty() && undealt_tokens.top() != '(') {
ready_tokens.push(undealt_tokens.top());
undealt_tokens.pop();
}
int temp_result = ready_tokens.top().get_number();
ready_tokens.pop();
while (!ready_tokens.empty()) {
char op = ready_tokens.top().get_operator();
ready_tokens.pop();
if (op == '+') {
temp_result += ready_tokens.top().get_number();
} else if (op == '-') {
temp_result -= ready_tokens.top().get_number();
} else {
throw std::logic_error("Unexpected operator token in chunk.");
}
ready_tokens.pop();
}
if (!undealt_tokens.empty()) {
undealt_tokens.pop();
}
undealt_tokens.emplace(temp_result);
}
int calculate(const Expression& expression) {
// 策略:
// 遇到 * / 直接算(本质上是把上一个子 expression 倒栈)
// 遇到右括号 / 结尾开始倒栈
// 对于倒栈,只剩下 +- 需要处理。
std::stack<Token> undealt_tokens, ready_tokens;
std::optional<Token> temp_token;
for (const auto& token : expression) {
if (token == '*' || token == '/') {
temp_token = token;
continue;
}
if (temp_token.has_value()) {
int a = undealt_tokens.top().get_number();
undealt_tokens.pop();
undealt_tokens.emplace(
temp_token == '*' ? a * token.get_number() : a / token.get_number()
);
temp_token.reset();
continue;
}
if (token == ')') {
calculate_chunk(undealt_tokens, ready_tokens);
continue;
}
undealt_tokens.push(token);
}
calculate_chunk(undealt_tokens, ready_tokens);
assert(undealt_tokens.size() == 1);
return undealt_tokens.top().get_number();
}
int n;
std::string s;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> n;
for (int _ = 0; _ < n; _++) {
std::cin >> s;
std::cout << calculate(parse_string(s)) << std::endl;
}
return 0;
}
@@ -0,0 +1,46 @@
#include <iostream>
#include <stack>
#include <vector>
using Operation = std::pair<bool, int>;
int n, idx = 0;
std::stack<int> stack;
std::vector<int> sequence;
std::vector<Operation> operation_log;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> n;
operation_log.reserve(2 * n);
sequence.resize(n);
for (int i = 0; i < n; i++) {
std::cin >> sequence[i];
}
for (int current_num = 1; current_num <= n;) {
while ((stack.empty() || stack.top() != sequence[idx]) && current_num <= n) {
stack.push(current_num);
operation_log.emplace_back(false, current_num);
current_num++;
}
while (!stack.empty() && stack.top() == sequence[idx]) {
stack.pop();
operation_log.emplace_back(true, sequence[idx]);
idx++;
}
}
if (!stack.empty()) {
std::cout << "NO" << std::endl;
} else {
for (const auto [op, x] : operation_log) {
std::cout << (op ? "POP " : "PUSH ") << x << std::endl;
}
}
return 0;
}