{"id":681,"date":"2021-07-06T10:53:00","date_gmt":"2021-07-06T10:53:00","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=681"},"modified":"2021-07-06T10:53:00","modified_gmt":"2021-07-06T10:53:00","slug":"python-urok-7-massivy-v-pitone-prodolzhenie-algoritmy","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/python-urok-7-massivy-v-pitone-prodolzhenie-algoritmy\/","title":{"rendered":"Python \u0423\u0440\u043e\u043a 7. \u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0432 \u041f\u0438\u0442\u043e\u043d\u0435: \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 (\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u041d\u0430 \u0443\u0440\u043e\u043a\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438: \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 python, \u043f\u043e\u0438\u0441\u043a \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u043f\u043e\u0438\u0441\u043a \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u0438\u0441\u043a \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0446\u0438\u043a\u043b&nbsp;<em>while<\/em>:<\/li><li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0446\u0438\u043a\u043b&nbsp;<em>for<\/em>:<\/li><li>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0438\u0441\u043a\u0430, \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439:<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_1:<\/strong><br>\u0414\u0430\u043d \u043c\u0430\u0441\u0441\u0438\u0432. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430, \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0442\u0440\u0435\u043c.<strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_2:<\/strong><br>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 0..4 \u0438 \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u043e\u043c\u0435\u0440\u0430 \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0440\u0430\u0432\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e&nbsp;<em>X<\/em>&nbsp;(\u043e\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u0438\u0441\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 Python \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;<em>max<\/em>:<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_3:<\/strong><br>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 Python<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u041c\u0415\u0422\u041e\u0414 \u041f\u0423\u0417\u042b\u0420\u042c\u041a\u0410<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 python \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c&nbsp;<a href=\"https:\/\/labs-org.ru\/pascal-5\/#i-11\" rel=\"noreferrer noopener\" target=\"_blank\">\u043c\u0435\u0442\u043e\u0434\u043e\u043c \u041f\u0443\u0437\u044b\u0440\u044c\u043a\u0430<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2 <br>3 <br>4 <br>5 <br>6 <br>7 <br>8 <br>9 <br>10 <br>11 <br>12 <br>13<\/td><td><strong>import<\/strong> random <strong>from<\/strong> random<br> <strong>import<\/strong> randint <br>\u00a0 mas = [randint(1,10)<br> <strong>for<\/strong> i <strong>in<\/strong> range(n)]<br> <strong>for<\/strong> i <strong>in<\/strong> range(n): <br><strong>print<\/strong>(mas[i],sep=&#8221;&#8221;) <br><strong>print<\/strong>(&#8221; &#8220;) <br><strong>for<\/strong> i <strong>in<\/strong> range(n-1):<br> <strong>for<\/strong> j <strong>in<\/strong> range(n-2, i-1 ,-1):<br> <strong>if<\/strong> mas[j+1] &lt; mas[j]: <br>       mas[j], mas[j+1] = mas[j+1], mas[j]<br> <strong>for<\/strong> i <strong>in<\/strong> range(n): <br><strong>print<\/strong>(mas[i],sep=&#8221;&#8221;)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_4:<\/strong><br>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u00ab\u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043a\u0430\u043c\u043d\u044f\u00bb \u2013 \u0441\u0430\u043c\u044b\u0439 \u00ab\u0442\u044f\u0436\u0451\u043b\u044b\u0439\u00bb \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0411\u042b\u0421\u0422\u0420\u0410\u042f \u0421\u041e\u0420\u0422\u0418\u0420\u041e\u0412\u041a\u0410 \u041c\u0410\u0421\u0421\u0418\u0412\u0410<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043d\u043d\u0443\u044e \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 \u0435\u0449\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442&nbsp;<a href=\"https:\/\/labs-org.ru\/pascal-5\/#i-11\" rel=\"noreferrer noopener\" target=\"_blank\">quick sort<\/a>&nbsp;\u0438\u043b\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0425\u043e\u0430\u0440\u0430 (\u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u2014 \u0427.\u042d. \u0425\u043e\u0430\u0440).<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2 <br>3 <br>4 <br>5 <br>6 <br>7 <br>8 <br>9 <br>10 <br>11 <br>12 <br>13 <br>14 <br>15 <br>16 <br>17 <br>18 <br>19 <br>20 <br>21<\/td><td><strong>import<\/strong> random <strong>from<\/strong> random<br> <strong>import<\/strong> randint <em># \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430<\/em><br> <strong>def<\/strong> qSort ( A, nStart, nEnd ): <br><strong>if<\/strong> nStart >= nEnd: <br><strong>return<\/strong> L = nStart; <br>R = nEnd <br>X = A[(L+R)\/\/2<br>] <strong>while<\/strong> L &lt;= R: <br><strong>while<\/strong> A[L] &lt; X:<br> L += 1 <em># \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435<\/em><br> <strong>while<\/strong> A[R] > X: <br>R -= 1 <br><strong>if<\/strong> L &lt;= R: <br>A[L], A[R] = A[R], A[L]<br> L += 1; <br>R -= 1 qSort ( A, nStart, R ) <em># \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b<\/em> qSort ( A, L, nEnd ) <br>N=10<br> A = [randint(1,10) <br><strong>for<\/strong> i <strong>in<\/strong> range(N)] <br><strong>print<\/strong>(A) <em># \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b<\/em> qSort ( A, 0, N-1 ) <br><strong>print<\/strong>(&#8216;\u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439&#8217;, A)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_5:<\/strong><br>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 (\u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u043e\u0439) \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0432\u043e\u0439 \u0446\u0438\u0444\u0440\u044b \u0447\u0438\u0441\u043b\u0430.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412\u0421\u0422\u0420\u041e\u0415\u041d\u041d\u042b\u0415 \u0424\u0423\u041d\u041a\u0426\u0418\u0418<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>mas.reverse()<\/strong>&nbsp;\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435;<\/li><li><strong>mas2 = sorted (mas1)<\/strong>&nbsp;\u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 (\u0441\u043f\u0438\u0441\u043a\u043e\u0432);<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_6:<\/strong><br>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043d\u043e\u043c\u0435\u0440\u0430 \u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u043e\u043c\u0435\u0440\u043e\u0432.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[1,5,2,3,7]\n\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: 0 2 3 1 4\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_7:<\/strong><br>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0432 \u043d\u0451\u043c. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br><strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e: 10\n\u041c\u0430\u0441\u0441\u0438\u0432:  [15, 19, 15, 12, 10, 13, 4, 18, 38, 27]\n\u041c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439:  [4, 10, 12, 13, 15, 15, 18, 19, 27, 38]\n\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:  9\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_8:<\/strong><br>\u0414\u0430\u043d \u043c\u0430\u0441\u0441\u0438\u0432. \u041d\u0430\u0437\u043e\u0432\u0435\u043c&nbsp;<em>\u0441\u0435\u0440\u0438\u0435\u0439<\/em>&nbsp;\u0433\u0440\u0443\u043f\u043f\u0443 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0434\u0443\u0449\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0430&nbsp;<em>\u0434\u043b\u0438\u043d\u043e\u0439 \u0441\u0435\u0440\u0438\u0438<\/em>&nbsp;\u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u043b\u0438\u043d\u044b \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0438\u0439, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0438 \u0441\u0435\u0440\u0438\u0438.<br><strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432: 15\n\u041c\u0430\u0441\u0441\u0438\u0432:  [3, 1, 1, 1, 2, 5, 2, 5, 5, 1, 1, 3, 2, 5, 5]\n\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0435 \u0441\u0435\u0440\u0438\u0438:  [1, 5]\n\u0414\u043b\u0438\u043d\u044b \u0441\u0435\u0440\u0438\u0439:  [3, 2, 2]\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_9:<\/strong><br>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0443\u0437\u044b\u0440\u044c\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0435\u0441\u043b\u0438 \u043d\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0446\u0438\u043a\u043b\u0430 \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 7_10:<\/strong><br>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437 \u0447\u0438\u0441\u0435\u043b, \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e: 15\n\u041c\u0430\u0441\u0441\u0438\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439:  [7, 15, 8, 11, 4, 7, 9, 4, 6, 12, 12, 8, 9, 8, 3]\n\u041c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439:  [3, 4, 4, 6, 7, 7, 8, 8, 8, 9, 9, 11, 12, 12, 15]\n\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437 \u0447\u0438\u0441\u0435\u043b, \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437:  12<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u0443\u0440\u043e\u043a\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438: \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 python, \u043f\u043e\u0438\u0441\u043a \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u043f\u043e\u0438\u0441\u043a \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[66,69],"tags":[],"class_list":["post-681","page","type-page","status-publish","hentry","category-python","category-obuchenie"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/681\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}