{"id":293007,"date":"2019-08-05T21:00:12","date_gmt":"2019-08-05T21:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293007"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293007","title":{"rendered":"\u0414\u0435\u0442\u0438, \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0438 R"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u041d\u044b\u043d\u0435\u0448\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0448\u043a\u043e\u043b\u0435 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0434\u0443\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0410 \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0447\u0430\u0441\u0442\u0438 \u0430\u043a\u0446\u0435\u043d\u0442 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u044d\u0444\u0444\u0435\u043a\u0442. \u00ab\u041f\u0440\u043e\u0435\u043a\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u00bb, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0432\u0430\u0443-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0438 \u043f\u0440. \u043c\u0438\u0448\u0443\u0440\u0430. \u041f\u0440\u0438\u0447\u0435\u043c \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u043e\u043c\u0443 \u0440\u0430\u0437\u0434\u0430\u044e\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u2014 \u0440\u0435\u0431\u0435\u043d\u043a\u0443 \u0438\u043b\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c? \u0421\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435\u043c \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043d\u044f\u0442\u0438\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u0440\u0443\u0436\u043a\u0430\u0445, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0448\u043a\u043e\u043b\u044b \u0438\u043b\u0438 \u0436\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u044c \u0434\u0430\u0442\u044c \u0440\u0435\u0431\u0435\u043d\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439 \u0438\u043b\u0438 \u0444\u0438\u0437\u0438\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0432\u0443\u0445 \u0437\u0430\u0439\u0446\u0435\u0432 (\u043d\u0443 \u0438\u043b\u0438 \u0437\u0430\u0439\u0446\u0430 \u0438 \u0437\u0430\u0439\u0447\u043e\u043d\u043a\u0430). \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0438\u0437 \u0434\u043e\u043f. \u0437\u0430\u043d\u044f\u0442\u0438\u0439 (\u0448\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u0430) \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u043e\u0441\u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043d\u0435 \u043f\u0440\u043e \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432 \u0432 \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0446\u0435\u043b\u0438 \u2014 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432, \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b.<\/p>\n<p>  <\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435\u043c. \u041a\u043e\u043c\u0443 \u044d\u0442\u043e \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u2014 <strong>\u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0435 \u043c\u0438\u043c\u043e<\/strong>. \u0423 \u043a\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u043f. \u0438\u0434\u0435\u0438, \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0442\u043e\u0436\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u044f\u0434 \u0437\u0430\u0434\u0430\u0447\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b \u0441 \u043a\u0443\u0440\u0441\u043e\u0432 \u00ab<a href=\"https:\/\/metaschool.ru\/\">\u041c\u0435\u0442\u0430\u0448\u043a\u043e\u043b\u044b<\/a>\u00bb, \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 3-\u0438\u0439 \u043a\u043b\u0430\u0441\u0441. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438, \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f R. <\/p>\n<p>  <\/p>\n<p>\u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habrahabr.ru\/users\/i_shutov\/posts\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439<\/a>.<a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"obschaya-preambula\">\u041e\u0431\u0449\u0430\u044f \u043f\u0440\u0435\u0430\u043c\u0431\u0443\u043b\u0430<\/h2>\n<p>  <\/p>\n<pre><code class=\"plaintext\">library(tidyverse) library(glue) library(magrittr) library(lubridate) library(hms) library(numbers) library(polynom) library(Ryacas) library(stringi) library(tictoc)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0440\u044f\u0434 \u0437\u0430\u0434\u0430\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"vosstanovite-zapis\">\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c<\/h2>\n<p>  <\/p>\n<h3 id=\"zadacha\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c: <code>3\u2217\u2217:\u22173=3\u2217<\/code>. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c 3ab = c3*3d  df &lt;- 0:9 %&gt;%    {tidyr::crossing(a = ., b = ., c = ., d = .)} %&gt;%   filter(300 + a * 10 + b == (c * 10 + 3) * (30 + d)) df<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-1\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u043a\u0438 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432\u043c\u0435\u0441\u0442\u043e <code>\u201c\u2217\u201d<\/code> \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 <code>7\u2217(7\u22177\u22177)\u22177<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c 8?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">ops &lt;- c('*', '\/', '+', '-') # \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432 df &lt;- tidyr::crossing(op1 = ops, op2 = ops, op3 = ops, op4 = ops) %&gt;%   # \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445   mutate(data = glue::glue(\"7 {op1} (7 {op2} 7 {op3} 7) {op4} 7\"),          expr = rlang::parse_exprs(data)) %&gt;%   mutate(res = purrr::map_dbl(expr, rlang::eval_bare)) %&gt;%   arrange(res) %&gt;%   filter(res == 8) print(tbl_df(df), n = 20)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-2\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u044f\u0434 \u0432\u044b\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 1 \u0434\u043e 100. \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u0430 4?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u0432 100 \u043d\u0435\u0442 \u0446\u0438\u0444\u0440\u044b 4, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0434\u0443\u0446\u0438\u0440\u0443\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u044c \u0434\u043e 99 # \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e tidyr::crossing(d1 = 0:9, d2 = 0:9) %&gt;%   # \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c 4   filter(d1 == 4 | d2 == 4) %&gt;%   arrange(d1, d2)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-3\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0426\u0438\u0444\u0440\u0443 9, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0447\u0438\u0441\u043b\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430 216 \u043c\u0435\u043d\u044c\u0448\u0435. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 \u0446\u0438\u0444\u0440 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e: abc df &lt;- tidyr::crossing(b = 0:9, c = 0:9) %&gt;%   # \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0435\u0441\u043b\u0438 9 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0434\u0435\u0432\u044f\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430    mutate(delta = (900 + 10*b + c) - (100*b + 10*c + 9)) %&gt;%   filter(between(delta, 200, 230)) df<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-4\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 5 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0440\u0430\u0432\u043d\u043e 2520. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441\u043f\u043e\u0441\u043e\u0431 1<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">numbers::primeFactors(2520)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441\u043f\u043e\u0441\u043e\u0431 2<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># https:\/\/joftius.wordpress.com\/2015\/10\/19\/finding-multiple-roots-of-univariate-functions-in-r\/ f &lt;- function(x) {x * (x+1) * (x+2) * (x+3) * (x+4) - 2520} rootSolve::uniroot.all(f, c(0, 2520))<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441\u043f\u043e\u0441\u043e\u0431 3<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">eq &lt;- \"x * (x+1) * (x+2) * (x+3) * (x+4) - 2520\" yacas(glue(\"Simplify({eq})\"))  # \u0440\u0443\u043a\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b  \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430 \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u0432\u0441\u0435 \u043a\u043e\u0440\u043d\u0438 rts &lt;- base::polyroot(c(-2520, 24, 50, 35, 10, 1)) # \u043e\u0442 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043a n-1 # \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0440\u043d\u0438 # http:\/\/www.johnmyleswhite.com\/notebook\/2009\/12\/18\/using-complex-numbers-in-r\/ Re(rts[abs(Im(rts)) &lt; 1^-10])<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-5\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u041a\u0430\u043a\u0443\u044e \u0446\u0438\u0444\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e <code>\"\u2217\"<\/code>, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0441\u043b\u043e <code>543\u2217<\/code> \u0434\u0435\u043b\u0438\u043b\u043e\u0441\u044c \u043d\u0430 <code>4<\/code>? \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">tibble(num = 5430 + 0:9, mod = mod(num, 4)) %&gt;%   arrange(mod, num)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-6\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0427\u0435\u043c\u0443 \u0440\u0430\u0432\u043d\u0430 \u0443\u0434\u0432\u043e\u0435\u043d\u043d\u0430\u044f \u0442\u0440\u0435\u0442\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438 \u0447\u0438\u0441\u043b\u0430 60?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">2*(1\/3*(1\/4*60)) 60 %&gt;% {.\/4} %&gt;% {.\/3} %&gt;% {.*2}<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-7\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0447\u0430\u0441\u043e\u0432 \u0431\u0435\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435 \u043d\u0430 2 \u0447\u0430\u0441\u0442\u0438 \u0442\u0430\u043a \u0447\u0442\u043e \u0431\u044b \u0441\u0443\u043c\u043c\u0430 \u0447\u0438\u0441\u0435\u043b \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0443\u0447\u0430\u0441\u0442\u043a\u0435 \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435.<br \/>  \u0414\u043e\u043f. \u0432\u043e\u043f\u0440\u043e\u0441: \u043d\u0430 \u043a\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0430\u0441\u0442\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0447\u0430\u0441\u043e\u0432 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0447\u0438\u0441\u043b\u0430 \u0441\u0443\u043c\u043c\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b\u0430 \u0431\u044b \u0440\u0430\u0432\u043d\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0438 \u043d\u0430 2 \u0440\u0430\u0432\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c  # \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043f\u0440\u043e\u0431\u0435\u0433\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438, \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 = \u043e\u0441\u0442\u0430\u0442\u043a\u0443 sum(1:12) \/ 2  # \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u0447\u0430\u0441\u043e\u0432 for (i in 1:12){   res &lt;- cumsum(i:12)   print(glue(\"\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430: {i}, \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b: {glue_collapse(res, ', ')}\"))   val &lt;- which(res == 39)   if(! identical(val, integer(0))){     print(glue(\"\u041d\u0430\u0439\u0434\u0435\u043d \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d [{i}; {val + i - 1}]\"))   } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h2 id=\"byki-i-korovy\">\u00ab\u0411\u044b\u043a\u0438 \u0438 \u043a\u043e\u0440\u043e\u0432\u044b\u00bb<\/h2>\n<p>  <\/p>\n<h3 id=\"variaciya-1\">\u0412\u0430\u0440\u0438\u0430\u0446\u0438\u044f 1<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0438\u0441\u043b\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b \u043e\u0442 1 \u0434\u043e 5 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<br \/>  \u0427\u0438\u0441\u043b\u043e \u043e\u0442\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440, \u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u2014 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0431\u044b\u043a\u043e\u0432. \u0427\u0438\u0441\u043b\u043e \u043e\u0442\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440, \u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043d\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u2014 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e:<\/p>\n<p>  <\/p>\n<ul>\n<li>314 \u2014 1 \u0431\u044b\u043a \u0438 1 \u043a\u043e\u0440\u043e\u0432\u0430;<\/li>\n<li>124 \u2014 1 \u0431\u044b\u043a \u0438 1 \u043a\u043e\u0440\u043e\u0432\u0430;<\/li>\n<li>523 \u2014 1 \u0431\u044b\u043a \u0438 1 \u043a\u043e\u0440\u043e\u0432\u0430.<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">library(tidyverse) library(stringi) # \u0447\u0438\u0441\u043b\u043e \u0432\u0438\u0434\u0430 \"an_bn_cn\". c -- \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439  df &lt;- c(1, 2, 3, 4, 5) %&gt;%   {tidyr::crossing(an = ., bn = ., cn = .)} %&gt;%   # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438   mutate(comb = purrr::pmap(., c)) %&gt;%   # \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f   mutate(val = stri_join(an, bn, cn)) %&gt;%   # \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0443 \u0431\u044b\u043a\u043e\u0432   # 314 - \u0435\u0441\u0442\u044c 1 \u0431\u044b\u043a   filter(stri_detect_regex(val, \"3[^1][^4]|[^3]1[^4]|[^3][^1]4\")) %&gt;%   # 124 - \u0435\u0441\u0442\u044c 1 \u0431\u044b\u043a   filter(stri_detect_regex(val, \"1[^2][^4]|[^1]2[^4]|[^1][^2]4\")) %&gt;%   # 523 - \u0435\u0441\u0442\u044c 1 \u0431\u044b\u043a   filter(stri_detect_regex(val, \"5[^2][^3]|[^5]2[^3]|[^5][^2]3\")) %&gt;%   # \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0441 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u043c\u0438 \u0446\u0438\u0444\u0440\u0430\u043c\u0438   filter(purrr::map_int(comb, n_distinct) == 3) %&gt;%   # \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b (1 \u0431\u044b\u043a \u0438 1 \u043a\u043e\u0440\u043e\u0432\u0430)   filter(purrr::map(comb, ~length(base::intersect(.x, c(3, 1, 4)))) == 2) %&gt;%   filter(purrr::map(comb, ~length(base::intersect(.x, c(1, 2, 4)))) == 2) %&gt;%   filter(purrr::map(comb, ~length(base::intersect(.x, c(5, 2, 3)))) == 2)   df<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"variaciya-2\">\u0412\u0430\u0440\u0438\u0430\u0446\u0438\u044f 2<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0438\u0441\u043b\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b \u043e\u0442 1 \u0434\u043e 5 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<br \/>  \u0427\u0438\u0441\u043b\u043e \u043e\u0442\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440, \u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u2014 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0431\u044b\u043a\u043e\u0432.<br \/>  \u0427\u0438\u0441\u043b\u043e \u043e\u0442\u0433\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440, \u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043d\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u2014 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u0440\u043e\u0432.<br \/>  \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e:<\/p>\n<p>  <\/p>\n<p>543 \u2014 1 \u0431\u044b\u043a; 0 \u043a\u043e\u0440\u043e\u0432;<br \/>  235 \u2014 1 \u0431\u044b\u043a; 0 \u043a\u043e\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">library(tidyverse) library(stringi)  df &lt;- c(1, 2, 3, 4, 5) %&gt;%   tidyr::crossing(d3 = ., d2 = ., d1 = .) %&gt;%   # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438   mutate(comb = purrr::pmap(., c)) %&gt;%   # \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f   mutate(val = stri_join(d3, d2, d1)) %&gt;%   # \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0443 \u0431\u044b\u043a\u043e\u0432   # 543 -- 1 \u0431\u044b\u043a; 0 \u043a\u043e\u0440\u043e\u0432   filter(stri_detect_regex(val, \"5..|.4.|..3\")) %&gt;%   # 235 -- 1 \u0431\u044b\u043a; 0 \u043a\u043e\u0440\u043e\u0432   filter(stri_detect_regex(val, \"2..|.3.|..5\")) %&gt;%   # \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0441 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u043c\u0438 \u0446\u0438\u0444\u0440\u0430\u043c\u0438   filter(purrr::map_int(comb, n_distinct) == 3) %&gt;%   # \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u044b\u043a\u0430   filter(purrr::map(comb, ~length(base::intersect(.x, c(5, 4, 3)))) == 1) %&gt;%   filter(purrr::map(comb, ~length(base::intersect(.x, c(2, 3, 5)))) == 1)   df<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h2 id=\"zapolnyaem-kvadrat\">\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/h2>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043b\u0435\u0442\u043a\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b 4 \u043d\u0430 4 \u0434\u0435\u0441\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0441\u043e\u0432 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u0447\u0451\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0438\u043d\u0443\u0441\u043e\u0432, \u0430 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0431\u044b\u043b\u043e \u0447\u0451\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0438\u043d\u0443\u0441\u043e\u0432?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0432\u0430\u0440\u0438\u0430\u043d\u0442 1<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043d\u043e\u0435, \u0430 \u0432 \u0441\u0443\u043c\u043c\u0435 10. \u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0430: 3, 3, 3, 1 library(arrangements) library(foreach)  # \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438: #  1  2  3  4  #  5  6  7  8 #  9 10 11 12 # 13 14 15 16  cmb &lt;- arrangements::combinations(1:16, k = 10, replace = FALSE) pryr::object_size(cmb)  # \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440, \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432. \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c icomb &lt;- icombinations(1:16, k = 10, replace = FALSE) foreach(x = icomb, .combine=c) %do% {   # x - \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0439, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u043c \u0437\u043d\u0430\u043a\u0438 \"\u043c\u0438\u043d\u0443\u0441\"   # \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f \u043a\u043e\u043c\u0438\u0431\u043d\u0430\u0446\u0438\u0439   # \u043a\u043e\u043b\u043e\u043d\u043a\u0438   isOdd &lt;- function(x, set){     # \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0435\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c     length(base::intersect(x, set)) %% 2 == 1    }    isEven &lt;- function(x, set){     # \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c     length(base::intersect(x, set)) %% 2 == 0   }    col_flag &lt;- all(     isOdd(x, c(1, 5, 9, 13)),     isOdd(x, c(2, 6, 10, 14)),     isOdd(x, c(3, 7, 11, 15)),     isOdd(x, c(4, 8, 12, 16))   )    row_flag &lt;- all(     isEven(x, c(1, 2, 3, 4)),     isEven(x, c(5, 6, 7, 8)),     isEven(x, c(9, 10, 11, 12)),     isEven(x, c(13, 14, 15, 16))   )    if(col_flag &amp;&amp; row_flag) print(x) }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0432\u0430\u0440\u0438\u0430\u043d\u0442 2<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043d\u043e\u0435, \u0430 \u0432 \u0441\u0443\u043c\u043c\u0435 10. \u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0430: 3, 3, 3, 1 library(tidyverse) library(magrittr) library(arrangements) library(foreach)  # \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438: #  1  2  3  4  #  5  6  7  8 #  9 10 11 12 # 13 14 15 16  # \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440, \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432. \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c icomb &lt;- icombinations(1:16, k = 10, replace = FALSE) df &lt;- foreach(x = icomb, .combine = rbind) %do% {   # x - \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0439, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u043c \u0437\u043d\u0430\u043a\u0438 \"\u043c\u0438\u043d\u0443\u0441\"   # \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f \u043a\u043e\u043c\u0438\u0431\u043d\u0430\u0446\u0438\u0439   # \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443   v &lt;- rep(0, 16)   # \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043c \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0441\u0430\u043c\u0438   # browser()   v[x] &lt;- 1   m &lt;- matrix(v, nrow = 4, ncol = 4, byrow = TRUE)   # \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435: \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u043d\u0435\u0447\u0451\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0438\u043d\u0443\u0441\u043e\u0432,    # \u0430 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0447\u0451\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0438\u043d\u0443\u0441\u043e\u0432   if (all(colSums(m) %% 2 == 1) &amp;&amp; all(rowSums(m) %% 2 == 0))      x else NULL }  df %&lt;&gt;% as_tibble(.name_repair = \"minimal\")  # \u0430 \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043e\u0447\u043a\u0443 v &lt;- rep(0, 16) # \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043c \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0441\u0430\u043c\u0438 v[purrr::flatten_int(df[5, ])] &lt;- 1 matrix(v, nrow = 4, ncol = 4, byrow = TRUE)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h2 id=\"kombinatorika\">\u041a\u043e\u043c\u0431\u0438\u043d\u0430\u0442\u043e\u0440\u0438\u043a\u0430<\/h2>\n<p>  <\/p>\n<h3 id=\"zadacha-8\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0438\u0437 \u0431\u0443\u043a\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0432\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0431\u0443\u043a\u0432\u044b \u043d\u0435 \u0441\u0442\u043e\u044f\u0442 \u0440\u044f\u0434\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0431\u0443\u043a\u0432\u044b \u041a, \u0410, \u0428 \u0438 \u0410 ?<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f <a href=\"https:\/\/stackoverflow.com\/questions\/11095992\/generating-all-distinct-permutations-of-a-list-in-r\">Generating all distinct permutations of a list in R<\/a><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u044b # https:\/\/stackoverflow.com\/questions\/44918645\/split-a-string-into-character-efficiently lset &lt;- unlist(base::strsplit(\"\u041a\u0410\u0428\u0410\", split = \"\", fixed = TRUE)) # \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0447\u0435\u0441\u0442\u043d\u0430\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0410 \u0438\u043c\u0435\u0442\u044c   lset &lt;- c(\"\u041a\", \"\u04101\", \"\u0428\", \"\u04102\") # library(permutations)  df &lt;- tidyr::crossing(p1 = lset, p2 = lset, p3 = lset, p4 = lset) ff &lt;- function(...){   vals &lt;- rlang::list2(...)   # browser()   n_distinct(unlist(vals)) } df %&gt;%    # mutate(u = purrr::pmap_int(., ~n_distinct(.x)))   mutate(u = purrr::pmap_int(., ff)) %&gt;%   filter(u == 4) %&gt;%   select(-u) %&gt;%   # \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443   mutate(s = purrr::pmap_chr(., stri_join)) %&gt;%   mutate_at(vars(s), stri_replace_all_regex, pattern = \"(\u0410\\\\d+)\", replacement = \"\u0410\") %&gt;%   distinct(s) %&gt;%   # \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044b \u0431\u0443\u043a\u0432 \u0410   filter(!stri_detect_fixed(s, \"\u0410\u0410\"))<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadacha-9\">\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  <\/p>\n<p>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 \u0433\u043e\u0434\u0443? \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># \u0431\u0435\u0440\u0435\u043c \u0432\u0438\u0441\u043e\u043a\u043e\u0441\u043d\u044b\u0439 \u0433\u043e\u0434, \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0435\u0434\u0435\u043b\u044c 366 %\/% 7 # \u043f\u043e\u0433\u043b\u044f\u0434\u0438\u043c \u043d\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u043a. \u0412 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043d\u0430 \u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 366 %% 7<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"zadachka-pro-piratov\">\u0417\u0430\u0434\u0430\u0447\u043a\u0430 \u043f\u0440\u043e \u043f\u0438\u0440\u0430\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<p>\u041f\u0438\u0440\u0430\u0442\u044b: A, B, C<br \/>  \u0412\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 1<br \/>  A: \u0423 B 2 \u0433\u043b\u0430\u0437\u0430<br \/>  B: \u0423 C 2 \u0433\u043b\u0430\u0437\u0430<br \/>  C: \u0423 A 2 \u0433\u043b\u0430\u0437\u0430<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 2<br \/>  A: \u0423 \u043d\u0430\u0441 \u043d\u0430 \u0432\u0441\u0435\u0445 2 \u0433\u043b\u0430\u0437\u0430<br \/>  B: \u0423 \u043d\u0430\u0441 \u043d\u0430 \u0432\u0441\u0435\u0445 3 \u0433\u043b\u0430\u0437\u0430<br \/>  C: \u0423 \u043d\u0430\u0441 \u043d\u0430 \u0432\u0441\u0435\u0445 4 \u0433\u043b\u0430\u0437\u0430<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u0440\u0430\u0442 \u043d\u0430\u0432\u0440\u0430\u043b \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0435\u0433\u043e \u0433\u043b\u0430\u0437. \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043b\u0430\u0437 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0438\u0440\u0430\u0442\u0430?<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">df &lt;- tidyr::crossing(a = 0:2, b = 0:2, c = 0:2) %&gt;%   mutate(total = a + b + c) %&gt;%   mutate(a_lie = (b != 2) + (total != 2),          b_lie = (c != 2) + (total != 3),          c_lie = (a != 2) + (total != 4)) %&gt;%   filter(a_lie == a, b_lie == b, c_lie == c) df<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0418 \u0442.\u0434. \u0438 \u0442.\u043f. <\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u0433\u043e-\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u043c\u044f \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0440\u0435\u0431\u0435\u043d\u043a\u043e\u043c. <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u2014 <a href=\"https:\/\/habr.com\/ru\/post\/462469\/\">\u00ab\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0432 R \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u00abenterprise\u00bb \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u00bb<\/a>.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/462619\/\"> https:\/\/habr.com\/ru\/post\/462619\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u041d\u044b\u043d\u0435\u0448\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0448\u043a\u043e\u043b\u0435 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0434\u0443\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0410 \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0447\u0430\u0441\u0442\u0438 \u0430\u043a\u0446\u0435\u043d\u0442 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u044d\u0444\u0444\u0435\u043a\u0442. \u00ab\u041f\u0440\u043e\u0435\u043a\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u00bb, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0432\u0430\u0443-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0438 \u043f\u0440. \u043c\u0438\u0448\u0443\u0440\u0430. \u041f\u0440\u0438\u0447\u0435\u043c \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u043e\u043c\u0443 \u0440\u0430\u0437\u0434\u0430\u044e\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u2014 \u0440\u0435\u0431\u0435\u043d\u043a\u0443 \u0438\u043b\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c? \u0421\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435\u043c \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043d\u044f\u0442\u0438\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u0440\u0443\u0436\u043a\u0430\u0445, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0448\u043a\u043e\u043b\u044b \u0438\u043b\u0438 \u0436\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u044c \u0434\u0430\u0442\u044c \u0440\u0435\u0431\u0435\u043d\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439 \u0438\u043b\u0438 \u0444\u0438\u0437\u0438\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0434\u0432\u0443\u0445 \u0437\u0430\u0439\u0446\u0435\u0432 (\u043d\u0443 \u0438\u043b\u0438 \u0437\u0430\u0439\u0446\u0430 \u0438 \u0437\u0430\u0439\u0447\u043e\u043d\u043a\u0430). \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0438\u0437 \u0434\u043e\u043f. \u0437\u0430\u043d\u044f\u0442\u0438\u0439 (\u0448\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u0430) \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u043e\u0441\u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043d\u0435 \u043f\u0440\u043e \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432 \u0432 \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0446\u0435\u043b\u0438 \u2014 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432, \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b.<\/p>\n<p>  <\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435\u043c. \u041a\u043e\u043c\u0443 \u044d\u0442\u043e \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u2014 <strong>\u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0435 \u043c\u0438\u043c\u043e<\/strong>. \u0423 \u043a\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u043f. \u0438\u0434\u0435\u0438, \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0442\u043e\u0436\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f. \u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u044f\u0434 \u0437\u0430\u0434\u0430\u0447\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b \u0441 \u043a\u0443\u0440\u0441\u043e\u0432 \u00ab<a href=\"https:\/\/metaschool.ru\/\">\u041c\u0435\u0442\u0430\u0448\u043a\u043e\u043b\u044b<\/a>\u00bb, \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 3-\u0438\u0439 \u043a\u043b\u0430\u0441\u0441. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438, \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f R. <\/p>\n<p>  <\/p>\n<p>\u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habrahabr.ru\/users\/i_shutov\/posts\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-293007","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293007"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293007\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}