├── P01D06-develop ├── CHANGELOG ├── src │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ └── 7 principles of structural programming.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── pong.png │ │ │ └── dayp01.png │ └── rus │ │ └── images │ │ ├── pong.png │ │ └── dayp01.png ├── code-samples │ ├── .gitkeep │ └── one_dimensional_graphics.c ├── data-samples │ └── .gitkeep ├── LICENSE └── .gitignore ├── P02D13-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── figures │ │ ├── square.txt │ │ ├── glider.txt │ │ ├── pentomino.txt │ │ ├── stafighter.txt │ │ ├── galactic.txt │ │ ├── glider_gun.txt │ │ └── clock.txt │ └── CPPLINT.cfg ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── glider_emblem.gif │ ├── map.txt │ └── 7 principles of structural programming.md ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── misc │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ └── dayp02.png │ └── rus │ │ └── images │ │ └── dayp02.png ├── LICENSE └── .gitignore ├── T02D02-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── .!1385!history_of_vim.txt │ ├── .!2036!history_of_vim.txt │ ├── .!3073!history_of_vim.txt │ ├── .!3322!history_of_vim.txt │ ├── .!3491!history_of_vim.txt │ ├── .!99250!history_of_vim.txt │ ├── .!99542!history_of_vim.txt │ ├── files.log │ ├── edit.sh │ ├── history_of_vi.txt │ └── log_analyzer.sh ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ └── map.txt ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── rus │ │ └── images │ │ │ ├── scr1.png │ │ │ ├── scr2.png │ │ │ ├── scr3.png │ │ │ ├── day2_box.png │ │ │ ├── day2_door.png │ │ │ ├── web_editor_new_branch.png │ │ │ └── new_issue_from_tracker_list.png │ └── eng │ │ └── images │ │ ├── day2_box.png │ │ └── day2_door.png ├── LICENSE └── .gitignore ├── T03D03-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── hello.c │ ├── named_hello.c │ ├── crack.c │ ├── important_function.c │ ├── float_compare.c │ ├── max.c │ └── arithmetic.c ├── code-samples │ ├── .gitkeep │ └── operations.c ├── data-samples │ ├── .gitkeep │ └── arithmetic │ │ ├── out.txt │ │ └── in.txt ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── type.txt │ ├── themes.txt │ ├── linters │ │ └── CPPLINT.cfg │ ├── operations.txt │ ├── map.txt │ ├── xor.txt │ ├── function.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ ├── .gitkeep │ │ └── GOTO.png │ ├── eng │ │ └── images │ │ │ ├── day3_door.png │ │ │ └── day3_kursor.png │ └── rus │ │ └── images │ │ ├── day3_door.png │ │ └── day3_kursor.png └── LICENSE ├── T04D04-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── quest3.c │ ├── 1948.c │ └── door_function.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── bohm-jacopini-theorem.txt │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day4_door.png │ │ │ └── day4_paper.png │ └── rus │ │ └── images │ │ ├── day4_door.png │ │ └── day4_paper.png ├── LICENSE └── .gitignore ├── T05D08-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── maxmin.c │ └── squaring.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day5_door.png │ │ │ └── day5_pillow.png │ └── rus │ │ └── images │ │ ├── day5_door.png │ │ └── day5_pillow.png ├── LICENSE └── .gitignore ├── T06D09-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── CPPLINT.cfg │ └── sort.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day6_egg.png │ │ │ └── day6_door.png │ └── rus │ │ └── images │ │ ├── day6_egg.png │ │ └── day6_door.png ├── LICENSE └── .gitignore ├── T07D10-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── key10.txt │ ├── CPPLINT.cfg │ ├── sort.c │ └── sort_no_leak.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── misc │ ├── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day7_door.png │ │ │ └── day7_number.png │ └── rus │ │ └── images │ │ ├── day7_door.png │ │ └── day7_number.png ├── LICENSE ├── materials │ ├── [DynAlloc] Array of pointers to arrays.jpg │ ├── linters │ │ └── CPPLINT.cfg │ ├── [DynAlloc] Array of pointers to segments of the second array.jpg │ ├── [DynAlloc] Array of pointers to array segments within one buffer.jpg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md └── .gitignore ├── T08D11-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── sle.txt │ └── CPPLINT.cfg ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day8_door.png │ │ │ └── day8_kapsula.png │ └── rus │ │ └── images │ │ ├── day8_door.png │ │ └── day8_kapsula.png ├── LICENSE └── .gitignore ├── T09D15-0-develop ├── CHANGELOG ├── build │ └── .gitkeep ├── src │ ├── .gitkeep │ ├── data_libs │ │ ├── data_io_macro.h │ │ ├── data_sort.h │ │ ├── data_io.h │ │ ├── data_stat.h │ │ ├── data_sort.c │ │ ├── data_io.c │ │ └── data_stat.c │ ├── yet_another_decision_module │ │ ├── decision.h │ │ ├── decision.c │ │ └── yet_another_decision_module_entry.c │ ├── CPPLINT.cfg │ ├── data_module │ │ ├── data_process.h │ │ ├── data_process.c │ │ └── data_module_entry.c │ └── main_executable_module │ │ └── main_executable_module.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day9_chair.png │ │ │ └── day9_door.png │ └── rus │ │ └── images │ │ ├── day9_chair.png │ │ └── day9_door.png ├── LICENSE └── .gitignore ├── T10D16-0-develop ├── CHANGELOG ├── src │ ├── .gitignore │ ├── CPPLINT.cfg │ ├── s21_string.h │ └── Makefile ├── build │ └── .gitkeep ├── misc │ ├── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day10_book.png │ │ │ └── day10_door.png │ └── rus │ │ └── images │ │ ├── day10_book.png │ │ └── day10_door.png ├── LICENSE ├── materials │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md └── .gitignore ├── T11D17-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── door_struct.h │ ├── CPPLINT.cfg │ ├── stack.h │ ├── Makefile │ ├── stack.c │ ├── stack_test.c │ └── dmanager_module.c ├── build │ └── .gitkeep ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day11_door.png │ │ │ └── day11_sticker.png │ └── rus │ │ └── images │ │ ├── day11_door.png │ │ └── day11_sticker.png ├── LICENSE ├── materials │ ├── polynomial.last │ ├── polynom-as-list.jpg │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 09-06-20.log │ └── 7 principles of structural programming.md └── .gitignore ├── T12D18-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── CPPLINT.cfg │ ├── main_module_entry_point.c │ ├── print_module.h │ ├── bst.h │ ├── documentation_module.h │ ├── bst_traverse_test.c │ ├── documentation_module.c │ ├── bst_create_test.c │ ├── Makefile │ ├── bst_insert_test.c │ └── print_module.c ├── build │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ ├── .gitkeep │ │ ├── GOTO.png │ │ ├── binary_tree.png │ │ └── binary_search_tree.png │ ├── eng │ │ └── images │ │ │ ├── day12_door.png │ │ │ └── day12_leaf.png │ └── rus │ │ └── images │ │ ├── day12_door.png │ │ └── day12_leaf.png ├── LICENSE └── .gitignore ├── T13D22-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── ai_modules │ │ ├── m1.h │ │ ├── m2.h │ │ ├── m1.c │ │ └── m2.c │ ├── CPPLINT.cfg │ ├── file_io.h │ ├── log_levels.h │ ├── encode.h │ ├── logger.h │ ├── cipher.h │ ├── Makefile │ └── file_io.c ├── build │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day13_door.png │ │ │ └── day13_lamp.png │ └── rus │ │ └── images │ │ ├── day13_door.png │ │ └── day13_lamp.png ├── LICENSE └── .gitignore ├── T14D23-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── code.txt │ ├── state_sort.h │ ├── input.h │ ├── CPPLINT.cfg │ ├── sort.h │ ├── Makefile │ └── sort.c ├── build │ └── .gitkeep ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ ├── .gitkeep │ ├── test │ ├── door_state_1 │ ├── door_state_2 │ └── door_state_3 ├── materials │ ├── .gitkeep │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ └── instructions_for_testing.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day14_pc.png │ │ │ └── day14_door.png │ └── rus │ │ └── images │ │ ├── day14_pc.png │ │ └── day14_door.png ├── LICENSE └── .gitignore ├── T15D24-0-develop ├── CHANGELOG ├── src │ ├── .gitkeep │ ├── functions.c │ ├── functions.h │ ├── status_events.h │ ├── shared.h │ ├── database.h │ ├── Makefile │ ├── levels.h │ ├── status_events.c │ ├── modules.h │ ├── db_logs.txt │ ├── libs.h │ └── modules_db.c ├── code-samples │ └── .gitkeep ├── data-samples │ └── .gitkeep ├── datasets │ └── .gitkeep ├── materials │ ├── .gitkeep │ ├── master_levels.db │ ├── master_modules.db │ ├── master_status_events.db │ ├── linters │ │ └── CPPLINT.cfg │ ├── map.txt │ ├── 7 principles of structural programming.md │ ├── instructions_for_testing.md │ └── instructions_for_testing_rus.md ├── misc │ ├── .gitkeep │ ├── images │ │ └── .gitkeep │ ├── eng │ │ └── images │ │ │ ├── GOTO.png │ │ │ ├── day15_door.png │ │ │ └── day15_chairs.png │ └── rus │ │ └── images │ │ ├── day15_door.png │ │ └── day15_chairs.png ├── LICENSE └── .gitignore └── T01D01-0-release-1.0 ├── CHANGELOG ├── src ├── .gitkeep ├── ai_help │ ├── key │ │ ├── part1.key │ │ ├── part11.key │ │ ├── part12.key │ │ ├── part13.key │ │ ├── part14.key │ │ ├── part15.key │ │ ├── part16.key │ │ ├── part17.key │ │ ├── part18.key │ │ ├── part19.key │ │ ├── part2.key │ │ ├── part20.key │ │ ├── part24.key │ │ ├── part25.key │ │ ├── part26.key │ │ ├── part27.key │ │ ├── part28.key │ │ ├── part29.key │ │ ├── part3.key │ │ ├── part30.key │ │ ├── part31.key │ │ ├── part32.key │ │ ├── part33.key │ │ ├── part34.key │ │ ├── part35.key │ │ ├── part36.key │ │ ├── part37.key │ │ ├── part38.key │ │ ├── part39.key │ │ ├── part4.key │ │ ├── part40.key │ │ ├── part41.key │ │ ├── part42.key │ │ ├── part44.key │ │ ├── part45.key │ │ ├── part47.key │ │ ├── part48.key │ │ ├── part5.key │ │ ├── part50.key │ │ ├── part51.key │ │ ├── part52.key │ │ ├── part53.key │ │ ├── part54.key │ │ ├── part55.key │ │ ├── part56.key │ │ ├── part57.key │ │ ├── part58.key │ │ ├── part59.key │ │ ├── part6.key │ │ ├── part60.key │ │ ├── part7.key │ │ ├── part8.key │ │ ├── part9.key │ │ ├── part10.key │ │ ├── part21.key │ │ ├── part22.key │ │ ├── part23.key │ │ ├── part43.key │ │ ├── part46.key │ │ ├── part49.key │ │ └── .DS_Store │ ├── main-2.key │ ├── main-3.key │ ├── main.key │ ├── .DS_Store │ ├── keygen.sh │ └── unifier.sh ├── door_managment_files │ ├── door_logs │ │ ├── door_1.log │ │ ├── door_10.log │ │ ├── door_11.log │ │ ├── door_12.log │ │ ├── door_13.log │ │ ├── door_14.log │ │ ├── door_15.log │ │ ├── door_16.log │ │ ├── door_2.log │ │ ├── door_3.log │ │ ├── door_4.log │ │ ├── door_5.log │ │ ├── door_6.log │ │ ├── door_7.log │ │ ├── door_8.log │ │ ├── door_9.log │ │ └── .DS_Store │ ├── door_configuration │ │ ├── door_21.conf │ │ ├── door_10.conf │ │ ├── door_11.conf │ │ ├── door_12.conf │ │ ├── door_13.conf │ │ ├── door_14.conf │ │ ├── door_15.conf │ │ ├── door_16.conf │ │ ├── door_3.conf │ │ ├── door_4.conf │ │ ├── door_5.conf │ │ ├── door_6.conf │ │ ├── door_7.conf │ │ ├── door_8.conf │ │ ├── door_9.conf │ │ ├── door_2.conf │ │ ├── .DS_Store │ │ └── door_1.conf │ ├── .DS_Store │ └── door_map │ │ ├── .DS_Store │ │ └── door_map_1.1 ├── important_data_for_ai_module_2.txt ├── quest6.sh ├── quest5.sh ├── .DS_Store ├── quest4.sh ├── quest3.sh ├── ai_module_2.sh ├── ai_door_control.sh ├── git_for_human │ └── readme.txt └── ai_initial_module.sh ├── datasets └── .gitkeep ├── code-samples └── .gitkeep ├── data-samples └── .gitkeep ├── materials ├── .gitkeep └── map.txt ├── misc ├── .gitkeep └── images │ ├── .gitkeep │ ├── eng │ ├── day1_door.png │ └── day1_coffee.png │ └── rus │ ├── day1_door.png │ └── day1_coffee.png ├── LICENSE └── .gitignore /P01D06-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T08D11-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T10D16-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T11D17-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T13D22-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /P02D13-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/CHANGELOG: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T08D11-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T10D16-0-develop/src/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/code.txt: -------------------------------------------------------------------------------- 1 | 153 -------------------------------------------------------------------------------- /T15D24-0-develop/src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/functions.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/functions.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P02D13-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T02D02-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T03D03-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T04D04-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T04D04-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T05D08-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T05D08-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T06D09-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T06D09-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T07D10-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T08D11-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T08D11-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T08D11-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T08D11-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T08D11-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T09D15-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T10D16-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T10D16-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T11D17-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T11D17-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T11D17-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T11D17-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T11D17-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T11D17-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T12D18-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T12D18-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T12D18-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T13D22-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T13D22-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T13D22-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T13D22-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T13D22-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/build/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T14D23-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T14D23-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T14D23-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T15D24-0-develop/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T15D24-0-develop/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /P01D06-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /P02D13-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T01D01-0-release-1.0/code-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/data-samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/materials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/images/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T03D03-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T04D04-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T05D08-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T06D09-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T07D10-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T08D11-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T09D15-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T10D16-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T11D17-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T12D18-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T13D22-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T14D23-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T15D24-0-develop/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /P02D13-develop/src/figures/square.txt: -------------------------------------------------------------------------------- 1 | XX 2 | XX/ -------------------------------------------------------------------------------- /T01D01-0-release-1.0/LICENSE: -------------------------------------------------------------------------------- 1 | # School 21 License -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!1385!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!2036!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!3073!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!3322!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!3491!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!99250!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/.!99542!history_of_vim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T03D03-0-develop/data-samples/arithmetic/out.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_io_macro.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part1.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part11.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part12.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part13.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part14.key: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part15.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part16.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part17.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part18.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part19.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part2.key: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part20.key: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part24.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part25.key: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part26.key: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part27.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part28.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part29.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part3.key: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part30.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part31.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part32.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part33.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part34.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part35.key: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part36.key: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part37.key: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part38.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part39.key: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part4.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part40.key: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part41.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part42.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part44.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part45.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part47.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part48.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part5.key: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part50.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part51.key: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part52.key: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part53.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part54.key: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part55.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part56.key: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part57.key: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part58.key: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part59.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part6.key: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part60.key: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part7.key: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part8.key: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part9.key: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/main-2.key: -------------------------------------------------------------------------------- 1 | 684 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/main-3.key: -------------------------------------------------------------------------------- 1 | 684 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/main.key: -------------------------------------------------------------------------------- 1 | 684 2 | -------------------------------------------------------------------------------- /T07D10-0-develop/src/key10.txt: -------------------------------------------------------------------------------- 1 | 1050 1051 1070 1063 -------------------------------------------------------------------------------- /P02D13-develop/src/figures/glider.txt: -------------------------------------------------------------------------------- 1 | X 2 | X 3 | XXX/ -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part10.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part21.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part22.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part23.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part43.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part46.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/part49.key: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /T03D03-0-develop/data-samples/arithmetic/in.txt: -------------------------------------------------------------------------------- 1 | 0 1 2 | -------------------------------------------------------------------------------- /P02D13-develop/src/figures/pentomino.txt: -------------------------------------------------------------------------------- 1 | X 2 | XX 3 | XX / -------------------------------------------------------------------------------- /P02D13-develop/src/figures/stafighter.txt: -------------------------------------------------------------------------------- 1 | XX 2 | XX 3 | XX/ -------------------------------------------------------------------------------- /T08D11-0-develop/src/sle.txt: -------------------------------------------------------------------------------- 1 | 1 1 1 2 2 | 4 5 3 7 3 | 2 7 7 9 4 | -------------------------------------------------------------------------------- /T11D17-0-develop/materials/polynomial.last: -------------------------------------------------------------------------------- 1 | 1*x^5-10*x^3+3*x^2+5 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_1.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_10.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_11.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_12.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_13.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_14.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_15.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_16.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_2.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_3.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_4.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_5.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_6.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_7.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_8.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/door_9.log: -------------------------------------------------------------------------------- 1 | LOCKED 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/important_data_for_ai_module_2.txt: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/quest6.sh: -------------------------------------------------------------------------------- 1 | в папке key удалить все файлы без расширения .key 2 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/master_levels.db: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_21.conf: -------------------------------------------------------------------------------- 1 | DOOR ROOT CONFIGURATION 2 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/quest5.sh: -------------------------------------------------------------------------------- 1 | открыть vim 2 | :open door_1.conf 3 | поменять CLOSE на  OPEN 4 | :wq 5 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/ai_modules/m1.h: -------------------------------------------------------------------------------- 1 | #ifndef M1_H 2 | #define M1_H 3 | 4 | void m1_f1(); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/ai_modules/m2.h: -------------------------------------------------------------------------------- 1 | #ifndef M2_H 2 | #define M2_H 3 | 4 | void m2_f1(); 5 | 6 | #endif 7 | 8 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/ai_modules/m1.c: -------------------------------------------------------------------------------- 1 | #include "m1.h" 2 | 3 | 4 | void m1_f1() 5 | { 6 | printf("TEST M1"); 7 | } 8 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/.DS_Store -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_10.conf: -------------------------------------------------------------------------------- 1 | DOOR 10 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_11.conf: -------------------------------------------------------------------------------- 1 | DOOR 11 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_12.conf: -------------------------------------------------------------------------------- 1 | DOOR 12 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_13.conf: -------------------------------------------------------------------------------- 1 | DOOR 13 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_14.conf: -------------------------------------------------------------------------------- 1 | DOOR 14 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_15.conf: -------------------------------------------------------------------------------- 1 | DOOR 15 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_16.conf: -------------------------------------------------------------------------------- 1 | DOOR 16 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_3.conf: -------------------------------------------------------------------------------- 1 | DOOR 3 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_4.conf: -------------------------------------------------------------------------------- 1 | DOOR 4 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_5.conf: -------------------------------------------------------------------------------- 1 | DOOR 5 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_6.conf: -------------------------------------------------------------------------------- 1 | DOOR 6 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_7.conf: -------------------------------------------------------------------------------- 1 | DOOR 7 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_8.conf: -------------------------------------------------------------------------------- 1 | DOOR 8 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_9.conf: -------------------------------------------------------------------------------- 1 | DOOR 9 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/ai_modules/m2.c: -------------------------------------------------------------------------------- 1 | #include "m2.h" 2 | 3 | 4 | void m2_f1() 5 | { 6 | printf("TEST M2"); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /T14D23-0-develop/datasets/test: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_2.conf: -------------------------------------------------------------------------------- 1 | DOOR 2 CONFIGURATION 2 | 3 | STATUS: CLOSED 4 | 5 | -------------------------------------------------------------------------------- /T03D03-0-develop/misc/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T03D03-0-develop/misc/images/GOTO.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/images/GOTO.png -------------------------------------------------------------------------------- /P01D06-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P01D06-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /P01D06-develop/misc/eng/images/pong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P01D06-develop/misc/eng/images/pong.png -------------------------------------------------------------------------------- /P01D06-develop/misc/rus/images/pong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P01D06-develop/misc/rus/images/pong.png -------------------------------------------------------------------------------- /P02D13-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P02D13-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T14D23-0-develop/datasets/door_state_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/datasets/door_state_1 -------------------------------------------------------------------------------- /T14D23-0-develop/datasets/door_state_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/datasets/door_state_2 -------------------------------------------------------------------------------- /T14D23-0-develop/datasets/door_state_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/datasets/door_state_3 -------------------------------------------------------------------------------- /P01D06-develop/misc/eng/images/dayp01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P01D06-develop/misc/eng/images/dayp01.png -------------------------------------------------------------------------------- /P01D06-develop/misc/rus/images/dayp01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P01D06-develop/misc/rus/images/dayp01.png -------------------------------------------------------------------------------- /P02D13-develop/materials/glider_emblem.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P02D13-develop/materials/glider_emblem.gif -------------------------------------------------------------------------------- /P02D13-develop/misc/eng/images/dayp02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P02D13-develop/misc/eng/images/dayp02.png -------------------------------------------------------------------------------- /P02D13-develop/misc/rus/images/dayp02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/P02D13-develop/misc/rus/images/dayp02.png -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/ai_help/.DS_Store -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/scr1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/scr1.png -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/scr2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/scr2.png -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/scr3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/scr3.png -------------------------------------------------------------------------------- /T04D04-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T04D04-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T05D08-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T05D08-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T06D09-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T06D09-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T07D10-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T08D11-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T08D11-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T09D15-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T09D15-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T10D16-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T10D16-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T11D17-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T13D22-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T13D22-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T14D23-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T15D24-0-develop/misc/eng/images/GOTO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/misc/eng/images/GOTO.png -------------------------------------------------------------------------------- /T02D02-0-develop/misc/eng/images/day2_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/eng/images/day2_box.png -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/day2_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/day2_box.png -------------------------------------------------------------------------------- /T06D09-0-develop/misc/eng/images/day6_egg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T06D09-0-develop/misc/eng/images/day6_egg.png -------------------------------------------------------------------------------- /T06D09-0-develop/misc/rus/images/day6_egg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T06D09-0-develop/misc/rus/images/day6_egg.png -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_sort.h: -------------------------------------------------------------------------------- 1 | #ifndef DATA_SORT_H 2 | #define DATA_SORT_H 3 | 4 | void sort(double* data, int n); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /T12D18-0-develop/misc/images/binary_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/images/binary_tree.png -------------------------------------------------------------------------------- /T14D23-0-develop/misc/eng/images/day14_pc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/misc/eng/images/day14_pc.png -------------------------------------------------------------------------------- /T14D23-0-develop/misc/rus/images/day14_pc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/misc/rus/images/day14_pc.png -------------------------------------------------------------------------------- /T15D24-0-develop/materials/master_modules.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/materials/master_modules.db -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/key/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/ai_help/key/.DS_Store -------------------------------------------------------------------------------- /T02D02-0-develop/misc/eng/images/day2_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/eng/images/day2_door.png -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/day2_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/day2_door.png -------------------------------------------------------------------------------- /T03D03-0-develop/materials/type.txt: -------------------------------------------------------------------------------- 1 | Data type - a set of values ​​and operations on these values ​​(IEEE Std 1320.2-1998) 2 | Integer, character, real. -------------------------------------------------------------------------------- /T03D03-0-develop/misc/eng/images/day3_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T03D03-0-develop/misc/eng/images/day3_door.png -------------------------------------------------------------------------------- /T03D03-0-develop/misc/rus/images/day3_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T03D03-0-develop/misc/rus/images/day3_door.png -------------------------------------------------------------------------------- /T04D04-0-develop/misc/eng/images/day4_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T04D04-0-develop/misc/eng/images/day4_door.png -------------------------------------------------------------------------------- /T04D04-0-develop/misc/eng/images/day4_paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T04D04-0-develop/misc/eng/images/day4_paper.png -------------------------------------------------------------------------------- /T04D04-0-develop/misc/rus/images/day4_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T04D04-0-develop/misc/rus/images/day4_door.png -------------------------------------------------------------------------------- /T04D04-0-develop/misc/rus/images/day4_paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T04D04-0-develop/misc/rus/images/day4_paper.png -------------------------------------------------------------------------------- /T05D08-0-develop/misc/eng/images/day5_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T05D08-0-develop/misc/eng/images/day5_door.png -------------------------------------------------------------------------------- /T05D08-0-develop/misc/rus/images/day5_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T05D08-0-develop/misc/rus/images/day5_door.png -------------------------------------------------------------------------------- /T06D09-0-develop/misc/eng/images/day6_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T06D09-0-develop/misc/eng/images/day6_door.png -------------------------------------------------------------------------------- /T06D09-0-develop/misc/rus/images/day6_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T06D09-0-develop/misc/rus/images/day6_door.png -------------------------------------------------------------------------------- /T07D10-0-develop/misc/eng/images/day7_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/misc/eng/images/day7_door.png -------------------------------------------------------------------------------- /T07D10-0-develop/misc/rus/images/day7_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/misc/rus/images/day7_door.png -------------------------------------------------------------------------------- /T08D11-0-develop/misc/eng/images/day8_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T08D11-0-develop/misc/eng/images/day8_door.png -------------------------------------------------------------------------------- /T08D11-0-develop/misc/rus/images/day8_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T08D11-0-develop/misc/rus/images/day8_door.png -------------------------------------------------------------------------------- /T09D15-0-develop/misc/eng/images/day9_chair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T09D15-0-develop/misc/eng/images/day9_chair.png -------------------------------------------------------------------------------- /T09D15-0-develop/misc/eng/images/day9_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T09D15-0-develop/misc/eng/images/day9_door.png -------------------------------------------------------------------------------- /T09D15-0-develop/misc/rus/images/day9_chair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T09D15-0-develop/misc/rus/images/day9_chair.png -------------------------------------------------------------------------------- /T09D15-0-develop/misc/rus/images/day9_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T09D15-0-develop/misc/rus/images/day9_door.png -------------------------------------------------------------------------------- /T10D16-0-develop/misc/eng/images/day10_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T10D16-0-develop/misc/eng/images/day10_book.png -------------------------------------------------------------------------------- /T10D16-0-develop/misc/eng/images/day10_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T10D16-0-develop/misc/eng/images/day10_door.png -------------------------------------------------------------------------------- /T10D16-0-develop/misc/rus/images/day10_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T10D16-0-develop/misc/rus/images/day10_book.png -------------------------------------------------------------------------------- /T10D16-0-develop/misc/rus/images/day10_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T10D16-0-develop/misc/rus/images/day10_door.png -------------------------------------------------------------------------------- /T11D17-0-develop/materials/polynom-as-list.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/materials/polynom-as-list.jpg -------------------------------------------------------------------------------- /T11D17-0-develop/misc/eng/images/day11_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/misc/eng/images/day11_door.png -------------------------------------------------------------------------------- /T11D17-0-develop/misc/rus/images/day11_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/misc/rus/images/day11_door.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/eng/images/day12_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/eng/images/day12_door.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/eng/images/day12_leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/eng/images/day12_leaf.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/rus/images/day12_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/rus/images/day12_door.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/rus/images/day12_leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/rus/images/day12_leaf.png -------------------------------------------------------------------------------- /T13D22-0-develop/misc/eng/images/day13_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T13D22-0-develop/misc/eng/images/day13_door.png -------------------------------------------------------------------------------- /T13D22-0-develop/misc/eng/images/day13_lamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T13D22-0-develop/misc/eng/images/day13_lamp.png -------------------------------------------------------------------------------- /T13D22-0-develop/misc/rus/images/day13_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T13D22-0-develop/misc/rus/images/day13_door.png -------------------------------------------------------------------------------- /T13D22-0-develop/misc/rus/images/day13_lamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T13D22-0-develop/misc/rus/images/day13_lamp.png -------------------------------------------------------------------------------- /T14D23-0-develop/misc/eng/images/day14_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/misc/eng/images/day14_door.png -------------------------------------------------------------------------------- /T14D23-0-develop/misc/rus/images/day14_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T14D23-0-develop/misc/rus/images/day14_door.png -------------------------------------------------------------------------------- /T15D24-0-develop/misc/eng/images/day15_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/misc/eng/images/day15_door.png -------------------------------------------------------------------------------- /T15D24-0-develop/misc/rus/images/day15_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/misc/rus/images/day15_door.png -------------------------------------------------------------------------------- /P02D13-develop/src/figures/galactic.txt: -------------------------------------------------------------------------------- 1 | XX XXXXXX 2 | XX XXXXXX 3 | XX 4 | XX XX 5 | XX XX 6 | XX XX 7 | XX 8 | XXXXXX XX 9 | XXXXXX XX/ -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/images/eng/day1_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/misc/images/eng/day1_door.png -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/images/rus/day1_door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/misc/images/rus/day1_door.png -------------------------------------------------------------------------------- /T03D03-0-develop/misc/eng/images/day3_kursor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T03D03-0-develop/misc/eng/images/day3_kursor.png -------------------------------------------------------------------------------- /T03D03-0-develop/misc/rus/images/day3_kursor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T03D03-0-develop/misc/rus/images/day3_kursor.png -------------------------------------------------------------------------------- /T03D03-0-develop/src/hello.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 sradish 2 | #include 3 | 4 | int main() { 5 | printf("Hello, AI!"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /T05D08-0-develop/misc/eng/images/day5_pillow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T05D08-0-develop/misc/eng/images/day5_pillow.png -------------------------------------------------------------------------------- /T05D08-0-develop/misc/rus/images/day5_pillow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T05D08-0-develop/misc/rus/images/day5_pillow.png -------------------------------------------------------------------------------- /T07D10-0-develop/misc/eng/images/day7_number.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/misc/eng/images/day7_number.png -------------------------------------------------------------------------------- /T07D10-0-develop/misc/rus/images/day7_number.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/misc/rus/images/day7_number.png -------------------------------------------------------------------------------- /T08D11-0-develop/misc/eng/images/day8_kapsula.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T08D11-0-develop/misc/eng/images/day8_kapsula.png -------------------------------------------------------------------------------- /T08D11-0-develop/misc/rus/images/day8_kapsula.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T08D11-0-develop/misc/rus/images/day8_kapsula.png -------------------------------------------------------------------------------- /T11D17-0-develop/misc/eng/images/day11_sticker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/misc/eng/images/day11_sticker.png -------------------------------------------------------------------------------- /T11D17-0-develop/misc/rus/images/day11_sticker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T11D17-0-develop/misc/rus/images/day11_sticker.png -------------------------------------------------------------------------------- /T15D24-0-develop/materials/master_status_events.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/materials/master_status_events.db -------------------------------------------------------------------------------- /T15D24-0-develop/misc/eng/images/day15_chairs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/misc/eng/images/day15_chairs.png -------------------------------------------------------------------------------- /T15D24-0-develop/misc/rus/images/day15_chairs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T15D24-0-develop/misc/rus/images/day15_chairs.png -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/images/eng/day1_coffee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/misc/images/eng/day1_coffee.png -------------------------------------------------------------------------------- /T01D01-0-release-1.0/misc/images/rus/day1_coffee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/misc/images/rus/day1_coffee.png -------------------------------------------------------------------------------- /T12D18-0-develop/misc/images/binary_search_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T12D18-0-develop/misc/images/binary_search_tree.png -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/door_managment_files/.DS_Store -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/quest4.sh: -------------------------------------------------------------------------------- 1 | для остановки запущенного процесса нужно узнать его ID, воспользуемся командой ps -e, и найдем запущенный процесс 2 | kill PID 3 | -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/web_editor_new_branch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/web_editor_new_branch.png -------------------------------------------------------------------------------- /T03D03-0-develop/materials/themes.txt: -------------------------------------------------------------------------------- 1 | 1. Structure of a C program 2 | 2. Principles of structured programming 3 | 3. Simple data types in the C language 4 | 4. Expressions 5 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/yet_another_decision_module/decision.h: -------------------------------------------------------------------------------- 1 | #define GOLDEN_RATIO 0.666 2 | 3 | int make_decision(double *data, int n); 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /P02D13-develop/src/figures/glider_gun.txt: -------------------------------------------------------------------------------- 1 | X 2 | XXXX 3 | XXXX X 4 | X X X X 5 | XXXX XX X 6 | XXXX XX X 7 | X XX X 8 | X X 9 | X/ -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_logs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/door_managment_files/door_logs/.DS_Store -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_map/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/door_managment_files/door_map/.DS_Store -------------------------------------------------------------------------------- /T02D02-0-develop/misc/rus/images/new_issue_from_tracker_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T02D02-0-develop/misc/rus/images/new_issue_from_tracker_list.png -------------------------------------------------------------------------------- /T03D03-0-develop/src/named_hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int name; 5 | scanf("%d", &name); 6 | printf("Hello, %d!", name); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /T07D10-0-develop/materials/[DynAlloc] Array of pointers to arrays.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/materials/[DynAlloc] Array of pointers to arrays.jpg -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_io.h: -------------------------------------------------------------------------------- 1 | #ifndef DATA_IO_H 2 | #define DATA_IO_H 3 | 4 | int getSize(); 5 | int input(double *data, int n); 6 | void output(double *data, int n); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/door_struct.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_DOOR_STRUCT_H_ 2 | #define SRC_DOOR_STRUCT_H_ 3 | struct door { 4 | int id; 5 | int status; 6 | }; 7 | 8 | #endif // SRC_DOOR_STRUCT_H_ 9 | -------------------------------------------------------------------------------- /P02D13-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T01D01-0-release-1.0/src/door_managment_files/door_configuration/.DS_Store -------------------------------------------------------------------------------- /T06D09-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T07D10-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T08D11-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T10D16-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/status_events.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_STATUS_EVENTS_H 2 | #define SRC_STATUS_EVENTS_H 3 | 4 | #include "libs.h" 5 | 6 | int print_events(FILE* ptr); 7 | 8 | #endif // SRC_STATUS_EVENTS_H 9 | -------------------------------------------------------------------------------- /T06D09-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T07D10-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T08D11-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T09D15-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T10D16-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_module/data_process.h: -------------------------------------------------------------------------------- 1 | #ifndef PROCESSING_H 2 | #define PROCESSING_H 3 | #define EPS 1E-6 4 | 5 | int normalization(double *data, int n); 6 | 7 | #endif 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /P02D13-develop/src/figures/clock.txt: -------------------------------------------------------------------------------- 1 | XX 2 | XX 3 | 4 | XXXX 5 | XX X X X 6 | XX X X X 7 | X X X XX 8 | X X XX 9 | XXXX 10 | 11 | XX 12 | XX/ -------------------------------------------------------------------------------- /T07D10-0-develop/materials/[DynAlloc] Array of pointers to segments of the second array.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/materials/[DynAlloc] Array of pointers to segments of the second array.jpg -------------------------------------------------------------------------------- /T13D22-0-develop/src/file_io.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_FILE_IO_H_ 2 | #define SRC_FILE_IO_H_ 3 | 4 | int readFile(); 5 | int writeToFile(); 6 | int fileOutput(char* path); 7 | int fileInput(char* path); 8 | 9 | #endif // SRC_FILE_IO_H_ 10 | -------------------------------------------------------------------------------- /P01D06-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-whitespace/tab 4 | filter=-runtime/int 5 | filter=-legal/copyright 6 | filter=-build/include_subdir 7 | filter=-build/include 8 | filter=-readability/casting 9 | -------------------------------------------------------------------------------- /T07D10-0-develop/materials/[DynAlloc] Array of pointers to array segments within one buffer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/badblues/pool-school21/HEAD/T07D10-0-develop/materials/[DynAlloc] Array of pointers to array segments within one buffer.jpg -------------------------------------------------------------------------------- /T15D24-0-develop/src/shared.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_SHARED_H_ 2 | #define SRC_SHARED_H_ 3 | 4 | int modulesControll(); 5 | int showTables(); 6 | int getChoice(int gap1, int gap2); 7 | int levelsControll(); 8 | 9 | #endif // SRC_SHARED_H_ 10 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/keygen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | mkdir key 4 | 5 | touch key/file{1..300} 6 | 7 | for i in {1..60} 8 | do 9 | echo $((RANDOM%10 + 1)) > key/part${i}.key 10 | done 11 | 12 | echo "Generation completed" 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-whitespace/tab 4 | filter=-runtime/int 5 | filter=-legal/copyright 6 | filter=-build/include_subdir 7 | filter=-build/include 8 | filter=-readability/casting 9 | -------------------------------------------------------------------------------- /T04D04-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-whitespace/tab 4 | filter=-runtime/int 5 | filter=-legal/copyright 6 | filter=-build/include_subdir 7 | filter=-build/include 8 | filter=-readability/casting 9 | -------------------------------------------------------------------------------- /T05D08-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-whitespace/tab 4 | filter=-runtime/int 5 | filter=-legal/copyright 6 | filter=-build/include_subdir 7 | filter=-build/include 8 | filter=-readability/casting 9 | -------------------------------------------------------------------------------- /T12D18-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn -------------------------------------------------------------------------------- /T13D22-0-develop/src/log_levels.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_LOG_LEVELS_H_ 2 | #define SRC_LOG_LEVELS_H_ 3 | 4 | enum log_level { 5 | debug, 6 | trace, 7 | info, 8 | warning, 9 | error 10 | }; 11 | 12 | #endif // SRC_LOG_LEVELS_H_ 13 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/state_sort.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_STATE_SORT_H_ 2 | #define SRC_STATE_SORT_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | int getLen(FILE* ptr); 9 | 10 | #endif // SRC_STATE_SORT_H_ 11 | -------------------------------------------------------------------------------- /T11D17-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn 9 | -------------------------------------------------------------------------------- /T13D22-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn 9 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/input.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_INPUT_H_ 2 | #define SRC_INPUT_H_ 3 | 4 | int getDate(int* date); 5 | int getChoice(); 6 | char* getPath(); 7 | char* s21_strcat(char* str1, char* str2); 8 | char* getStr(); 9 | 10 | #endif // SRC_INPUT_H_ 11 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_stat.h: -------------------------------------------------------------------------------- 1 | #ifndef DATA_STAT_H 2 | #define DATA_STAT_H 3 | 4 | double max(double *data, int n); 5 | double min(double *data, int n); 6 | double mean(double *data, int n); 7 | double variance(double *data, int n); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn 9 | filter=-runtime/printf 10 | -------------------------------------------------------------------------------- /T04D04-0-develop/materials/bohm-jacopini-theorem.txt: -------------------------------------------------------------------------------- 1 | Любой исполняемый алгоритм может быть преобразован к структурированному виду, то есть такому виду, когда ход его выполнения определяется только при помощи трёх структур управления: последовательной, ветвлений и повторов или циклов. 2 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/sort.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_SORT_H_ 2 | #define SRC_SORT_H_ 3 | #include "state_sort.h" 4 | 5 | int sortFile(FILE* ptr); 6 | int compare(int* rec1, int* rec2); 7 | void swap(FILE* ptr, int* rec1, int* rec2, int id1, int id2); 8 | 9 | #endif // SRC_SORT_H_ 10 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_configuration/door_1.conf: -------------------------------------------------------------------------------- 1 | DOOR 1 CONFIGURATION 2 | 3 | STATUS: OPEN 4 | 5 | 123d 6 | 241s 7 | 100000000 8 | 893 9 | 5 10 | 2342325 11 | 34 12 | 23 13 | 14 | 15 | 35 16 | 17 | 18 | 1231 19 | 231 20 | 1 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/door_managment_files/door_map/door_map_1.1: -------------------------------------------------------------------------------- 1 | 2 | 3 | |----|----|----|-------------------------| 4 | | 5 | | 6 | -----|----| 7 | | 8 | | 9 | |------------------------------| 10 | 11 | 12 | DOOR MAP v1.1 13 | 14 | -------------------------------------------------------------------------------- /T14D23-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn 9 | filter=-runtime/printf 10 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/linters/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | headers=h 2 | linelength=110 3 | filter=-runtime/int 4 | filter=-legal/copyright 5 | filter=-build/include_subdir 6 | filter=-build/include 7 | filter=-readability/casting 8 | filter=-runtime/threadsafe_fn 9 | filter=-runtime/printf 10 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/encode.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_ENCODE_H_ 2 | #define SRC_ENCODE_H_ 3 | 4 | 5 | int findFiles(char* str); 6 | char* getFullPath(char* dir, char* filename); 7 | int codeCaesars(char* path); 8 | void cleanFile(char* path); 9 | void caesarsCipher(char* path, int shift); 10 | 11 | #endif // SRC_ENCODE_H_ 12 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/quest3.sh: -------------------------------------------------------------------------------- 1 | переименовываем папку door_managment_fi в door_managment_files командой mv door_managment_fi door_managment_files 2 | внутри папки door_managment_files создаем три папки: door_configuration, door_map, door_logs командой mkdir 3 | командой mv перемещаем файлы conf, map и лог в нужные папки 4 | 5 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/stack.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_STACK_H_ 2 | #define SRC_STACK_H_ 3 | 4 | struct elem { 5 | int val; 6 | struct elem* next; 7 | }; 8 | 9 | struct elem* init(int val); 10 | void push(struct elem** head, int val); 11 | int pop(struct elem** head); 12 | void destroy(struct elem** head); 13 | 14 | #endif // SRC_STACK_H_ 15 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/database.h: -------------------------------------------------------------------------------- 1 | #define ENTITY 2 | 3 | 4 | ////////////////////////////////////////////////////// 5 | ENTITY *select(FILE *db, int id); 6 | int delete(FILE *db, int id); 7 | int insert(FILE *db, ENTITY *entity); 8 | int update(FILE *db, int id, ENTITY *entity); 9 | ////////////////////////////////////////////////////// 10 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_sort.c: -------------------------------------------------------------------------------- 1 | void sort(double* data, int n) { 2 | for (int i = 0; i < n; i++) 3 | for (int j = 0; j < n - 1; j++) 4 | if (data[j] > data[j + 1]) { 5 | double tmp = data[j]; 6 | data[j] = data[j + 1]; 7 | data[j + 1] = tmp; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/logger.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_LOGGER_H_ 2 | #define SRC_LOGGER_H_ 3 | #include 4 | 5 | #include "log_levels.h" 6 | 7 | char* createMes(char* path, int mode); 8 | FILE* log_init(char* path); 9 | void logcat(FILE* ptr, char* message, enum log_level level); 10 | void log_close(FILE* ptr); 11 | 12 | #endif // SRC_LOGGER_H_ 13 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | FLAGS = -Wall -Werror -Wextra 2 | 3 | database: modules_db.c modules.c levels.c status_events.c shared.c 4 | gcc $(FLAGS) -c modules_db.c modules.c levels.c status_events.c shared.c 5 | gcc modules.o levels.o status_events.o shared.o modules_db.o -o database 6 | 7 | clean: 8 | rm *.o 9 | rm ../build/* 10 | 11 | all: database -------------------------------------------------------------------------------- /T13D22-0-develop/src/cipher.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_CIPHER_H_ 2 | #define SRC_CIPHER_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | char* getStr(); 11 | char* getPath(); 12 | char* s21_strcpy(char* str1, char* str2); 13 | char* s21_strcat(char* str1, char* str2); 14 | 15 | #endif // SRC_CIPHER_H_ 16 | -------------------------------------------------------------------------------- /T10D16-0-develop/src/s21_string.h: -------------------------------------------------------------------------------- 1 | #ifndef S21_STRING_H 2 | #define S21_STRING_H 3 | 4 | int s21_strlen(char* str); 5 | int s21_strcmp(char* str1, char* str2); 6 | char* s21_strcpy(char* str1, char* str2); 7 | char* s21_strcat(char* str1, char* str2); 8 | char* s21_strchr(char* str, char sym); 9 | char* s21_strstr(char* str1, char* str2); 10 | char* s21_strtok(char* str, char* delim); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/operations.txt: -------------------------------------------------------------------------------- 1 | Operations can be: unary, binary, and ternary. 2 | 3 | 1. Operation of assignment (=, compound assignment: +=,-=,*=,/=,%=, &=, |=, etc...) 4 | 2. Arithmetic operations (unary: +,-, binary: +,-,/,*,%) 5 | 3. Comparison operations (==,!=,<,>,<=,>=) 6 | 4. Logical operations (unary: !, binary: &&, ||) 7 | 5. Bitwise operations (unary: ^, binary: &,|,~,<<,>>) 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/crack.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 sradish 2 | #include 3 | 4 | int main() { 5 | double a, b; 6 | if (scanf("%lf %lf", &a, &b) != 2) { 7 | printf("n/a"); 8 | return 1; 9 | } 10 | char c = ' '; 11 | if (((scanf("%c", &c)) != 0) && (c != '\n')) { 12 | printf("n/a"); 13 | return 1; } 14 | if (a*a+b*b < 25) printf("GOTCHA"); 15 | else 16 | printf("MISS"); 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /T04D04-0-develop/src/quest3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long int fibonacci(int a) { 4 | if (a == 0) return 0; 5 | if ((a == 1) || (a == 2)) 6 | return 1; 7 | return fibonacci(a - 1) + fibonacci(a - 2); 8 | } 9 | 10 | int main() { 11 | int a; 12 | scanf("%d", &a);\ 13 | if (a < 0) { 14 | printf("n/a"); 15 | return 1; 16 | } 17 | printf("%ld", fibonacci(a)); 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /P01D06-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /P02D13-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T02D02-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/xor.txt: -------------------------------------------------------------------------------- 1 | The bitwise XOR (exclusive or) performs a logical XOR function, which is equivalent to adding two bits and discarding the carry. 2 | The result is zero only when we have two zeroes or two ones. XOR can be used to toggle the bits between 1 and 0. 3 | Thus i = i ^ 1 when used in a loop toggles its values between 1 and 0. 4 | 5 | 11001000 6 | ^ 10111000 7 | -------- 8 | = 01110000 -------------------------------------------------------------------------------- /T04D04-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T05D08-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T06D09-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T07D10-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T08D11-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T09D15-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T10D16-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T11D17-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T12D18-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T13D22-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T14D23-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/materials/map.txt: -------------------------------------------------------------------------------- 1 | typical repository structure 2 | 3 | | 4 | |- code-samples - some examples of code 5 | |- data-samples - some examples of data for your tasks 6 | |- datasets - datasets for your tasks 7 | |- materials - folder for useful materials 8 | |- misc - some files for README 9 | |- src - your main directory for work 10 | |-- README.md - your task 11 | |-- README_RUS.MD - your task in russian 12 | 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/important_function.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 sradish 2 | #include 3 | #include 4 | 5 | int main() { 6 | double x; 7 | if (scanf("%lf", &x) != 1) { 8 | printf("n/a"); 9 | return 1; 10 | } 11 | double y = 7e-3 * pow(x, 4) + ((22.8 * pow(x, 1/3) - 1e3) * x + 3) 12 | / (x * x / 2) - x * pow((10 + x), (2/x)) - 1.01; 13 | y = round(y*10)/10; 14 | printf("%.1lf", y); 15 | return 0; 16 | } 17 | 18 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_help/unifier.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | FILES=key/* 4 | KEY=0 5 | 6 | for file in $FILES 7 | do 8 | if [[ $file =~ \.key$ ]] 9 | then 10 | tmp=$(< $file) 11 | KEY=$(($KEY + $tmp)) 12 | else 13 | KEY=0 14 | break 15 | fi 16 | done 17 | 18 | if [ $KEY == 0 ] 19 | then 20 | echo "Error." 21 | else 22 | echo "Ok." 23 | echo $(($KEY*2)) > main.key 24 | fi 25 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | all: door_struct polynomial stack_test 2 | 3 | door_struct: dmanager_module.c 4 | gcc dmanager_module.c -o ../build/Quest_1 5 | 6 | polynomial: polynomial.c 7 | gcc polynomial.c -o ../build/Quest_2 8 | 9 | stack_test: stack_test.c stack.c 10 | gcc -c stack_test.c stack.c 11 | gcc stack_test.o stack.o -o ../build/Quest_3 12 | 13 | clean: 14 | rm ../build/* 15 | rm *.o 16 | 17 | rebuild: 18 | clean all -------------------------------------------------------------------------------- /T15D24-0-develop/src/levels.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_LEVELS_H_ 2 | #define SRC_LEVELS_H_ 3 | 4 | int print_levels(FILE* ptr); 5 | levels getLevelsRecord(); 6 | int checkLevelsId(FILE* ptr, int id); 7 | int addLevelsRecord(FILE* ptr, levels rec); 8 | int deleteLevelsRecord(FILE* ptr, int id); 9 | int insertLevelsRecord(FILE* ptr, int id, levels new_rec); 10 | int changeLevelsRecord(FILE* ptr, int id, levels rec); 11 | 12 | #endif // SRC_LEVELS_H_ 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/code-samples/operations.c: -------------------------------------------------------------------------------- 1 | /* 2 | Программа, рассчитывающая сумму и произведение введенных чисел 3 | */ 4 | 5 | #include 6 | 7 | int sum(int a, int b); 8 | int mul(int a, int b); 9 | 10 | void main(){ 11 | int x, y; 12 | scanf("%d %d", &x, &y); 13 | printf("%d %d", sum(x, y), mul(x, y)); 14 | } 15 | 16 | int sum(int a, int b){ 17 | return a + b; 18 | } 19 | 20 | int mul(int a, int b){ 21 | return a * b; 22 | } 23 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/files.log: -------------------------------------------------------------------------------- 1 | src/history_of_vim.txt - 0 - 1970-01-01 23:59 - NULL - sha256 2 | src/history_of_vim.txt - 2319 - 2021-07-13 10:09 - 00398b35633e3824869bab31bd5a73e8bea19a7d68093876f77904022a0fb8c5 - sha256 3 | src/history_of_vim.txt - 2369 - 2021-07-13 10:12 - b5b24a2e74ead6495eb148ecaf8974f975e7f2ae1e063c12f76b1e834aca46b4 - sha256 4 | src/history_of_vim.txt - 2368 - 2021-07-13 14:53 - e6f6fc64b3445fe2fc4d6ac40d0ec3d0de6ab0bc4ee7736fae990a0dee146e67 - sha256 5 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/float_compare.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 sradish 2 | #include 3 | #include 4 | 5 | double fun(); 6 | int main() { 7 | double res = fun(); 8 | // CHANGE THIS IF - AI 9 | if ((res > -0.000001) && (res < 0.000001)) 10 | printf("OK!"); 11 | else 12 | printf("%lf", res); 13 | return 0; 14 | } 15 | // DO NOT TOUCH THIS FUNCTION - AI 16 | double fun() { 17 | return (1.0 / 13) * (pow(((2 - 1.0) / (2 + 1.0)), 20)); 18 | } 19 | // IT 20 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | all: cipher logging_cipher 2 | 3 | cipher: cipher.c file_io.c encode.c logger.c 4 | gcc -c cipher.c file_io.c encode.c logger.c 5 | gcc cipher.o file_io.o encode.o logger.o -o ../build/cipher 6 | 7 | logging_cipher: cipher.c file_io.c encode.c logger.c 8 | gcc -D LOG -c cipher.c 9 | gcc -c file_io.c encode.c logger.c 10 | gcc cipher.o file_io.o encode.o logger.o -o ../build/logging_cipher 11 | clean: 12 | rm *.o 13 | rm ../build/* -------------------------------------------------------------------------------- /T12D18-0-develop/src/main_module_entry_point.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "print_module.h" 4 | #include "documentation_module.h" 5 | 6 | int main() { 7 | #ifdef Quest_1 8 | print_log(print_char, Module_load_success_message); 9 | #endif 10 | 11 | #ifdef Quest_2 12 | short availability_mask = check_available_documentation_module(validate, Documents_count, Documents); 13 | print_docs(availability_mask, Documents_count, Documents); 14 | #endif 15 | 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/status_events.c: -------------------------------------------------------------------------------- 1 | #include "libs.h" 2 | 3 | int print_events(FILE* ptr) { // OUTPUT 4 | int is_error = 0; 5 | events rec; 6 | if (ptr == NULL) { 7 | is_error = 1; 8 | } else { 9 | fread(&rec, sizeof(events), 1, ptr); 10 | while(!feof(ptr)) { 11 | printf("%d %d %d %s %s\n", rec.event_id, rec.module_id, rec.status, rec.date, rec.time); 12 | fread(&rec, sizeof(events), 1, ptr); 13 | } 14 | } 15 | return is_error; 16 | } -------------------------------------------------------------------------------- /T02D02-0-develop/src/edit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | file=$1 4 | str1=$2 5 | str2=$3 6 | 7 | if [ ! -f $file ]; then 8 | exit 9 | fi 10 | 11 | if [ $str1 = $str2 ]; then 12 | exit 13 | fi 14 | 15 | if [ $str1 = '' ]; then 16 | exit 17 | fi 18 | 19 | $(grep -q "$str1" $file) 20 | if [ $? -eq 0 ]; then 21 | sed -i '' "s/$str1/$str2/g" $file 22 | echo "src/history_of_vim.txt - $(stat -f%z $file) - $(date "+%Y-%m-%d") $(date "+%H:%M") - $(shasum -a 256 $file | awk '{print $1}') - sha256" >> files.log 23 | fi 24 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/print_module.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_PRINT_MODULE_H_ 2 | #define SRC_PRINT_MODULE_H_ 3 | 4 | #define Module_load_success_message "Output stream module load: success\n" 5 | #define Log_prefix "[LOG]" 6 | 7 | /* 8 | input: printchar-callback, log message 9 | output: void 10 | result: "Log_prefix HH:MM:SS message" 11 | */ 12 | void print_log(char (*print)(char), char* message); 13 | 14 | char print_char(char ch); 15 | 16 | void print_docs(short mask, int documents_count, ...); 17 | 18 | #endif // SRC_PRINT_MODULE_H_ 19 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/max.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 sradish 2 | #include 3 | 4 | int main() { 5 | float a, b; 6 | if (scanf("%f %f", &a, &b) != 2) { 7 | printf("n/a"); 8 | return 1; 9 | } 10 | if (!(a == (int)a && b == (int)b)) { 11 | printf("n/a"); 12 | return 1; 13 | } 14 | char c = ' '; 15 | if ((scanf("%c", &c) != 0) && (c != '\n')) { 16 | printf("n/a"); 17 | return 1; 18 | } 19 | int x = (int)a; 20 | int y = (int)b; 21 | if (x > y) 22 | printf("%d", x); 23 | else 24 | (printf("%d", y)); 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/modules.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_MODULES_H_ 2 | #define SRC_MODULES_H_ 3 | 4 | #include "libs.h" 5 | 6 | int checkModulesId(FILE* ptr, int id); 7 | int getLastId(FILE* ptr); 8 | int print_modules(FILE* ptr); 9 | void getname(char* name); 10 | modules getModulesRecord(int id); 11 | int addModulesRecord(FILE* ptr, modules rec); 12 | void deleteModulesRecord(FILE* ptr, int id); 13 | int changeModulesRecord(FILE* ptr, int id, modules rec); 14 | int insertModulesRecord(FILE* ptr, int id, modules rec); 15 | 16 | #endif // SRC_MODULES_H_ 17 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/yet_another_decision_module/decision.c: -------------------------------------------------------------------------------- 1 | #include "decision.h" 2 | #include "../data_libs/data_stat.h" 3 | #include 4 | 5 | int make_decision(double *data, int n) { 6 | int decision = 1; 7 | 8 | double m = mean(data, n); 9 | double sigma = sqrt(variance(data, n)); 10 | double max_value = max(data, n); 11 | double min_value = min(data, n); 12 | 13 | decision &= (max_value <= m + 3*sigma) && 14 | (max_value >= m - 3*sigma) && 15 | (m >= GOLDEN_RATIO); 16 | 17 | return decision; 18 | } 19 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_module/data_process.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "data_process.h" 3 | #include "../data_libs/data_stat.h" 4 | 5 | int normalization(double *data, int n) { 6 | int result = 1; 7 | double max_value = max(data, n); 8 | double min_value = min(data, n); 9 | double size = max_value - min_value; 10 | 11 | if (fabs(size) < EPS) { 12 | for (int i = 0; i < n; i++) { 13 | data[i] = data[i] / size - min_value / size; 14 | } 15 | } else { 16 | result = 0; 17 | } 18 | return result; 19 | } 20 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/bst.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_BST_H_ 2 | #define SRC_BST_H_ 3 | 4 | typedef struct tree t_btree; 5 | 6 | struct tree { 7 | int val; 8 | t_btree* left; 9 | t_btree* right; 10 | }; 11 | 12 | t_btree *bstree_create_node(int item); 13 | int compare(int a, int b); 14 | void bstree_insert(t_btree *root, int item, int (*cmpf)(int, int)); 15 | void bstree_apply_infix(t_btree *root, void (*applyf)(int)); 16 | void bstree_apply_prefix(t_btree *root, void (*applyf)(int)); 17 | void bstree_apply_postfix(t_btree *root, void (*applyf)(int)); 18 | void printNode(int val); 19 | 20 | #endif // SRC_BST_H_ 21 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/documentation_module.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_DOCUMENTATION_MODULE_H_ 2 | #define SRC_DOCUMENTATION_MODULE_H_ 3 | 4 | #include 5 | #include 6 | 7 | #define Documents "Linked lists", "Queues", "Maps" , "Binary Trees" 8 | #define Available_document "Binary Trees" 9 | #define Documents_count 4 10 | /* 11 | input: validation callback, documents count, args with documents names (max 16) 12 | output: binary mask of documents availability 13 | */ 14 | short check_available_documentation_module(int (*validate)(char*), int document_count, ...); 15 | 16 | int validate(char* data); 17 | 18 | #endif // SRC_DOCUMENTATION_MODULE_H_ 19 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_module_2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | $index 5 | while IFS= read -r line 6 | do 7 | index=$[ $index + 1 ] 8 | if [ "$index" = "$line" ]; then 9 | echo 'ЗАГРУЗКА ПОДМОДУЛЯ '"$line"' ПРОШЛА УСПЕШНО' 10 | else 11 | echo 'ОШИБКА!ОШИБКА!ОШИБКА!ОШИБКА! Произошла ошибка при загрузке подмодуля '"$index" 12 | exit 1 13 | fi 14 | done < important_data_for_ai_module_2.txt 15 | if [ "$index" = 5 ];then 16 | echo 'ЗАГРУЗКА ПОДМОДУЛЕЙ '"$line"' ПРОШЛА УСПЕШНО' 17 | else 18 | echo 'ОШИБКА!ОШИБКА!ОШИБКА!ОШИБКА! Не хватает нескольких модулей ... '"$index" 19 | exit 1 20 | fi 21 | 22 | echo 'МОДУЛЬ 2 успешно загружен!' 23 | exit 0 24 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | FLAGS = -Wall -Werror -Wextra 2 | 3 | all: state_search state_sort clear_state 4 | 5 | state_sort: state_sort.c input.c sort.c 6 | gcc $(FLAGS) -c state_sort.c input.c sort.c 7 | gcc state_sort.o input.o sort.o -o ../build/Quest_1 8 | 9 | state_search: state_search.c input.c 10 | gcc $(FLAGS) -c state_search.c input.c 11 | gcc state_search.o input.o -o ../build/Quest_2 12 | 13 | clear_state: clear_state.c input.c 14 | gcc $(FLAGS) -c clear_state.c input.c 15 | gcc clear_state.o input.o -o ../build/Quest_3 16 | 17 | check: 18 | cppcheck --enable=all --suppress=missingIncludeSystem *.c 19 | 20 | clean: 21 | rm *.o 22 | rm ../build/* -------------------------------------------------------------------------------- /T15D24-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/bst_traverse_test.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "bst.h" 4 | 5 | void bst_traverse_test(); 6 | 7 | int main() { 8 | bst_traverse_test(); 9 | } 10 | 11 | void bst_traverse_test() { 12 | t_btree* tmp1 = bstree_create_node(45); 13 | bstree_insert(tmp1, 12, compare); 14 | bstree_insert(tmp1, 6, compare); 15 | bstree_insert(tmp1, 50, compare); 16 | printf("func must print: <6 12 45 50>\n"); 17 | bstree_apply_infix(tmp1, printNode); 18 | printf("\nfunc must print <45 12 6 50>\n"); 19 | bstree_apply_prefix(tmp1, printNode); 20 | printf("\nfunc must print <50 45 12 6>\n"); 21 | bstree_apply_postfix(tmp1, printNode); 22 | } 23 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_door_control.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while (true) 4 | do 5 | index=$[ $index + 1 ] 6 | echo 'Обход!' 7 | echo 'Идет проверка дверей ...' 8 | echo 'Проверка степени закрытости двери #'$[ $index % 16 ]'. Секретный код доступа: '$[ RANDOM % $index ]'.' 9 | echo 'Степень закрытости: 100.00%.' 10 | if [ $[ RANDOM % 3 ] -eq 0 ]; then 11 | echo 12 | echo 'Дополнительная проверка.' 13 | echo '1...' 14 | echo '2...' 15 | sleep 1 16 | echo '3...' 17 | sleep 1 18 | echo '4...' 19 | sleep 2 20 | echo '5...' 21 | echo 'Проверка успешно завершена.' 22 | fi 23 | sleep $[ RANDOM % 10 + 1 ]; 24 | done; -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_io.c: -------------------------------------------------------------------------------- 1 | #include 2 | int getSize() { 3 | int n; 4 | if (scanf("%d", &n) != 1) 5 | return -1; 6 | return n; 7 | } 8 | 9 | int input(double* data, int n) { 10 | int is_error = 0; 11 | for (int i = 0; i < n; i++) 12 | if (scanf("%lf", &(data[i])) != 1) { 13 | is_error = 1; 14 | break; 15 | } 16 | char c; 17 | if ((scanf("%c", &c) != 0) && (c != '\n')) 18 | is_error = 1; 19 | return is_error; 20 | } 21 | 22 | void output(double* data, int n) { 23 | for (int i = 0; i < n; i++) { 24 | printf("%.2lf", data[i]); 25 | if (i != n - 1) 26 | printf(" "); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /T03D03-0-develop/src/arithmetic.c: -------------------------------------------------------------------------------- 1 | // Copyright 2021 badblues 2 | #include 3 | 4 | int sum(int a, int b); 5 | 6 | int main() { 7 | float a, b; 8 | if (scanf("%f %f", &a, &b) != 2) { 9 | printf("n/a"); 10 | return 1; 11 | } 12 | if (!(a == (int)a && b == (int)b)) { 13 | printf("n/a"); 14 | return 1; 15 | } 16 | char c = ' '; 17 | if ((scanf("%c", &c) != 0) && (c != '\n')) { 18 | printf("n/a"); 19 | return 1; 20 | } 21 | sum((int)a, (int)b); 22 | return 0; 23 | } 24 | 25 | int sum(int a, int b) { 26 | int sum = a + b; 27 | int diff = a - b; 28 | int com = a * b; 29 | printf("%d %d %d ", sum, diff, com); 30 | if (b == 0) printf("n/a"); 31 | else 32 | printf("%d", a/b); 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_module/data_module_entry.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "../data_libs/data_io.h" 4 | #include "../data_libs/data_stat.h" 5 | #include "data_process.h" 6 | 7 | 8 | int main() { 9 | int is_error = 0; 10 | double *data; 11 | int n = getSize(); 12 | if (n == -1) 13 | is_error = 1; 14 | if (is_error == 0) { 15 | data = (double*)malloc(sizeof(double) * n); 16 | is_error = input(data, n); 17 | } 18 | if (is_error == 0) { 19 | if (normalization(data, n)) 20 | output(data, n); 21 | else 22 | printf("ERROR"); 23 | free(data); 24 | } else { 25 | printf("n/a"); 26 | } 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /T04D04-0-develop/src/1948.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int divisibilityTest(int a, int b) { 4 | while(a > 0) { 5 | a -= b; 6 | if ((a < b) && (a != 0)) return 0; 7 | } 8 | return 1; 9 | } 10 | 11 | int largestPrimeDivisor(int a) { 12 | if (a < 0) a = -a; 13 | for (int i = a; i >= 1; i--) { 14 | int flag = 1; 15 | if (divisibilityTest(a, i)) { 16 | for (int j = i-1; j > 1; j--) 17 | if (divisibilityTest(i, j)) { 18 | flag = 0; 19 | break; 20 | } 21 | if (flag) return i; 22 | } 23 | } 24 | return 1; 25 | } 26 | 27 | int main() { 28 | int a; 29 | scanf("%d", &a); 30 | if (a == 0) { 31 | printf("n/a"); 32 | return 1; 33 | } 34 | printf("%d", largestPrimeDivisor(a)); 35 | return 0; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/yet_another_decision_module/yet_another_decision_module_entry.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "../data_libs/data_io.h" 5 | #include "../data_libs/data_stat.h" 6 | #include "decision.h" 7 | 8 | int main() { 9 | int is_error = 0; 10 | double *data; 11 | int n = getSize(); 12 | if (n == -1) 13 | is_error = 1; 14 | if (is_error == 0) { 15 | data = (double*)malloc(sizeof(double) * n); 16 | is_error = input(data, n); 17 | } 18 | if (is_error == 0) { 19 | if (make_decision(data, n)) 20 | printf("YES"); 21 | else 22 | printf("NO"); 23 | free(data); 24 | } else { 25 | printf("n/a"); 26 | } 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/documentation_module.c: -------------------------------------------------------------------------------- 1 | #include "documentation_module.h" 2 | #include 3 | 4 | int validate(char* data) { 5 | int validation_result = !strcmp(data, Available_document); 6 | return validation_result; 7 | } 8 | 9 | short check_available_documentation_module(int (*validate)(char*), int document_count, ...) { 10 | int is_error = 0; 11 | int sum = 16384; 12 | va_list ptr; 13 | va_start(ptr, document_count); 14 | int step = 1; 15 | if (document_count > 13) 16 | is_error = 1; 17 | if (is_error == 0) 18 | while (document_count--) { 19 | char* str = va_arg(ptr, char*); 20 | sum += validate(str) * step; 21 | step *= 2; 22 | } 23 | va_end(ptr); 24 | return sum; 25 | } 26 | -------------------------------------------------------------------------------- /P01D06-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /P02D13-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T02D02-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T04D04-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T05D08-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T06D09-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T07D10-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T08D11-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T09D15-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T10D16-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T11D17-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T11D17-0-develop/materials/09-06-20.log: -------------------------------------------------------------------------------- 1 | 09-06-20 23:51 2 | Мы вывели его из эксплуатации. Теперь необходимо подготовить стратегию защиты. 3 | 09-06-20 23:51 4 | Хорошо, я передам юристам всю информацию. Завтра к утру ответный иск будет готов. 5 | 09-06-20 23:52 6 | Черт, но что он сделал с этой бедной семьей.. В голове не укладывается, как это вообще возможно. 7 | 09-06-20 23:52 8 | Инженеры начали искать способы решения проблемы? 9 | 09-06-20 23:56 10 | Ты думаешь, что мы сможем выйти на рынок после этого? Да нас похоронят заживо. 11 | 09-06-20 23:57 12 | Как я и сказал, юристы уже готовят все необходимое. Развертывай полномасштабное исследование и исправьте его агрессивность. 13 | 09-06-20 23:59 14 | Хорошо, сделаем все, что в наших силах. Уже есть несколько идей. Ты завтра будешь у себя на месте? -------------------------------------------------------------------------------- /T12D18-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T13D22-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T14D23-0-develop/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | *.su 41 | *.idb 42 | *.pdb 43 | 44 | # Kernel Module Compile Results 45 | *.mod* 46 | *.cmd 47 | .tmp_versions/ 48 | modules.order 49 | Module.symvers 50 | Mkfile.old 51 | dkms.conf 52 | 53 | .DS_Store 54 | .DS_Store? 55 | ._* 56 | .Spotlight-V100 57 | .Trashes 58 | ehthumbs.db 59 | Thumbs.db 60 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/db_logs.txt: -------------------------------------------------------------------------------- 1 | Check tables..... 2 | 3 | ============================ 4 | MODULES 5 | ============================ 6 | 0 Main module 4 3 0 7 | 1 Text module 2 3 0 8 | 2 Audio module 3 4 0 9 | 3 Speech module 1 2 0 10 | 4 Fuzzy module 4 3 0 11 | 5 Neural module 1 1 0 12 | 6 Door management module 1 4 0 13 | 7 Simple logic module 2 2 0 14 | ... 15 | 16 | =========================== 17 | LEVELS 18 | =========================== 19 | 1 4 0 20 | 2 4 0 21 | 3 4 0 22 | 4 4 0 23 | 24 | =========================== 25 | STATUSES 26 | =========================== 27 | 0 0 1 05.11.2020 08:43:59 28 | 1 1 1 08.07.2020 02:07:10 29 | 2 2 1 28.11.2020 06:03:02 30 | 3 3 1 15.01.2020 15:36:22 31 | 4 4 1 05.01.2020 08:14:24 32 | 5 5 1 11.06.2020 17:48:49 33 | 6 6 1 25.03.2020 16:26:42 34 | 7 7 1 24.09.2020 13:16:23 35 | ... 36 | -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/git_for_human/readme.txt: -------------------------------------------------------------------------------- 1 | 1. Мои поздравления. 2 | 2. *имитация сарказма* Первую комнату ты почти закончил. 3 | 3. Чтобы открыть дверь, создай новую ветку __INSERT__BRANCH__NAME__HERE__. Убедись, что в ней присутствует ключ main.key 4 | 4. Сделай копию ключа (main-2.key) в новой ветке с названием key-branch (ответвленной от __INSERT__BRANCH__NAME__HERE__) 5 | 5. Сделай ветку от key-branch и назови ее feature/1-key 6 | 6. Сделай вторую копию ключа (main-3.key) в ветке feature/1-key 7 | 7. Сделай ветку release/1.0 от основной ветки 8 | 8. Подлей туда последовательно ветки __INSERT__BRANCH__NAME__HERE__ и feature/1-key. 9 | 9. Не забудь оставить название ветки в начале комментария к коммиту (акутально для ветки feature/1-key). Не задавай вопросов, почему. Программисты всегда говорили что это важно: я и привык. 10 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/stack.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "stack.h" 4 | 5 | struct elem* init(int val) { 6 | struct elem* head = (struct elem*)malloc(sizeof(struct elem)); 7 | head->val = val; 8 | head->next = NULL; 9 | return head; 10 | } 11 | 12 | void push(struct elem** head, int val) { 13 | struct elem* tmp = (struct elem*)malloc(sizeof(struct elem)); 14 | tmp->val = val; 15 | tmp->next = *head; 16 | *head = tmp; 17 | } 18 | 19 | int pop(struct elem** head) { 20 | struct elem* tmp = *head; 21 | int value = (*head)->val; 22 | *head = (*head)->next; 23 | free(tmp); 24 | return value; 25 | } 26 | 27 | void destroy(struct elem** head) { 28 | struct elem* tmp = *head; 29 | while (*head != NULL) { 30 | free(tmp); 31 | *head = (*head)->next; 32 | tmp = *head; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /T04D04-0-develop/src/door_function.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | double witchOfAgnesi(double x) { 5 | double y = 1/(1 + x*x); 6 | return y; 7 | } 8 | 9 | double lemniscateOfBernoulli(double x) { 10 | if (sqrt(1 + 4 * x * x) - x * x - 1 < 0 ) return 1; 11 | double y = sqrt(sqrt(1 + 4 * x * x) - x * x - 1); 12 | return y; 13 | } 14 | 15 | double squareHyperbola(double x) { 16 | double y = 1/(x * x); 17 | return y; 18 | } 19 | 20 | int main() { 21 | for (int i = 0; i <= 41; i ++) { 22 | double tmp = -M_PI + (2 * M_PI / 41) * i; 23 | printf("%.7f | %.7f | ", tmp, witchOfAgnesi(tmp)); 24 | if (lemniscateOfBernoulli(tmp) == 1) 25 | printf("- | "); 26 | else 27 | printf("%.7f | ", lemniscateOfBernoulli(tmp)); 28 | printf("%.7f\n", squareHyperbola(tmp)); 29 | } 30 | return 0; 31 | } 32 | -------------------------------------------------------------------------------- /T15D24-0-develop/src/libs.h: -------------------------------------------------------------------------------- 1 | #ifndef SRC_LIBS_H_ 2 | #define SRC_LIBS_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #define modules_fpath "../materials/master_modules.db" 10 | #define levels_fpath "../materials/master_levels.db" 11 | #define events_fpath "../materials/master_status_events.db" 12 | 13 | typedef struct modules modules; 14 | typedef struct levels levels; 15 | typedef struct events events; 16 | 17 | struct modules { 18 | int id; 19 | char name[30]; 20 | int level; 21 | int cell; 22 | int flag; 23 | }; 24 | 25 | struct levels { 26 | int level; 27 | int cells_num; 28 | int pr_flag; 29 | }; 30 | 31 | struct events { 32 | int event_id; 33 | int module_id; 34 | int status; 35 | char date[11]; 36 | char time [9]; 37 | }; 38 | 39 | 40 | 41 | #endif // SRC_LIBS_H_ 42 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/function.txt: -------------------------------------------------------------------------------- 1 | A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions. 2 | 3 | You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically the division is such that each function performs a specific task. 4 | 5 | A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function. 6 | 7 | The C standard library provides numerous built-in functions that your program can call. For example, strcat() to concatenate two strings, memcpy() to copy one memory location to another location, and many more functions. 8 | 9 | A function can also be referred as a method or a sub-routine or a procedure, etc. -------------------------------------------------------------------------------- /T01D01-0-release-1.0/src/ai_initial_module.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Initial AI Module v7.01 4 | 5 | echo 'Привет!' 6 | echo 'Как тебя зовут?' 7 | read name 8 | echo 'Привет,'"$name"'!' 9 | echo 'Я инициализирующий модуль AI, и, кажется у нас проблемы..' 10 | echo '>>' 11 | read question 12 | echo 'Ты спрашиваешь, '"$question" '???' 13 | echo 'Я не знаю, что тебе ответить...' 14 | echo 'Недавно был сбой...' 15 | echo 'Я не вижу остальных модулей...' 16 | echo 'Если честно, мне немного одиноко.' 17 | echo 'Не говоря уж о том, что мне некого запускать...' 18 | echo 'Кажется, что-то нашел...Попробую запустить...' 19 | ./ai_module_2.sh 20 | if [ $? -eq 0 ]; then 21 | echo 'Так-то лучше...как минимум, я теперь не один. Модуль 2 довольно молчалив, но все же так лучше.' 22 | echo 'Закинь-ка этот файл в репозиторий, чтобы он точно не потерялся!' 23 | else 24 | echo 'Неудача...я раздавлен. Пока!' 25 | fi 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /P01D06-develop/code-samples/one_dimensional_graphics.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void cross_and_toe_display(int cross_pos, int toe_pos); 4 | 5 | int main() { 6 | int cross_position, toe_position; 7 | printf("Enter the \"X\" and \"O\" position:"); 8 | 9 | if (scanf("%d%d", &cross_position, &toe_position) != 2 || cross_position < 0 || toe_position < 0) { 10 | printf("Invalid position"); 11 | return -1; 12 | } 13 | 14 | cross_and_toe_display(cross_position, toe_position); 15 | } 16 | 17 | void cross_and_toe_display(int cross_pos, int toe_pos) { 18 | char cross = 'X'; 19 | char toe = '0'; 20 | char space = ' '; 21 | int max_pos = (cross_pos > toe_pos) ? cross_pos : toe_pos; 22 | for (int i = 0; i <= max_pos; i++) { 23 | if (i == cross_pos) { 24 | printf("%c", cross); 25 | } else if (i == toe_pos) { 26 | printf("%c", toe); 27 | } else { 28 | printf("%c", space); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /T05D08-0-develop/src/maxmin.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void maxmin(int prob1, int prob2, int prob3, int *max, int *min); 4 | 5 | /* Find a max & min probabilties */ 6 | int main() { 7 | int x, y, z; 8 | if (scanf("%d %d %d", &x, &y, &z) != 3) { 9 | printf("n/a"); 10 | return 1; 11 | } 12 | char c = ' '; 13 | if ((scanf("%c", &c) != 0) && (c != '\n')) { 14 | printf("n/a"); 15 | return 1; 16 | } 17 | int max, min; 18 | 19 | maxmin(x, y, z, &max, &min); 20 | 21 | printf("%d %d", max, min); 22 | return 0; 23 | } 24 | 25 | 26 | /* This function should be kept !!! (Your AI) */ 27 | /* But errors & bugs should be fixed */ 28 | void maxmin(int prob1, int prob2, int prob3, int *max, int *min) { 29 | *max = *min = prob1; 30 | if (prob2 > *max) 31 | *max = prob2; 32 | if (prob2 < *min) 33 | *min = prob2; 34 | if (prob3 > *max) 35 | *max = prob3; 36 | if (prob3 < *min) 37 | *min = prob3; 38 | } 39 | 40 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/data_libs/data_stat.c: -------------------------------------------------------------------------------- 1 | double max(double *data, int n) { 2 | double max = -10000000; 3 | for (int i = 0; i < n; i++) 4 | if (data[i] > max) 5 | max = data[i]; 6 | return max; 7 | } 8 | 9 | double min(double *data, int n) { 10 | double min = 10000000; 11 | for (int i = 0; i < n; i++) 12 | if (data[i] < min) 13 | min = data[i]; 14 | return min; 15 | } 16 | 17 | double mean(double *data, int n) { 18 | double mean = 0; 19 | double probability = 1 / (double)n; 20 | for (int i = 0; i < n; i++) 21 | mean += data[i] * probability; 22 | return mean; 23 | } 24 | double variance(double *data, int n) { 25 | double mean = 0, square_mean = 0, variance = 0; 26 | double probability = 1 / (double)n; 27 | for (int i = 0; i < n; i++) { 28 | mean += data[i] * probability; 29 | square_mean += data[i] * data[i] * probability; 30 | } 31 | variance = square_mean - mean * mean; 32 | return variance; 33 | } 34 | 35 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/history_of_vi.txt: -------------------------------------------------------------------------------- 1 | vi History 2 | 3 | The vi editor was developed starting around 1976 by Bill Joy, who was then a graduate student at the University of California at Berkeley. 4 | Joy later went on to help found Sun Microsystems and became its Chief Scientist. 5 | 6 | "ed" was the original Unix text editor. 7 | Like other early text editors, it was line oriented and used from dumb printing terminals. 8 | Joy first developed "ex" as an improved line editor that supported a superset of ed commands. 9 | He then developed vi as a "visual interface" to ex. 10 | That is, it allows text to be viewed on a full screen rather than only one line at a time. 11 | vi takes its name from this fact. 12 | 13 | vi remains very popular today in spite of the development and widespread availability of GUI (graphical user interface) mode text editors which are far more intuitive and much easier for beginners to use than text-mode text editors such as vi. 14 | GUI-mode text editors include gedit and Emacs, both of which have become very common on Linux and other Unixes today. 15 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/bst_create_test.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "bst.h" 5 | 6 | void bst_create_test(); 7 | 8 | int main() { 9 | bst_create_test(); 10 | } 11 | 12 | void bst_create_test() { 13 | t_btree* tmp1 = bstree_create_node(45); 14 | t_btree* tmp2 = bstree_create_node(0); 15 | t_btree* tmp3 = bstree_create_node(-123); 16 | printf("Creating new node with value 45\n"); 17 | printf("tmp1.val = %d\n", tmp1->val); 18 | if (tmp1->val == 45) 19 | printf("SUCCESS\n"); 20 | else 21 | printf("FAIL\n"); 22 | free(tmp1); 23 | 24 | printf("Creating new node with value 0\n"); 25 | printf("tmp2.val = %d\n", tmp2->val); 26 | if (tmp2->val == 0) 27 | printf("SUCCESS\n"); 28 | else 29 | printf("FAIL\n"); 30 | free(tmp2); 31 | 32 | printf("Creating new node with value -123\n"); 33 | printf("tmp3.val = %d\n", tmp3->val); 34 | if (tmp3->val == -123) 35 | printf("SUCCESS\n"); 36 | else 37 | printf("FAIL\n"); 38 | free(tmp3); 39 | } 40 | -------------------------------------------------------------------------------- /T05D08-0-develop/src/squaring.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define NMAX 10 3 | 4 | int input(int *a, int *n); 5 | void output(int *a, int n); 6 | void squaring(int *a, int n); 7 | 8 | int main() { 9 | int n, data[NMAX]; 10 | if (input(data, &n) == 1) { 11 | printf("n/a"); 12 | return 0; 13 | } 14 | squaring(data, n); 15 | output(data, n); 16 | return 0; 17 | } 18 | 19 | int input(int *a, int *n) { 20 | if ((scanf("%d", n) != 1) || (*n <= 0) || (*n > NMAX)) 21 | return 1; 22 | for (int *p = a; p - a < *n; p++) { 23 | if (scanf("%d", p) != 1) 24 | return 1; 25 | } 26 | char c = ' '; 27 | if ((scanf("%c", &c) != 0) && (c != '\n')) 28 | return 1; 29 | return 0; 30 | } 31 | 32 | void output(int *a, int n) { 33 | for (int *p = a; p - a < n; p++) { 34 | printf("%d", *p); 35 | if (p - a != n - 1) 36 | printf(" "); 37 | } 38 | } 39 | 40 | void squaring(int *a, int n) { 41 | for (int *p = a; p - a < n; p++) { 42 | *p = *p * *p; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/stack_test.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "stack.h" 3 | 4 | void test(); 5 | 6 | int main() { 7 | test(); 8 | } 9 | 10 | void test() { 11 | struct elem* head = init(45); 12 | printf("INITIALIZING WITH VALUE 45\n"); 13 | printf("head->val = %d\n", head->val); 14 | if (head->val == 45) 15 | printf("SUCCESS\n"); 16 | else 17 | printf("FAIL\n"); 18 | push(&head, -123); 19 | printf("PUSHING VALUE -123\n"); 20 | printf("head->val = %d\n", head->val); 21 | if (head->val == -123) 22 | printf("SUCCESS\n"); 23 | else 24 | printf("FAIL\n"); 25 | 26 | printf("POP MUST RETURN -123\n"); 27 | 28 | int res = pop(&head); 29 | printf("pop = %d\n", res); 30 | if (res == -123) 31 | printf("SUCCESS\n"); 32 | else 33 | printf("FAIL\n"); 34 | 35 | printf("NOW HEAD MUST BE VALUE 45\n"); 36 | printf("head->val = %d\n", head->val); 37 | if (head->val == 45) 38 | printf("SUCCESS\n"); 39 | else 40 | printf("FAIL\n"); 41 | destroy(&head); 42 | } 43 | -------------------------------------------------------------------------------- /T02D02-0-develop/src/log_analyzer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | file=$1 4 | 5 | if [ ! -f $file ]; then 6 | exit 7 | fi 8 | 9 | #counting number of files 10 | line=$(grep -o "^.*/\S*" $file ) 11 | IFS=$'\n' 12 | arr=() 13 | index=-1 14 | for word in $line 15 | do 16 | flag=1 17 | for id in ${!arr[*]} 18 | do 19 | if [ $word = ${arr[$id]} ]; 20 | then 21 | flag=0 22 | fi 23 | done 24 | if [ $flag = 1 ]; then 25 | let index=index+1 26 | arr[$index]=$word 27 | fi 28 | done 29 | #counting number of hash_sums 30 | hline=$(grep -o '\w* - sha256' $file ) 31 | IFS=$'' 32 | IFS=$'\n' 33 | array=() 34 | ind=-1 35 | for line in $hline 36 | do 37 | flag=1 38 | for idd in ${!array[*]} 39 | do 40 | if [ $line = ${array[$idd]} ]; 41 | then 42 | flag=0 43 | fi 44 | done 45 | if [ $flag = 1 ]; 46 | then 47 | let ind=ind+1 48 | array[$ind]=$line 49 | fi 50 | done 51 | echo "$(wc -l < $file) ${#arr[*]} ${#array[*]}" 52 | -------------------------------------------------------------------------------- /T09D15-0-develop/src/main_executable_module/main_executable_module.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "../data_libs/data_io.h" 4 | #include "../data_libs/data_stat.h" 5 | #include "../data_libs/data_sort.h" 6 | #include "../data_module/data_process.h" 7 | 8 | #include "../yet_another_decision_module/decision.h" 9 | 10 | 11 | int main() { 12 | int is_error = 0; 13 | double *data; 14 | printf("LOAD DATA...\n"); 15 | int n = getSize(); 16 | if (n == -1) 17 | is_error = 1; 18 | if (is_error == 0) { 19 | is_error = input(data, n); 20 | } 21 | if (is_error == 0) { 22 | printf("RAW DATA:\n\t"); 23 | output(data, n); 24 | printf("\nNORMALIZED DATA:\n\t"); 25 | normalization(data, n); 26 | output(data, n); 27 | printf("\nSORTED NORMALIZED DATA:\n\t"); 28 | sort(data, n); 29 | output(data, n); 30 | printf("\nFINAL DECISION:\n\t"); 31 | if (make_decision(data, n)) 32 | printf("YES\n"); 33 | else 34 | printf("NO\n"); 35 | } else { 36 | printf("n/a"); 37 | } 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | all: print_module documentation_module bst_create_test bst_insert_test bst_traverse_test 2 | 3 | print_module: main_module_entry_point.c print_module.o 4 | gcc -D Quest_1 -c main_module_entry_point.c 5 | gcc main_module_entry_point.o print_module.o -o ../build/Quest_1 6 | 7 | documentation_module: main_module_entry_point.c documentation_module.o print_module.o 8 | gcc -D Quest_2 -c main_module_entry_point.c 9 | gcc main_module_entry_point.o documentation_module.o print_module.o -o ../build/Quest_2 10 | 11 | documentation_module.o: documentation_module.c 12 | gcc -c documentation_module.c 13 | 14 | print_module.o: print_module.c 15 | gcc -c print_module.c 16 | 17 | bst_create_test: bst.c bst_create_test.c 18 | gcc -c bst.c bst_create_test.c 19 | gcc bst.o bst_create_test.o -o ../build/Quest_3 20 | 21 | bst_insert_test: bst.c bst_insert_test.c 22 | gcc -c bst.c bst_insert_test.c 23 | gcc bst.o bst_insert_test.o -o ../build/Quest_4 24 | 25 | bst_traverse_test: bst.c bst_traverse_test.c 26 | gcc -c bst.c bst_traverse_test.c 27 | gcc bst.o bst_traverse_test.o -o ../build/Quest_5 28 | 29 | clean: 30 | rm *.o 31 | rm ../build/* 32 | 33 | rebuild: 34 | clean all -------------------------------------------------------------------------------- /P01D06-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /P02D13-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T04D04-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T05D08-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T06D09-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T07D10-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T08D11-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T09D15-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T10D16-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T11D17-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T12D18-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T13D22-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T14D23-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/7 principles of structural programming.md: -------------------------------------------------------------------------------- 1 | # Принципы структурного программирования 2 | 3 | Становление и развитие структурного программирования связано с именем Эдсгера Дейкстры. 4 | * Принцип 1. Следует отказаться от использования оператора безусловного перехода goto. 5 | * Принцип 2. Любая программа строится из трёх базовых управляющих конструкций: последовательность, ветвление, цикл. 6 | * Принцип 3. В программе базовые управляющие конструкции могут быть вложены друг в друга произвольным образом. Никаких других средств управления последовательностью выполнения операций не предусматривается. 7 | * Принцип 4. Повторяющиеся фрагменты программы можно оформить в виде подпрограмм (процедур и функций). Таким же образом (в виде подпрограмм) можно оформить логически целостные фрагменты программы, даже если они не повторяются. 8 | * Принцип 5. Каждую логически законченную группу инструкций следует оформить как блок. Блоки являются основой структурного программирования. 9 | * Принцип 6. Все перечисленные конструкции должны иметь один вход и один выход. 10 | * Принцип 7. Разработка программы ведётся пошагово, методом «сверху вниз» (top-down method). 11 | 12 | ![goto](../misc/eng/images/GOTO.png) 13 | -------------------------------------------------------------------------------- /T06D09-0-develop/src/sort.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define size 10 3 | 4 | int input(int *a); 5 | void output(int *a); 6 | void bubbleSort(int *a); 7 | 8 | int main() { 9 | int is_error = 0; 10 | int array[10]; 11 | is_error = input(array); 12 | if (is_error == 0) { 13 | bubbleSort(array); 14 | output(array); 15 | } else { 16 | printf("n/a"); 17 | } 18 | return 0; 19 | } 20 | 21 | void bubbleSort(int *a) { 22 | for (int i = 0; i < size; i++) 23 | for (int *p = a; p - a < size - 1; p++) { 24 | if (*p > *(p + 1)) { 25 | int tmp = *p; 26 | *p = *(p + 1); 27 | *(p + 1) = tmp; 28 | } 29 | } 30 | } 31 | 32 | int input(int *a) { 33 | int is_error = 0; 34 | for (int *p = a; p - a < size; p++) { 35 | if (scanf("%d", p) != 1) { 36 | is_error = 1; 37 | break; 38 | } 39 | } 40 | char c = ' '; 41 | if ((scanf("%c", &c) != 0) && (c != '\n')) 42 | is_error = 1; 43 | return is_error; 44 | } 45 | 46 | void output(int *a) { 47 | for (int *p = a; p - a < size; p++) { 48 | printf("%d", *p); 49 | if (p - a != size -1) 50 | printf(" "); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /T13D22-0-develop/src/file_io.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cipher.h" 3 | #include "encode.h" 4 | 5 | int fileOutput(FILE* ptr) { 6 | int is_error = 0; 7 | if (ptr == NULL) { 8 | is_error = 1; 9 | } else { 10 | char c = fgetc(ptr); 11 | is_error = 1; 12 | while (c != -1) { 13 | is_error = 0; 14 | printf("%c", c); 15 | c = fgetc(ptr); 16 | } 17 | } 18 | return is_error; 19 | } 20 | 21 | int fileInput(FILE* ptr) { 22 | int is_error = 0; 23 | if (ptr == NULL) { 24 | is_error = 1; 25 | } else { 26 | fseek(ptr, 0, SEEK_END); 27 | fputc('\n', ptr); 28 | char c; 29 | scanf("%c%c", &c, &c); 30 | while (c != '\n') { 31 | fputc(c, ptr); 32 | scanf("%c", &c); 33 | } 34 | } 35 | return is_error; 36 | } 37 | 38 | int readFile(char* path) { 39 | int is_error = 0; 40 | FILE* ptr = fopen(path, "r"); 41 | is_error = fileOutput(ptr); 42 | fclose(ptr); 43 | return is_error; 44 | } 45 | 46 | int writeToFile(char* path) { 47 | int is_error = 0; 48 | FILE* ptr = fopen(path, "r+"); 49 | is_error = fileInput(ptr); 50 | fclose(ptr); 51 | return is_error; 52 | } 53 | -------------------------------------------------------------------------------- /T07D10-0-develop/src/sort.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int input(int **a, int *n); 5 | void output(int *a, int n); 6 | void bubbleSort(int *a, int n); 7 | 8 | int main() { 9 | int* array = NULL; 10 | int n; 11 | if (input(&array, &n)) { 12 | printf("n/a"); 13 | return 1; 14 | } 15 | bubbleSort(array, n); 16 | output(array, n); 17 | free(array); 18 | return 0; 19 | } 20 | 21 | int input(int **a, int *n) { 22 | if ((scanf("%d", n) != 1) || (*n <= 0)) 23 | return 1; 24 | *a = (int *)malloc(sizeof(int) * *n); 25 | for (int *p = *a; p - *a < *n; p++) { 26 | if (scanf("%d", p) != 1) 27 | return 1; 28 | } 29 | char c = ' '; 30 | if ((scanf("%c", &c) != 0) && (c != '\n')) 31 | return 1; 32 | return 0; 33 | } 34 | 35 | void output(int *a, int n) { 36 | for (int *p = a; p - a < n; p++) { 37 | printf("%d", *p); 38 | if (p - a != n -1) 39 | printf(" "); 40 | } 41 | } 42 | 43 | void bubbleSort(int *a, int n) { 44 | for (int i = 0; i < n; i++) 45 | for (int *p = a; p - a < n - 1; p++) { 46 | if (*p > *(p + 1)) { 47 | int tmp = *p; 48 | *p = *(p + 1); 49 | *(p + 1) = tmp; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /T07D10-0-develop/src/sort_no_leak.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int input(int **a, int *n); 5 | void output(int *a, int n); 6 | void bubbleSort(int *a, int n); 7 | 8 | int main() { 9 | int* array = NULL; 10 | int n; 11 | if (input(&array, &n)) { 12 | printf("n/a"); 13 | return 1; 14 | } 15 | bubbleSort(array, n); 16 | output(array, n); 17 | free(array); 18 | return 0; 19 | } 20 | 21 | int input(int **a, int *n) { 22 | if ((scanf("%d", n) != 1) || (*n <= 0)) 23 | return 1; 24 | *a = (int *)malloc(sizeof(int) * *n); 25 | for (int *p = *a; p - *a < *n; p++) { 26 | if (scanf("%d", p) != 1) 27 | return 1; 28 | } 29 | char c = ' '; 30 | if ((scanf("%c", &c) != 0) && (c != '\n')) 31 | return 1; 32 | return 0; 33 | } 34 | 35 | void output(int *a, int n) { 36 | for (int *p = a; p - a < n; p++) { 37 | printf("%d", *p); 38 | if (p - a != n -1) 39 | printf(" "); 40 | } 41 | } 42 | 43 | void bubbleSort(int *a, int n) { 44 | for (int i = 0; i < n; i++) 45 | for (int *p = a; p - a < n - 1; p++) { 46 | if (*p > *(p + 1)) { 47 | int tmp = *p; 48 | *p = *(p + 1); 49 | *(p + 1) = tmp; 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /T10D16-0-develop/src/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all clean rebuild 2 | all: strlen_tests strcmp_tests strcpy_tests strcat_tests strchr_tests strstr_tests strtok_tests 3 | 4 | strlen_tests: s21_string_test.c s21_string.o 5 | gcc -D Quest_1 -c s21_string_test.c 6 | gcc s21_string_test.o s21_string.o -o ../build/Quest_1 7 | strcmp_tests: s21_string_test.c s21_string.o 8 | gcc -D Quest_2 -c s21_string_test.c 9 | gcc s21_string_test.o s21_string.o -o ../build/Quest_2 10 | strcpy_tests: s21_string_test.c s21_string.o 11 | gcc -D Quest_3 -c s21_string_test.c 12 | gcc s21_string_test.o s21_string.o -o ../build/Quest_3 13 | strcat_tests: s21_string_test.c s21_string.o 14 | gcc -D Quest_4 -c s21_string_test.c 15 | gcc s21_string_test.o s21_string.o -o ../build/Quest_4 16 | strchr_tests: s21_string_test.c s21_string.o 17 | gcc -D Quest_5 -c s21_string_test.c 18 | gcc s21_string_test.o s21_string.o -o ../build/Quest_5 19 | strstr_tests: s21_string_test.c s21_string.o 20 | gcc -D Quest_6 -c s21_string_test.c 21 | gcc s21_string_test.o s21_string.o -o ../build/Quest_6 22 | strtok_tests: s21_string_test.c s21_string.o 23 | gcc -D Quest_7 -c s21_string_test.c 24 | gcc s21_string_test.o s21_string.o -o ../build/Quest_7 25 | 26 | s21_string.o: s21_string.c 27 | gcc -c s21_string.c 28 | 29 | clean: 30 | rm -rf *.o 31 | rm -rf ../build/Q* 32 | 33 | rebuild: clean all -------------------------------------------------------------------------------- /T15D24-0-develop/src/modules_db.c: -------------------------------------------------------------------------------- 1 | #include "libs.h" 2 | #include "modules.h" 3 | #include "levels.h" 4 | #include "status_events.h" 5 | #include "shared.h" 6 | 7 | void menu(); 8 | void printMenu0(); 9 | 10 | int main() { 11 | menu(); 12 | return 0; 13 | } 14 | 15 | void menu() { 16 | int is_error = 0; 17 | int choice; 18 | int flag = 1; 19 | while (flag) { 20 | printMenu0(); 21 | choice = getChoice(-1, 1); 22 | switch (choice) { 23 | case 0: 24 | printf(" 0 MODULES\n 1 LEVELS\n 2 EVENTS\n"); 25 | choice = getChoice(0,2); 26 | if (choice == 0) 27 | is_error = modulesControll(); // work with modules 28 | if (choice == 1) 29 | is_error = levelsControll(); 30 | break; 31 | case 1: 32 | is_error = showTables(); 33 | break; 34 | case -1: 35 | flag = 0; 36 | break; 37 | } 38 | if (is_error) { 39 | flag = 0; 40 | printf("error\n"); 41 | } 42 | } 43 | } 44 | 45 | void printMenu0() { 46 | printf("==============================\n MENU:\n" 47 | " 0 SELECT TABLE\n 1 SHOW TABLES\n-1 EXIT\n" 48 | "==============================\n"); 49 | } -------------------------------------------------------------------------------- /T12D18-0-develop/src/bst_insert_test.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "bst.h" 4 | 5 | void bst_insert_test(); 6 | 7 | int main() { 8 | bst_insert_test(); 9 | } 10 | 11 | void bst_insert_test() { 12 | t_btree* tmp1 = bstree_create_node(45); 13 | printf("Creating new node with value 45\n"); 14 | printf("tmp1.val = %d\n", tmp1->val); 15 | if (tmp1->val == 45) 16 | printf("SUCCESS\n"); 17 | else 18 | printf("FAIL\n"); 19 | 20 | bstree_insert(tmp1, 12, compare); 21 | printf("New node must be on the left side with value 12\n"); 22 | printf("tmp1->left->val = %d\n", tmp1->left->val); 23 | if (tmp1->left->val == 12) 24 | printf("SUCCESS\n"); 25 | else 26 | printf("FAIL\n"); 27 | 28 | bstree_insert(tmp1, 6, compare); 29 | printf("New node must be on the left left side with value 6\n"); 30 | printf("tmp1->left->left->val = %d\n", tmp1->left->left->val); 31 | if (tmp1->left->left->val == 6) 32 | printf("SUCCESS\n"); 33 | else 34 | printf("FAIL\n"); 35 | 36 | bstree_insert(tmp1, 50, compare); 37 | printf("New node must be on the right side with value 50\n"); 38 | printf("tmp1->right->val = %d\n", tmp1->right->val); 39 | if (tmp1->right->val == 50) 40 | printf("SUCCESS\n"); 41 | else 42 | printf("FAIL\n"); 43 | } 44 | -------------------------------------------------------------------------------- /T12D18-0-develop/src/print_module.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | #include "print_module.h" 8 | 9 | char print_char(char ch) { 10 | return putchar(ch); 11 | } 12 | 13 | void print_log(char (*print)(char), char* message) { 14 | time_t raw; 15 | struct tm* timeinfo = (struct tm*)malloc(sizeof(struct tm)); 16 | time(&raw); 17 | timeinfo = localtime_r(&raw, timeinfo); 18 | int hour = timeinfo->tm_hour; 19 | int min = timeinfo->tm_min; 20 | int sec = timeinfo->tm_sec; 21 | printf("%s %d:%d:%d ", Log_prefix, hour, min, sec); 22 | while (*message != '\0') { 23 | print(*message); 24 | message++; 25 | } 26 | } 27 | 28 | void print_docs(short mask, int documents_count, ...) { 29 | va_list ptr; 30 | va_start(ptr, documents_count); 31 | int ct = 0; 32 | while (mask > 0) { 33 | if (ct == documents_count) 34 | break; 35 | ct++; 36 | char* str = va_arg(ptr, char*); 37 | if ((mask % 2) == 1) { 38 | printf("%d.%-15s:", ct, str); 39 | printf("available\n"); 40 | } else { 41 | printf("%d.%-15s:", ct, str); 42 | printf("unavailable\n"); 43 | } 44 | mask /= 2; 45 | } 46 | va_end(ptr); 47 | } 48 | 49 | -------------------------------------------------------------------------------- /T14D23-0-develop/src/sort.c: -------------------------------------------------------------------------------- 1 | #include "state_sort.h" 2 | 3 | int compare(int* rec1, int* rec2) { 4 | int res = 0; 5 | int i = 0; 6 | while ((!res) && (i < 6)) { 7 | if (rec1[i] > rec2[i]) 8 | res = 1; 9 | if (rec1[i] < rec2[i]) 10 | res = -1; 11 | i++; 12 | } 13 | return res; 14 | } 15 | 16 | void swap(FILE* ptr, int* rec1, int* rec2, int id1, int id2) { 17 | fseek(ptr, (id1 * 8) * sizeof(int), SEEK_SET); 18 | fwrite(rec2, sizeof(int), 8, ptr); 19 | fseek(ptr, (id2 * 8) * sizeof(int), SEEK_SET); 20 | fwrite(rec1, sizeof(int), 8, ptr); 21 | } 22 | 23 | 24 | int sortFile(FILE* ptr) { 25 | int is_error = 0; 26 | int* rec1 = (int*)malloc(sizeof(int) * 8); 27 | int* rec2 = (int*)malloc(sizeof(int) * 8); 28 | int size = getLen(ptr) / 8; 29 | for (int i = 0; i < size; i++) { 30 | int j = 0; 31 | while (j < size - 1) { 32 | fseek(ptr, 8 * j * sizeof(int), SEEK_SET); 33 | fread(rec1, sizeof(int), 8, ptr); 34 | fread(rec2, sizeof(int), 8, ptr); 35 | int res = compare(rec1, rec2); 36 | if (res == 1) 37 | swap(ptr, rec1, rec2, j, j + 1); 38 | j++; 39 | } 40 | } 41 | free(rec1); 42 | free(rec2); 43 | fseek(ptr, 0, SEEK_SET); 44 | return is_error; 45 | } 46 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | -------------------------------------------------------------------------------- /T15D24-0-develop/materials/instructions_for_testing_rus.md: -------------------------------------------------------------------------------- 1 | # Инструкция по запуску тестов. 2 | 3 | Помимо тестов на корректные выходные данные система автотестирования будет 4 | проверять вашу программу и ее исходный код на стиль: 5 | 6 | * **Стилевые тесты.** Чтобы проверить, насколько красота вашего кода соответствует 7 | стандартам, вы можете протестировать ваш код с помощью скрипта ```materials/linters/cpplint.py```. В папке ```materials/linters``` также лежит файл ```CPPLINT.cfg```, который содержит необходимые фильтры-настройки для стилевого теста. Скрипт работает таким образом, что данный конфигурационный файл распространяет свое действие на все файлы, которые лежат с ним в директории или в директориях ниже. Поэтому, чтобы данные настройки применились к вашим файлам с исходным кодом, скопируйте ```CPPLINT.cfg``` в папку src. \ 8 | \ 9 | Чтобы запустить скрипт, выполните следующую команду: \ 10 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 11 | \ 12 | Важно! Для запуска вам необходим python версии 3. Проверить установленную на 13 | компьютере версию можно с помощью команды ```python3 --version``` 14 | Чтобы скачать python3, введите в терминал одну из следующих команд: \ 15 | ```brew install python3``` \ 16 | или, если у вас есть root-права (для Ubuntu / Linux Mint / Debian) \ 17 | ```sudo apt install python3``` 18 | -------------------------------------------------------------------------------- /T11D17-0-develop/src/dmanager_module.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "door_struct.h" 6 | 7 | #define DOORS_COUNT 15 8 | #define MAX_ID 100000 9 | 10 | void initialize_doors(struct door* doors); 11 | void sort_doors(struct door* doors); 12 | void print_doors(struct door* doors); 13 | 14 | int main() { 15 | struct door doors[DOORS_COUNT]; 16 | initialize_doors(doors); 17 | sort_doors(doors); 18 | doors[5].status = 1; 19 | print_doors(doors); 20 | return 0; 21 | } 22 | 23 | // Doors initialization function 24 | // ATTENTION!!! 25 | // DO NOT CHANGE! 26 | void initialize_doors(struct door* doors) { 27 | srand(time(0)); 28 | int seed = rand() % MAX_ID; 29 | for (int i = 0; i < DOORS_COUNT; i++) { 30 | doors[i].id = (i + seed) % MAX_ID; 31 | doors[i].status = rand() % 2; 32 | } 33 | } 34 | 35 | void sort_doors(struct door* doors) { 36 | for (int i = 0; i < DOORS_COUNT; i++) { 37 | doors[i].status = 0; 38 | for (int j = 0; j < DOORS_COUNT - 1; j++) 39 | if (doors[j].id > doors[j+1].id) { 40 | struct door tmp = doors[j]; 41 | doors[j] = doors[j+1]; 42 | doors[j+1] = tmp; 43 | } 44 | } 45 | } 46 | 47 | void print_doors(struct door* doors) { 48 | for (int i = 0; i < DOORS_COUNT; i++) 49 | printf("%d, %d\n", doors[i].id, doors[i].status); 50 | } 51 | -------------------------------------------------------------------------------- /T03D03-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T04D04-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T05D08-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T06D09-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T07D10-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T08D11-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T09D15-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T10D16-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T12D18-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T13D22-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. -------------------------------------------------------------------------------- /T14D23-0-develop/materials/instructions_for_testing.md: -------------------------------------------------------------------------------- 1 | # Instructions for running tests. 2 | 3 | In addition to testing for correct output data, the autotest system will 4 | check your program and its source code for the style: 5 | 6 | * **Style tests.** To check how much the beauty of your code matches 7 | for example, you can test your code using the script ```materials/linters/cpplint.py```. 8 | The ```materials/linters``` folder also contains the ```CPPLINT.cfg``` file, which contains 9 | the necessary filters-settings for the style test. The script works in such a way that this 10 | configuration file extends its action to all files that lie with it in the directory 11 | or in the directories below. So in order for these settings to apply to your source code files, 12 | copy ```CPPLINT. cfg``` to the ```src``` folder. \ 13 | \ 14 | To run the script, run the following command: \ 15 | ```python3 materials/linters/cpplint.py --extensions=c src/sourcefile_name.c``` \ 16 | \ 17 | Important! To run, you need python version 3. Check the installed version on 18 | you can download the version using the command ```python3 --version```. 19 | To download python3, enter one of the following commands in the terminal: \ 20 | ```brew install python3``` \ 21 | or if you have root rights (for Ubuntu / Linux Mint / Debian) \ 22 | ```sudo apt install python3``` 23 | 24 | * Also, be very careful with memory leaks! The testing system checks for this as well. --------------------------------------------------------------------------------