├── api
├── tests
│ ├── task_5_2_1
│ │ ├── test_3.ans
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_2.pl
│ │ ├── test_1.pl
│ │ ├── test_2.ans
│ │ ├── test_3.pl
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ ├── test_7.ans
│ │ ├── test_1.ans
│ │ ├── test_7.pl
│ │ └── description.md
│ ├── task_5_2_2
│ │ ├── test_2.ans
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_3.ans
│ │ └── description.md
│ ├── task_5_5_1
│ │ ├── test_3.ans
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_1.pl
│ │ └── description.md
│ ├── task_5_5_2
│ │ ├── test_2.ans
│ │ ├── test_2.pl
│ │ ├── test_4.pl
│ │ ├── test_1.ans
│ │ ├── test_4.ans
│ │ ├── test_3.pl
│ │ ├── test_3.ans
│ │ ├── test_1.pl
│ │ └── description.md
│ ├── task_5_5_4
│ │ ├── test_2.ans
│ │ ├── test_6.ans
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_5.pl
│ │ ├── test_4.pl
│ │ ├── test_2.pl
│ │ ├── test_6.pl
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_5.ans
│ │ └── description.md
│ ├── task_5_5_5
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_7.ans
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_1.ans
│ │ ├── test_4.ans
│ │ ├── test_2.pl
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ ├── test_1.pl
│ │ └── description.md
│ ├── task_5_5_6
│ │ ├── test_2.ans
│ │ ├── test_5.ans
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_3.pl
│ │ ├── test_4.ans
│ │ ├── test_6.ans
│ │ ├── test_7.ans
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_2.pl
│ │ ├── test_1.pl
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ └── description.md
│ ├── task_5_5_7
│ │ ├── test_3.ans
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_4.ans
│ │ ├── test_5.pl
│ │ ├── test_4.pl
│ │ ├── test_5.ans
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_1.pl
│ │ └── description.md
│ ├── task_5_5_8
│ │ ├── test_3.ans
│ │ ├── test_5.pl
│ │ ├── test_2.ans
│ │ ├── test_6.pl
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_7.ans
│ │ ├── test_7.pl
│ │ ├── test_4.pl
│ │ ├── test_4.ans
│ │ └── description.md
│ ├── task_5_5_9
│ │ ├── test_2.ans
│ │ ├── test_4.ans
│ │ ├── test_7.ans
│ │ ├── test_3.pl
│ │ ├── test_1.ans
│ │ ├── test_2.pl
│ │ ├── test_3.ans
│ │ ├── test_4.pl
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_1.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ └── description.md
│ ├── task_5_6_1
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_6.ans
│ │ ├── test_2.ans
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ └── description.md
│ ├── task_5_6_2
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_2.ans
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_2.pl
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_3.pl
│ │ ├── test_1.pl
│ │ └── description.md
│ ├── task_6_2_2
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_1.pl
│ │ ├── test_1.ans
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── shared_consult_data.pl
│ │ └── description.md
│ ├── task_6_2_4
│ │ ├── test_7.ans
│ │ ├── test_4.pl
│ │ ├── test_7.pl
│ │ ├── test_5.pl
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_8.ans
│ │ ├── test_1.pl
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_8.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ └── description.md
│ ├── task_7_2_1
│ │ ├── test_4.ans
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_2.pl
│ │ ├── test_5.ans
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ └── description.md
│ ├── task_7_2_2
│ │ ├── test_5.ans
│ │ ├── test_4.ans
│ │ ├── test_3.ans
│ │ ├── test_2.ans
│ │ ├── test_3.pl
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_5.pl
│ │ ├── test_4.pl
│ │ ├── test_1.py
│ │ ├── test_2.py
│ │ ├── description.md
│ │ └── common.py
│ ├── task_7_2_3
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_2.ans
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_4.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ ├── test_3.pl
│ │ └── description.md
│ ├── task_7_4_1
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_8.ans
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_1.ans
│ │ ├── test_5.ans
│ │ ├── test_7.ans
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ ├── test_8.pl
│ │ ├── shared_consult_data.pl
│ │ └── description.md
│ ├── task_7_4_2
│ │ ├── test_3.ans
│ │ ├── test_5.ans
│ │ ├── test_7.ans
│ │ ├── test_9.ans
│ │ ├── test_8.pl
│ │ ├── test_2.ans
│ │ ├── test_6.ans
│ │ ├── test_8.ans
│ │ ├── test_7.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_6.pl
│ │ ├── test_9.pl
│ │ ├── test_5.pl
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_2.pl
│ │ └── description.md
│ ├── task_7_4_3
│ │ ├── test_6.ans
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_8.ans
│ │ ├── shared_consult_data.pl
│ │ ├── test_5.ans
│ │ ├── test_7.ans
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_2.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ ├── test_8.pl
│ │ └── description.md
│ ├── task_5_1
│ │ ├── test_11.ans
│ │ ├── test_12.ans
│ │ ├── test_14.ans
│ │ ├── test_15.ans
│ │ ├── test_17.ans
│ │ ├── test_2.ans
│ │ ├── test_20.ans
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_7.ans
│ │ ├── test_9.ans
│ │ ├── test_10.pl
│ │ ├── test_11.pl
│ │ ├── test_12.pl
│ │ ├── test_13.pl
│ │ ├── test_19.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_7.pl
│ │ ├── test_1.pl
│ │ ├── test_10.ans
│ │ ├── test_13.ans
│ │ ├── test_14.pl
│ │ ├── test_15.pl
│ │ ├── test_16.pl
│ │ ├── test_17.pl
│ │ ├── test_18.ans
│ │ ├── test_18.pl
│ │ ├── test_20.pl
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ ├── test_9.pl
│ │ ├── test_8.ans
│ │ ├── test_8.pl
│ │ ├── test_1.ans
│ │ ├── test_19.ans
│ │ ├── test_16.ans
│ │ ├── shared_consult_data.pl
│ │ └── description.md
│ ├── task_5_5_3
│ │ ├── test_2.ans
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ └── description.md
│ ├── task_7_5_1+2
│ │ ├── test_2.ans
│ │ ├── test_6.ans
│ │ ├── test_1.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_7.ans
│ │ ├── test_8.ans
│ │ ├── test_8.pl
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_6.pl
│ │ ├── test_3.pl
│ │ ├── test_5.pl
│ │ ├── test_7.pl
│ │ ├── test_4.pl
│ │ └── description.md
│ ├── task_6_1_2
│ │ ├── test_1.pl
│ │ ├── test_1.ans
│ │ ├── test_2.pl
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_3.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ ├── test_7.ans
│ │ ├── test_7.pl
│ │ └── description.md
│ ├── task_6_2_3
│ │ ├── test_5.pl
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_7.ans
│ │ ├── test_7.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ └── description.md
│ ├── task_6_2_5
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ ├── test_2.ans
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_3.ans
│ │ ├── shared_consult_data.pl
│ │ ├── test_1.ans
│ │ ├── test_4.ans
│ │ └── description.md
│ ├── task_6_2_6
│ │ ├── test_1.pl
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── test_4.pl
│ │ ├── test_7.pl
│ │ ├── test_8.pl
│ │ ├── test_1.ans
│ │ ├── test_4.ans
│ │ ├── test_5.pl
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── test_7.ans
│ │ ├── test_8.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_5.ans
│ │ ├── shared_consult_data.pl
│ │ └── description.md
│ ├── task_6_1_1
│ │ ├── test_7.pl
│ │ ├── test_7.ans
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_6.ans
│ │ ├── test_6.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_2.ans
│ │ ├── test_2.pl
│ │ ├── test_3.ans
│ │ ├── test_3.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ └── description.md
│ ├── task_6_1_3
│ │ ├── test_6.pl
│ │ ├── test_1.ans
│ │ ├── test_4.ans
│ │ ├── test_4.pl
│ │ ├── test_5.ans
│ │ ├── test_5.pl
│ │ ├── test_6.ans
│ │ ├── test_8.ans
│ │ ├── test_1.pl
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_3.pl
│ │ ├── test_7.ans
│ │ ├── shared_consult_data.pl
│ │ ├── test_7.pl
│ │ ├── test_8.pl
│ │ ├── test_2.pl
│ │ └── description.md
│ ├── task_6_2_1
│ │ ├── test_1.ans
│ │ ├── test_1.pl
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_2.pl
│ │ ├── test_3.pl
│ │ ├── shared_consult_data.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ └── description.md
│ ├── task_7_5_3
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── shared_consult_data.pl
│ │ ├── test_5.ans
│ │ ├── test_6.ans
│ │ ├── test_7.ans
│ │ ├── test_8.ans
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_2.pl
│ │ ├── test_4.pl
│ │ ├── test_5.pl
│ │ ├── test_6.pl
│ │ ├── test_7.pl
│ │ ├── test_8.pl
│ │ └── description.md
│ └── task_7_5_4
│ │ ├── test_1.ans
│ │ ├── test_2.ans
│ │ ├── test_3.ans
│ │ ├── test_4.ans
│ │ ├── test_5.ans
│ │ ├── test_2.pl
│ │ ├── test_1.pl
│ │ ├── test_3.pl
│ │ ├── test_5.pl
│ │ ├── test_4.pl
│ │ └── description.md
├── examples
│ ├── task_7_5_4.pl
│ ├── task_5_5_1.pl
│ ├── task_5_5_2.pl
│ ├── task_5_2_1.pl
│ ├── task_5_2_2.pl
│ ├── task_7_2_1.pl
│ ├── task_6_2_1.hl
│ ├── task_6_2_3.pl
│ ├── task_6_2_2.pl
│ ├── task_5_5_3.pl
│ ├── task_7_4_1.pl
│ ├── task_7_4_2.pl
│ ├── task_6_1_3.pl
│ ├── task_5_5_7.pl
│ ├── task_5_5_6.pl
│ ├── task_7_5_1+2.pl
│ ├── task_6_1_2.pl
│ ├── task_7_2_2.pl
│ ├── task_6_2_4.pl
│ ├── task_6_2_1.pl
│ ├── task_7_2_3.pl
│ ├── task_6_1_1.pl
│ ├── task_5_5_8.pl
│ ├── task_5_1.pl
│ ├── task_6_2_5.pl
│ ├── task_5_5_4.pl
│ ├── task_5_5_5.pl
│ ├── task_5_5_9.pl
│ ├── task_6_2_6.pl
│ ├── task_5_6_1.pl
│ ├── task_7_4_3.pl
│ ├── task_5_6_2.pl
│ └── task_7_5_3.pl
├── submit.sh
├── wsgi.py
├── submit_and_execute.sh
├── requirements.txt
├── execute.sh
├── settings.py
├── test_prolog_program.j2
├── Dockerfile
├── testlib
│ └── errorcheck.py
├── translator.py
├── api.py
└── prolog_parsing.py
├── .gitignore
├── react-frontend
├── public
│ ├── favicon.ico
│ ├── manifest.json
│ └── index.html
├── src
│ ├── style.css
│ ├── index.js
│ ├── Themes.js
│ ├── TaskDescription.js
│ ├── Header.js
│ ├── ExecutionResults.js
│ ├── CodeForm.js
│ └── App.js
├── Dockerfile
├── .gitignore
└── package.json
├── docker-compose.yml
└── README.md
/api/tests/task_5_2_1/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_5.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_7.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_5.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_4.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_7.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_1.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_1.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_7.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_4.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_5.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_4.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_4.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_8.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_3.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_5.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_7.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_9.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_11.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_12.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_14.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_15.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_17.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_2.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_20.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_5.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_6.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_7.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_9.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_2.ans:
--------------------------------------------------------------------------------
1 | no
2 |
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_2.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_6.ans:
--------------------------------------------------------------------------------
1 | no
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_6.pl:
--------------------------------------------------------------------------------
1 | my_list(foo).
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_1.pl:
--------------------------------------------------------------------------------
1 | max(1, 2, X).
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_3.pl:
--------------------------------------------------------------------------------
1 | max(7, 7, X).
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_4.pl:
--------------------------------------------------------------------------------
1 | max(1, 7, 1).
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_5.pl:
--------------------------------------------------------------------------------
1 | max(1, 7, 7).
--------------------------------------------------------------------------------
/api/examples/task_7_5_4.pl:
--------------------------------------------------------------------------------
1 | % not implemented :(
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_2.pl:
--------------------------------------------------------------------------------
1 | my_list([a,X]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_2.pl:
--------------------------------------------------------------------------------
1 | my_tail([], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_4.pl:
--------------------------------------------------------------------------------
1 | my_tail([1], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_3.pl:
--------------------------------------------------------------------------------
1 | my_less([], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_4.pl:
--------------------------------------------------------------------------------
1 | my_less([], [1]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_5.pl:
--------------------------------------------------------------------------------
1 | my_less([1], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_5.pl:
--------------------------------------------------------------------------------
1 | my_reverse(R, []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_3.pl:
--------------------------------------------------------------------------------
1 | my_period([], []).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_1.pl:
--------------------------------------------------------------------------------
1 | single([], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_1.pl:
--------------------------------------------------------------------------------
1 | my_sum([], 0).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_5.pl:
--------------------------------------------------------------------------------
1 | my_mult([], 1, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_4.pl:
--------------------------------------------------------------------------------
1 | most_oft([1], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_7.pl:
--------------------------------------------------------------------------------
1 | most_oft([], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_1.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, 20).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_2.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, 2).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_3.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, 10).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_4.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, 100).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_5.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, 1).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_6.pl:
--------------------------------------------------------------------------------
1 | my_prime(L, -100).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_1.pl:
--------------------------------------------------------------------------------
1 | gcd(5, 5, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_2.pl:
--------------------------------------------------------------------------------
1 | gcd(60, 15, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_3.pl:
--------------------------------------------------------------------------------
1 | gcd(15, 60, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_4.pl:
--------------------------------------------------------------------------------
1 | gcd(7, 11, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_7.pl:
--------------------------------------------------------------------------------
1 | gcd(36, -63, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_8.pl:
--------------------------------------------------------------------------------
1 | gcd(-36, 63, GCD).
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_2.pl:
--------------------------------------------------------------------------------
1 | max(13, 4, X).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_4.pl:
--------------------------------------------------------------------------------
1 | my_max([], X).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_5.pl:
--------------------------------------------------------------------------------
1 | my_max([1], X).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_8.pl:
--------------------------------------------------------------------------------
1 | max_occur([], []).
--------------------------------------------------------------------------------
/api/examples/task_5_5_1.pl:
--------------------------------------------------------------------------------
1 | my_head([X|_], X).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_10.pl:
--------------------------------------------------------------------------------
1 | is_father(kolya).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_11.pl:
--------------------------------------------------------------------------------
1 | is_father(vlad).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_12.pl:
--------------------------------------------------------------------------------
1 | is_father(sasha).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_13.pl:
--------------------------------------------------------------------------------
1 | brother(max, vlad).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_19.pl:
--------------------------------------------------------------------------------
1 | descendant(X, max).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_2.pl:
--------------------------------------------------------------------------------
1 | parent(vasya, dima).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_3.pl:
--------------------------------------------------------------------------------
1 | parent(dima, kolya).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_7.pl:
--------------------------------------------------------------------------------
1 | parent(dima, dima).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_1.pl:
--------------------------------------------------------------------------------
1 | my_list([a,b,c]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[_]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_3.pl:
--------------------------------------------------------------------------------
1 | my_list('.'(a, b)).
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_4.pl:
--------------------------------------------------------------------------------
1 | my_list([1, 2, 3|[]]).
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_5.pl:
--------------------------------------------------------------------------------
1 | my_list([1|[2, 3]]).
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_2.pl:
--------------------------------------------------------------------------------
1 | my_elem(4, [1, 2, 3]).
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_3.pl:
--------------------------------------------------------------------------------
1 | my_elem(X, [a,b,c]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_2.pl:
--------------------------------------------------------------------------------
1 | my_head([1,2,3], 1).
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_3.pl:
--------------------------------------------------------------------------------
1 | my_head([1,2,3], 2).
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_5.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2], X).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_3.pl:
--------------------------------------------------------------------------------
1 | my_subset([], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_6.pl:
--------------------------------------------------------------------------------
1 | my_reverse(R, [1]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_2.pl:
--------------------------------------------------------------------------------
1 | my_period([], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_4.pl:
--------------------------------------------------------------------------------
1 | my_period([1, 2], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_7.pl:
--------------------------------------------------------------------------------
1 | make_ordered([], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_6.pl:
--------------------------------------------------------------------------------
1 | common([], [], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_2.pl:
--------------------------------------------------------------------------------
1 | my_sum([], 3).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_3.pl:
--------------------------------------------------------------------------------
1 | my_sum([1, 2, 3], 4).
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_5.pl:
--------------------------------------------------------------------------------
1 | my_sum([1, 2, 3], 6).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[3]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[2]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[0]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[0]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_6.pl:
--------------------------------------------------------------------------------
1 | my_mult([1], 1, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[5]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_5.pl:
--------------------------------------------------------------------------------
1 | most_oft([2, 3, 1], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[5]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_5.pl:
--------------------------------------------------------------------------------
1 | gcd(12350, 98760, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[9]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_6.pl:
--------------------------------------------------------------------------------
1 | gcd(-36, -63, GCD).
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[9]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[9]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[3]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/examples/task_5_5_2.pl:
--------------------------------------------------------------------------------
1 | my_tail([_|X], X).
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_1.pl:
--------------------------------------------------------------------------------
1 | parent(dima, ZzZzzZ).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_10.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_13.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_14.pl:
--------------------------------------------------------------------------------
1 | brother(nastya, maria).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_15.pl:
--------------------------------------------------------------------------------
1 | brother(kolya, max).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_16.pl:
--------------------------------------------------------------------------------
1 | descendant(X, dima).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_17.pl:
--------------------------------------------------------------------------------
1 | descendant(dima, kolya).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_18.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_18.pl:
--------------------------------------------------------------------------------
1 | descendant(max, dima).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_20.pl:
--------------------------------------------------------------------------------
1 | descendant(dima, vlad).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_4.pl:
--------------------------------------------------------------------------------
1 | parent(maria, kolya).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_5.pl:
--------------------------------------------------------------------------------
1 | parent(kolya, maria).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_6.pl:
--------------------------------------------------------------------------------
1 | parent(sasha, kolya).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_9.pl:
--------------------------------------------------------------------------------
1 | grandfather(kolya, vlad).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_1.pl:
--------------------------------------------------------------------------------
1 | my_elem(2, [1, 2, 3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/test_1.pl:
--------------------------------------------------------------------------------
1 | my_head([1,2,3], X).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_3.pl:
--------------------------------------------------------------------------------
1 | my_tail([1, 2, 3, 4], X).
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_4.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2,3,4,5], []).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_2.pl:
--------------------------------------------------------------------------------
1 | my_less([1, 2, 3], [1, 2]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_4.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,3], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_5.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,3], [4,5,6]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_5.pl:
--------------------------------------------------------------------------------
1 | my_concat(X, [1, 2], [3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_1.pl:
--------------------------------------------------------------------------------
1 | my_less([1,1,0], [1,1,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_2.pl:
--------------------------------------------------------------------------------
1 | my_less([1,0,0], [1,1,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_3.pl:
--------------------------------------------------------------------------------
1 | my_less([1,1,0], [1,0,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_4.pl:
--------------------------------------------------------------------------------
1 | my_less([1,0], [1,0,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_5.pl:
--------------------------------------------------------------------------------
1 | my_less([0,0,0,1], [1,0,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_4.pl:
--------------------------------------------------------------------------------
1 | my_sum([1,1,1], [1,1,1], Z).
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_5.pl:
--------------------------------------------------------------------------------
1 | my_sum([1,0,0], [1,0], Z).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_2.pl:
--------------------------------------------------------------------------------
1 | single([1, 2, 3, 4], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_4.pl:
--------------------------------------------------------------------------------
1 | single([1, 1, 1, 1], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[0,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_6.pl:
--------------------------------------------------------------------------------
1 | single([0, 1, 0, 1], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_4.pl:
--------------------------------------------------------------------------------
1 | common([], [1, 2, 3], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_5.pl:
--------------------------------------------------------------------------------
1 | common([1, 2, 3], [], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[0]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_1.pl:
--------------------------------------------------------------------------------
1 | my_length([], Length).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[3]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[2]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[4]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[20]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[15]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/test_4.pl:
--------------------------------------------------------------------------------
1 | my_sum([4, 5, 1, 2, 3], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[15]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[15]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[10]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[2]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[13]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[7]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_1.pl:
--------------------------------------------------------------------------------
1 | my_max([1, 2, 3, 2], X).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_2.pl:
--------------------------------------------------------------------------------
1 | my_max([1, 2, 3, 2], 2).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_3.pl:
--------------------------------------------------------------------------------
1 | my_max([1, 2, 3, 2], 1).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[-1]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_6.pl:
--------------------------------------------------------------------------------
1 | my_max([-1, -2, -3, -4], X).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_7.pl:
--------------------------------------------------------------------------------
1 | my_max([4, 1, 3, 2], 4).
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/test_8.pl:
--------------------------------------------------------------------------------
1 | my_max([1, 2, 3, 4], 5).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_7.pl:
--------------------------------------------------------------------------------
1 | max_occur([], ["abcd"]).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[dima]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_8.pl:
--------------------------------------------------------------------------------
1 | grandfather(Person, vlad).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_2/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[a],[b],[c]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,3,4]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_1.pl:
--------------------------------------------------------------------------------
1 | my_prefix([1,2,3], [1, 2]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_2.pl:
--------------------------------------------------------------------------------
1 | my_prefix([1,2,3], [3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_3.pl:
--------------------------------------------------------------------------------
1 | my_prefix([1,2,3], [1,2,3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/test_4.pl:
--------------------------------------------------------------------------------
1 | my_prefix([1,2,3], [1]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_2.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2,3,4,5], [6,7]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_6.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2,3,4,5], [1,3,5]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_6.pl:
--------------------------------------------------------------------------------
1 | my_less([1, 2, 3], [1, 2, 3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_7.pl:
--------------------------------------------------------------------------------
1 | my_less([1, 2, 3], [4, 5, 6]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_2.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,3,4], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_4.pl:
--------------------------------------------------------------------------------
1 | my_concat([1, 2, 3], [1, 2], X).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3,2,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_1.pl:
--------------------------------------------------------------------------------
1 | my_reverse(R, [1, 2, 3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_2.pl:
--------------------------------------------------------------------------------
1 | my_reverse([1, 2, 3], [3, 2, 1]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_3.pl:
--------------------------------------------------------------------------------
1 | my_reverse([1, 2, 3], [2, 3, 1]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_1.pl:
--------------------------------------------------------------------------------
1 | my_period([1,2,3], [1,2,3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_6_1/test_6.pl:
--------------------------------------------------------------------------------
1 | my_less([1,0,0,0,1], [1,0,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_2.pl:
--------------------------------------------------------------------------------
1 | my_sum([1,1], [0,1,1], [1,1,0]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,1,1,0]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,1,0]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,5,8,9]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_1.pl:
--------------------------------------------------------------------------------
1 | make_ordered([5, 2, 8, 1, 9], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[0,0,0,0,0]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_4.pl:
--------------------------------------------------------------------------------
1 | make_ordered([0, 0, 0, 0, 0], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[0,0,0,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_6.pl:
--------------------------------------------------------------------------------
1 | make_ordered([1, 0, 0, 0], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,3,4]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,4,3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_3.pl:
--------------------------------------------------------------------------------
1 | single([1, 2, 3, 2, 4, 3], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_1.pl:
--------------------------------------------------------------------------------
1 | common([1, 2, 3], [4, 5, 6], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3,4,5]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_3.pl:
--------------------------------------------------------------------------------
1 | common([1, 2, 3], [1, 2, 3], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,2,3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_2.pl:
--------------------------------------------------------------------------------
1 | my_length([1,2,3], Length).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_3.pl:
--------------------------------------------------------------------------------
1 | my_length([1,2], Length).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_7.pl:
--------------------------------------------------------------------------------
1 | my_mult([1, 1, 1, 1, 1], 1, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_1.pl:
--------------------------------------------------------------------------------
1 | most_oft([1, 2, 3, 1, 2, 1], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3,2,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[3,2,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_6.pl:
--------------------------------------------------------------------------------
1 | most_oft([1, 2, 3, 3, 2, 1], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_8.pl:
--------------------------------------------------------------------------------
1 | most_oft([1, 1, 1, 1, 1, 1], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,3,5,7]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,5,3,17]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_3.pl:
--------------------------------------------------------------------------------
1 | common([1, 5, 3, 7, 17], [], R).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[5,7,9]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_1.pl:
--------------------------------------------------------------------------------
1 | nonsquare([1, 3, 5, 7, 9], R).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,4,6]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[3,5,4,6]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,4,6]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,1,2]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[kolya],[vasya]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_2_1/test_7.pl:
--------------------------------------------------------------------------------
1 | my_list('.'(a, '.'(b, '.'(c, [])))).
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/test_1.pl:
--------------------------------------------------------------------------------
1 | my_tail([1, 2, 3, 4], [2, 3, 4]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_1.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2,3,4,5], [3,4]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_3.pl:
--------------------------------------------------------------------------------
1 | my_sublist([1,2,3,4,5], [1,2,3,4,5]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/test_1.pl:
--------------------------------------------------------------------------------
1 | my_less([1, 2, 3], [1, 2, 3, 4]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_1.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,3], [1,2,3,4,5]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_6.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,1], [1,2,3,1,4,5]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/test_7.pl:
--------------------------------------------------------------------------------
1 | my_subset([1,2,1], [1,2,3,4,4,5]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_2.pl:
--------------------------------------------------------------------------------
1 | my_concat([1, 2, 3], [], [1, 2, 3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_3.pl:
--------------------------------------------------------------------------------
1 | my_concat([1, 2, 3, 4], [1, 2], [4]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,9,5,1,4,1,3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_7.pl:
--------------------------------------------------------------------------------
1 | my_reverse(R, [3, 1, 4, 1, 5, 9, 2]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_5.pl:
--------------------------------------------------------------------------------
1 | my_period([1,2,3,1,2,3], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_3.pl:
--------------------------------------------------------------------------------
1 | my_sum([1,1,1], [1,1,1], [1,1,0]).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_2.ans:
--------------------------------------------------------------------------------
1 | Result = [[[-9,-8,-5,-2,-1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_2.pl:
--------------------------------------------------------------------------------
1 | make_ordered([-5, -2, -8, -1, -9], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[-2,-1,5,8,9]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_3.pl:
--------------------------------------------------------------------------------
1 | make_ordered([5, -2, 8, -1, 9], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[-3,-1,0,1,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/test_5.pl:
--------------------------------------------------------------------------------
1 | make_ordered([1, 0, 1, -1, -3], L).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[-1,-2,-4,-3]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_5.pl:
--------------------------------------------------------------------------------
1 | single([-1, -2, -3, -2, -4, -3], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[6,5,4,3,2,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_4.pl:
--------------------------------------------------------------------------------
1 | my_length([1,2,3,5], Length).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_1.pl:
--------------------------------------------------------------------------------
1 | my_mult([1, 2, 3, 1, 2, 1], 1, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_2.pl:
--------------------------------------------------------------------------------
1 | my_mult([1, 2, 3, 1, 2, 1], 2, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_3.pl:
--------------------------------------------------------------------------------
1 | my_mult([1, 2, 3, 1, 2, 1], 3, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/test_4.pl:
--------------------------------------------------------------------------------
1 | my_mult([1, 2, 3, 1, 2, 1], 4, Y).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_2.pl:
--------------------------------------------------------------------------------
1 | most_oft([1, 2, 3, 1, 2, 1, 3, 3], X).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_1.pl:
--------------------------------------------------------------------------------
1 | common([1, 5, 3], [5, 4, 3, 2, 1], R).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_2.pl:
--------------------------------------------------------------------------------
1 | nonsquare([1, 3, 5, 7, 9], [5, 7, 9]).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_4.pl:
--------------------------------------------------------------------------------
1 | nonsquare([1, 3, 5, 7, 9], [7, 9]).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[11,8,81,49,5]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[97,98,99,100]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/shared_consult_data.pl:
--------------------------------------------------------------------------------
1 | not(X) :- \+ X.
2 |
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_3.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4,5]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4,5,6]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,3,4,1,2]]]]
2 | yes
--------------------------------------------------------------------------------
/api/examples/task_5_2_1.pl:
--------------------------------------------------------------------------------
1 | my_list([]).
2 | my_list([_|T]) :- my_list(T).
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_19.ans:
--------------------------------------------------------------------------------
1 | Result = [[nastya],[sasha]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/test_1.pl:
--------------------------------------------------------------------------------
1 | my_concat([1, 2, 3], [1, 2], [3]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_6_2/test_1.pl:
--------------------------------------------------------------------------------
1 | my_sum([1,1,0], [1,1,0], [1,1,0]).
2 |
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_7.pl:
--------------------------------------------------------------------------------
1 | common([1, 2, 3, 5], [3, 7, 1, 2], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_8.pl:
--------------------------------------------------------------------------------
1 | common([4, 5, 2, 6, 1], [1, 2, 8, 7], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,3,5,7,11,13,17,19]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_4.pl:
--------------------------------------------------------------------------------
1 | max_occur(["a", "ab", "abc", "abcd"], L).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,5],[1,3,5]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[5,3,1],[5,2,1]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[1,2,5],[1,3,5]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_6.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[2,1,3],[2,5,3]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_7.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[5,3,1],[5,2,1]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_8.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[3,5,4,6],[3,2,4,6]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/test_5.ans:
--------------------------------------------------------------------------------
1 | Result = [[[]],[[1]],[[1,2]],[[2]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_6.pl:
--------------------------------------------------------------------------------
1 | my_period([1,2,3,1,2,3,1,2,3,1,2,3], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/test_7.pl:
--------------------------------------------------------------------------------
1 | my_period([1,2,3,1,2,1,2,3,1,2,3], [1,2,3]).
--------------------------------------------------------------------------------
/api/tests/task_6_1_2/test_7.pl:
--------------------------------------------------------------------------------
1 | single([1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1], L2).
--------------------------------------------------------------------------------
/api/tests/task_6_1_3/test_2.pl:
--------------------------------------------------------------------------------
1 | common([1, 2, 3, 4, 5], [3, 4, 5, 6, 7], L3).
--------------------------------------------------------------------------------
/api/tests/task_6_2_4/test_3.pl:
--------------------------------------------------------------------------------
1 | most_oft([1, 2, 3, 1, 2, 1, 3, 3, 3, 3], X).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_5.pl:
--------------------------------------------------------------------------------
1 | nonsquare([1, 11, 3, 8, 81, 3, 7, 49, 5, 9], R).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_6.pl:
--------------------------------------------------------------------------------
1 | max_occur(["a", "ab", "abc", "abcd"], ["abcd"]).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_1.pl:
--------------------------------------------------------------------------------
1 | short_path(1, 4, [[1, 2], [2, 3], [3, 4]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_3.pl:
--------------------------------------------------------------------------------
1 | short_path(1, 2, [[1, 2], [2, 3], [3, 4]], P).
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_4.pl:
--------------------------------------------------------------------------------
1 | my_reverse(R, [1, a, 3.14, 'hello', [1, 2, 3], 1]).
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_2.pl:
--------------------------------------------------------------------------------
1 | common([1, 5, 3, 7, 17], [5, 4, 17, 3, 2, 1], R).
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/test_3.pl:
--------------------------------------------------------------------------------
1 | nonsquare([1, 11, 3, 7, 49, 5, 9], [5, 7, 49, 81]).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_8.pl:
--------------------------------------------------------------------------------
1 | reach([a,b,c,d],[[a,b],[b,c],[c,a],[b,d]], a, d).
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_2.pl:
--------------------------------------------------------------------------------
1 | color([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], C2).
--------------------------------------------------------------------------------
/api/examples/task_5_2_2.pl:
--------------------------------------------------------------------------------
1 | my_elem(X, [X|_]).
2 | my_elem(X, [_|T]) :- my_elem(X, T).
--------------------------------------------------------------------------------
/api/examples/task_7_2_1.pl:
--------------------------------------------------------------------------------
1 | max(X, Y, Z) :- X > Y, !, Z is X.
2 | max(_, Y, Z) :- Z is Y.
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_5.pl:
--------------------------------------------------------------------------------
1 | common([1, 5, 3, 7, 17], [5, 4, 17, 3, 2, 1], [5, 3, 17]).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_9.pl:
--------------------------------------------------------------------------------
1 | max_occur(["a", "ab", "abc", "abcd"], ["abcd", "cdef"]).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_1.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], 1, 4).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_2.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], 4, 1).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_6.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], 1, 5).
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_1.pl:
--------------------------------------------------------------------------------
1 | color([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4], [4, 1]], C1).
--------------------------------------------------------------------------------
/api/submit.sh:
--------------------------------------------------------------------------------
1 | curl \
2 | -F "submission=@"$1 \
3 | http://localhost:3001/submit \
4 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_8/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[1,[1,2,3],hello,3.1400000000000001,a,1]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_4.pl:
--------------------------------------------------------------------------------
1 | common([1, 5, 3, 7, 17], [5, 4, 17, 3, 2, 1], [1, 5, 3, 17]).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_5.pl:
--------------------------------------------------------------------------------
1 | max_occur(["a", "ab", "abc", "abcd"], ["ab", "abc", "abcd"]).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_3.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4], [4, 1]], 4, 1).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_5.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4], [4, 1]], 1, 4).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_7.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4], [4, 4]], 4, 4).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_1.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], 1, 4, P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_3.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4], [[1, 2], [2, 3], [3, 4]], 1, 2, P).
--------------------------------------------------------------------------------
/api/wsgi.py:
--------------------------------------------------------------------------------
1 | from api import app
2 |
3 | if __name__ == "__main__":
4 | app.run()
5 |
--------------------------------------------------------------------------------
/api/submit_and_execute.sh:
--------------------------------------------------------------------------------
1 | ./submit.sh $2 2>/dev/null | jq .submission_id | xargs ./execute.sh $1
2 |
--------------------------------------------------------------------------------
/api/tests/task_5_1/test_16.ans:
--------------------------------------------------------------------------------
1 | Result = [[kolya],[max],[nastya],[sasha],[vasya],[vlad]]
2 | yes
3 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_2.pl:
--------------------------------------------------------------------------------
1 | short_path(1, 3, [[1, 2], [2, 4], [4, 3], [2, 1], [2, 3], [3, 4]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_1+2/test_4.pl:
--------------------------------------------------------------------------------
1 | reach([1, 2, 3, 4, 5], [[1, 2], [1, 3], [2, 4], [3, 4], [4, 5]], 1, 5).
--------------------------------------------------------------------------------
/api/examples/task_6_2_1.hl:
--------------------------------------------------------------------------------
1 | my_length(nil, 0);
2 | my_length(A.L, Length) <- my_length(L, Y), Length is Y + 1;
--------------------------------------------------------------------------------
/api/examples/task_6_2_3.pl:
--------------------------------------------------------------------------------
1 | my_mult(L, X, Y) :-
2 | findall(X, member(X, L), Xs),
3 | length(Xs, Y).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_4.pl:
--------------------------------------------------------------------------------
1 | short_path(1, 6, [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_5.pl:
--------------------------------------------------------------------------------
1 | short_path(1, 5, [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_6.pl:
--------------------------------------------------------------------------------
1 | short_path(2, 3, [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_7.pl:
--------------------------------------------------------------------------------
1 | short_path(5, 1, [[2, 1], [3, 1], [2, 4], [5, 3], [5, 2], [4, 5], [4, 6]], P).
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | api/submissions
2 | .idea
3 | venv
4 | **/__pycache__
5 | react-frontend/package-lock.json
6 | .env
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/test_5.pl:
--------------------------------------------------------------------------------
1 | my_length([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], Length).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_1.ans:
--------------------------------------------------------------------------------
1 | Result = [[[[113,117,105,99,107],[98,114,111,119,110],[106,117,109,112,115]]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_2.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4], [[1, 2], [2, 4], [4, 3], [2, 1], [2, 3], [3, 4]], 1, 3, P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_3.pl:
--------------------------------------------------------------------------------
1 | color([1, 2, 3, 4, 5], [[1, 2], [1, 3], [1, 4], [1, 5], [2, 3], [3, 4], [4, 5]], C3).
--------------------------------------------------------------------------------
/api/examples/task_6_2_2.pl:
--------------------------------------------------------------------------------
1 | my_sum([], 0).
2 | my_sum([Head|Tail], Sum) :-
3 | my_sum(Tail, Sum1),
4 | Sum is Head + Sum1.
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/test_4.ans:
--------------------------------------------------------------------------------
1 | Result = [[[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]]]
2 | yes
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_1.pl:
--------------------------------------------------------------------------------
1 | max_occur(["the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"], LongestWords).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_4.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], 1, 6, P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_5.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], 1, 5, P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_6.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [4, 5], [4, 6]], 2, 3, P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_7.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4, 5, 6], [[2, 1], [3, 1], [2, 4], [5, 3], [5, 2], [4, 5], [4, 6]], 5, 1, P).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_3.pl:
--------------------------------------------------------------------------------
1 | max_occur(["the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"], ["quick", "brown"]).
--------------------------------------------------------------------------------
/react-frontend/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/m-danya/prolog-testing-system/HEAD/react-frontend/public/favicon.ico
--------------------------------------------------------------------------------
/api/examples/task_5_5_3.pl:
--------------------------------------------------------------------------------
1 | my_prefix(L, []).
2 | my_prefix([A|L], [A|[]]).
3 | my_prefix([A|L1], [A|L2]) :- my_prefix(L1, L2).
4 |
5 |
--------------------------------------------------------------------------------
/api/examples/task_7_4_1.pl:
--------------------------------------------------------------------------------
1 | my_max([X], X).
2 | my_max([X|Xs], M) :- my_max(Xs, M), M >= X.
3 | my_max([X|Xs], X) :- my_max(Xs, M), M < X.
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_5.pl:
--------------------------------------------------------------------------------
1 | color([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 3], [3, 4], [4, 5], [5, 6]], C5).
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/test_2.pl:
--------------------------------------------------------------------------------
1 | max_occur(["the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"], ["quick", "brown", "jumps"]).
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/test_8.pl:
--------------------------------------------------------------------------------
1 | short_path(3, 6, [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [5, 2], [5, 3], [5, 5], [2, 3], [5, 4], [4, 6]], P).
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/test_4.pl:
--------------------------------------------------------------------------------
1 | color([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 3], [3, 4], [4, 5], [5, 6], [6, 2]], C4).
--------------------------------------------------------------------------------
/api/examples/task_7_4_2.pl:
--------------------------------------------------------------------------------
1 | max_occur(L1, L2) :-
2 | findall(X, (member(X, L1), not((member(Y, L1), length(Y, N), length(X, N1), N > N1))), L2).
--------------------------------------------------------------------------------
/api/requirements.txt:
--------------------------------------------------------------------------------
1 | Flask==2.2.2
2 | flask_cors==3.0.10
3 | flask_restful==0.3.9
4 | Jinja2==3.1.2
5 | regex==2022.10.31
6 | Werkzeug==2.2.2
7 |
--------------------------------------------------------------------------------
/api/examples/task_6_1_3.pl:
--------------------------------------------------------------------------------
1 | common(L1, L2, L3) :-
2 | findall(X, (member(X, L1), member(X, L2)), L3). % надо бы написать тут чет умное вместо этого
--------------------------------------------------------------------------------
/api/examples/task_5_5_7.pl:
--------------------------------------------------------------------------------
1 | my_concat([A|X], [A|Y], Z) :- my_concat(X, Y, Z).
2 | my_concat([A|X], [], [A|Z]) :- my_concat(X, [], Z).
3 | my_concat([], [], []).
--------------------------------------------------------------------------------
/api/tests/task_7_5_3/test_8.pl:
--------------------------------------------------------------------------------
1 | short_path([1, 2, 3, 4, 5, 6], [[1, 2], [1, 3], [2, 4], [2, 5], [3, 5], [5, 2], [5, 3], [5, 5], [2, 3], [5, 4], [4, 6]], 3, 6, P).
--------------------------------------------------------------------------------
/react-frontend/src/style.css:
--------------------------------------------------------------------------------
1 | .Mui-disabled {
2 | background-color: #1976d2 !important;
3 | }
4 |
5 | .MuiCircularProgress-colorPrimary {
6 | color: #ffffff !important;
7 | }
--------------------------------------------------------------------------------
/api/examples/task_5_5_6.pl:
--------------------------------------------------------------------------------
1 | my_subset([], _).
2 | my_subset([X|Xs], Y) :- member(X, Y), my_subset(Xs, Y). % мы все равно уже писали аналог member, почему бые го не использовать
3 |
4 |
--------------------------------------------------------------------------------
/api/execute.sh:
--------------------------------------------------------------------------------
1 | curl \
2 | -H "Content-Type: application/json" \
3 | -d '{"type": "gprolog", "task": "'$1'", "submission_id": "'$2'"}' \
4 | http://localhost:3001/execute
5 |
6 |
--------------------------------------------------------------------------------
/api/settings.py:
--------------------------------------------------------------------------------
1 | from pathlib import Path
2 |
3 | SUBMISSIONS_DIRECTORY = Path("submissions")
4 | TESTS_DIRECTORY = Path("tests")
5 | EXECUTION_TIMEOUT_VALUE = 2
6 | TEST_EXTS = [".ans", ".py"]
7 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_1.py:
--------------------------------------------------------------------------------
1 | from common import test
2 |
3 | expected = {1, 3, 5}
4 |
5 |
6 | def test_result(output_lines, test_number):
7 | return test(output_lines, test_number, expected)
8 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/test_2.py:
--------------------------------------------------------------------------------
1 | from common import test
2 |
3 | expected = {1, 3, 5, 17}
4 |
5 |
6 | def test_result(output_lines, test_number):
7 | return test(output_lines, test_number, expected)
8 |
--------------------------------------------------------------------------------
/react-frontend/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:18.12.1-alpine
2 | WORKDIR /app
3 | COPY package.json /app/package.json
4 | RUN npm install
5 | COPY . /app
6 | EXPOSE ${FRONTEND_PORT}
7 | CMD export PORT=${FRONTEND_PORT} && npm start
--------------------------------------------------------------------------------
/api/examples/task_7_5_1+2.pl:
--------------------------------------------------------------------------------
1 | reach(V, E, X, Y) :- member(X, V), member(Y, V), reach_(E, X, Y).
2 |
3 | reach_([[X, Y]|_], X, Y).
4 | reach_([[X, Z]|T], X, Y) :- reach_(T, Z, Y).
5 | reach_([[_, _]|T], X, Y) :- reach_(T, X, Y).
--------------------------------------------------------------------------------
/api/test_prolog_program.j2:
--------------------------------------------------------------------------------
1 | cat {{ test_file }} | sed --expression='s/^\(.*\)\.$/setof\({{ variables_list }},\1, Result\)\./g' | gprolog --consult-file {{ shared_consult_data_file }} --consult-file {{ submission_file }}; exit 0
--------------------------------------------------------------------------------
/api/examples/task_6_1_2.pl:
--------------------------------------------------------------------------------
1 | single([], []). % тоже надо чет поумнее и более соответсвующее заданию, но я надо спешить
2 | single([H|T], L2) :- member(H, T), single(T, L2).
3 | single([H|T], [H|L2]) :- \+ member(H, T), single(T, L2).
--------------------------------------------------------------------------------
/api/examples/task_7_2_2.pl:
--------------------------------------------------------------------------------
1 | common([], _, []).
2 | common([H1|T], L2, [H2|R]) :- elem(H1, L2), !, common(T, L2, R), H2 is H1.
3 | common([_|T], L2, R) :- common(T, L2, R).
4 |
5 |
6 | elem(X, [X|_]).
7 | elem(X, [_|T]) :- elem(X, T).
--------------------------------------------------------------------------------
/api/tests/task_5_5_1/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.1
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 1. `my_head(L, X):` Заголовком списка L является элемент X;
6 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_2/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.2
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 2. `my_tail(L, X):` Хвостом списка L является список X;
6 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_5/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.5
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 5. `my_less(X, Y):` Длина списка X меньше длины списка Y ;
6 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_1/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.4.1
2 |
3 | Используя оператор not, написать логические программы решения следующих задач
4 |
5 | 1. Вычисления максимального элемента списка L.
6 | Запрос `? my_max(L, x)`.
7 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_4/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.4
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 4. `my_sublist(L, X):` Список X является подсписком списка L;
6 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_1/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.2.1
2 |
3 | Используя оператор вычисления значений, построить логические программы, решающие следующие задачи.
4 |
5 | 1. Вычислить длину X списка L.
6 | Запрос `my_length(L, X);`
7 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_1/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.2.1
2 |
3 | Используя оператор отсечения написать программы решения следующих
4 | задач:
5 |
6 | 1. Вычисления наибольшего числа R из двух чисел X, Y.
7 | Запрос `? max(X, Y, R)`.
8 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_3/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.3
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 3. `my_prefix(L, X):` Префиксом (начальным подсписком) списка L является список X;
6 |
--------------------------------------------------------------------------------
/api/tests/task_5_5_6/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.6
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 6. `my_subset(X, Y):` Список X состоит только из элементов, содержащихся в списке Y ;
6 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_2/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.2.2
2 |
3 | Используя оператор вычисления значений, построить логические программы, решающие следующие задачи.
4 |
5 | 2. Вычислить сумму X элементов целочисленного списка L;
6 | Запрос `my_sum(L, X);`
7 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_3/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.2.3
2 |
3 | Используя оператор вычисления значений, построить логические программы, решающие следующие задачи.
4 |
5 | 3. Вычислить кратность Y вхождения элемента X в список L;
6 | Запрос `my_mult(L, X, Y);`
7 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_6/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.2.6
2 |
3 | Используя оператор вычисления значений, построить логические программы, решающие следующие задачи.
4 |
5 | 6. Вычислить наибольший общий делитель Z двух целых чисел X и Y ;
6 | Запрос `gcd(X, Y, Z);`
7 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_2/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.2.2
2 |
3 | Используя оператор отсечения написать программы решения следующих
4 | задач:
5 |
6 | 2. Вычисления пересечения L3 множеств L1 и L2, представленных бесповторными списками.
7 | Запрос `? common(L1 , L2 , L3)`.
8 |
--------------------------------------------------------------------------------
/api/examples/task_6_2_4.pl:
--------------------------------------------------------------------------------
1 | most_oft(L, Xs) :-
2 | setof(C-E, (member(E, L), my_mult(L, E, C)), Cs),
3 | reverse(Cs, Rs),
4 | Rs = [C-_|_],
5 | findall(E, member(C-E, Rs), Xs).
6 |
7 | my_mult(L, X, Y) :-
8 | findall(X, member(X, L), Xs),
9 | length(Xs, Y).
--------------------------------------------------------------------------------
/api/tests/task_5_5_7/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.7
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 7. `my_concat(X, Y, Z)`: Список X является конкатенацией (последовательным соединением)
6 | списков Y и Z;
7 |
--------------------------------------------------------------------------------
/api/tests/task_6_2_5/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.2.5
2 |
3 | Используя оператор вычисления значений, построить логические программы, решающие следующие задачи.
4 |
5 | 5. Вычислить список всех простых чисел, не превосходящих заданного числа X;
6 | Запрос `my_prime(L, X);`
7 |
--------------------------------------------------------------------------------
/api/examples/task_6_2_1.pl:
--------------------------------------------------------------------------------
1 | my_length(List, Length) :-
2 | list(List),
3 | my_length(List, 0, Length).
4 |
5 | my_length([_|Tail], Accumulator, Length) :-
6 | NewAccumulator is Accumulator + 1,
7 | my_length(Tail, NewAccumulator, Length).
8 |
9 | my_length([], Length, Length).
--------------------------------------------------------------------------------
/api/tests/task_6_1_1/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 6.1.1
2 |
3 | Используя встроенные предикаты равенства, неравенства и сравнения
4 | чисел, написать логические программы решения следующих задач
5 |
6 | 1. Упорядочить целочисленный список L1.
7 | Запрос `? make_ordered(L1 , L2)`.
8 |
--------------------------------------------------------------------------------
/api/tests/task_7_2_3/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.2.3
2 |
3 | Используя оператор отсечения написать программы решения следующих
4 | задач:
5 |
6 | 3. Вычисления всех элементов целочисленного списка L1, квадраты которых не содержатся в этом списке.
7 | Запрос `? nonsquare(L1 , L2)`.
8 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_2/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.4.2
2 |
3 | Используя оператор not, написать логические программы решения следующих задач
4 |
5 | 2. Вычисления списка самого длинного слова в тексте L.
6 | Запрос `? max_occur(L1 , L2)`.
7 |
8 |
9 | **Важно! Текст представлен в виде списка слов.**
--------------------------------------------------------------------------------
/api/tests/task_7_5_4/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.5.4
2 |
3 | Представляя граф G посредством пары списков, — списка вершин V и
4 | списка ребер E, — написать логические программы решения теоретико-графовых задач.
5 |
6 | 4. Для заданного графа G построить наименьшую его правильную раскраску.
7 |
--------------------------------------------------------------------------------
/api/examples/task_7_2_3.pl:
--------------------------------------------------------------------------------
1 | nonsquare(L1, L2) :- nonsquare_(L1, L1, L2).
2 |
3 | nonsquare_([], _, []).
4 | nonsquare_([X|R1], L, R2) :- Z is X * X, elem(Z, L), !, nonsquare_(R1, L, R2).
5 | nonsquare_([X|R1], L, [X|R2]) :- nonsquare_(R1, L, R2).
6 |
7 |
8 | elem(X, [X|_]).
9 | elem(X, [_|T]) :- elem(X, T).
--------------------------------------------------------------------------------
/api/tests/task_5_5_9/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 5.5.9
2 | Построить логические программы, описывающие следующие свойства и
3 | отношения на множестве списков.
4 |
5 | 9. `my_period(X, Y):` Список X является периодической последовательностью, полученной в
6 | результате многократного повторения списка Y ;
7 |
--------------------------------------------------------------------------------
/api/tests/task_7_4_3/description.md:
--------------------------------------------------------------------------------
1 | ## Упражнение 7.4.3
2 |
3 | Используя оператор not, написать логические программы решения следующих задач
4 |
5 | 3. Вычисления кратчайшего пути между двумя вершинами в ориентированном графе,
6 | представленном списком дуг Γ.
7 | Запрос `? short_path(v1 , v2 , Γ, L)`.
8 |
--------------------------------------------------------------------------------
/react-frontend/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom/client";
3 | import App from "./App";
4 |
5 | const root = ReactDOM.createRoot(document.getElementById("root"));
6 | root.render(
7 |