{"id":267650,"date":"2015-11-06T15:53:04","date_gmt":"2015-11-06T12:53:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267650"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267650","title":{"rendered":"\u0412\u043f\u0435\u0440\u0435\u0434, \u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0438 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432"},"content":{"rendered":"<p>       \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/company\/hexlet\/blog\/269613\/\">codebattle \u043e\u0442 hexlet.io<\/a>. \u041d\u0443 \u0438 \u0437\u0430\u0442\u044f\u043d\u0443\u043b\u043e \u0436\u0435 \u043d\u0430\u0441 \u0441 \u0434\u0440\u0443\u0437\u044c\u043c\u0438, \u044d\u0442\u043e \u043a\u0430\u043a \u043d\u0430\u0440\u043a\u043e\u0442\u0438\u043a! \u0412\u0440\u043e\u0434\u0435 \u043f\u044b\u0442\u0430\u0435\u0448\u044c\u0441\u044f \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f, \u0430 \u0440\u0443\u043a\u0438 \u043f\u0440\u044f\u043c \u0441\u0430\u043c\u0438 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442, \u0438 \u0432\u0441\u0435 \u043c\u044b\u0441\u043b\u0438 \u2014 \u043e\u0431 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. <br \/>  \u0418 \u0432\u043e\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u043a\u0430, \u0437\u0432\u0443\u0447\u0430\u043b\u0430 \u043e\u043d\u0430 \u0442\u0430\u043a: \u00abThe decimal number 585 is 1001001001 in binary. It is palindromic in both bases. Find n-th palindromic number\u00bb. \u0410 \u0435\u0441\u043b\u0438 \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438, \u0442\u043e \u0442\u0430\u043a: \u00ab\u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 585 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a 1001001001. \u041e\u043d\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u043e\u0431\u0435\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 n-\u044b\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u00bb. \u041e\u043d\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438 \u0440\u0435\u0448\u0435\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<pre><code class=\"php\">function is_palindrome($num) {    return $num == strrev($num); } function solution($num) {    $count = $i = 0;    while($count&lt;$num) {       $i++;       \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0438 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0438 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435       if (is_palindrome($i) && is_palindrome(decbin($i))){          $count++;       }    }    return $i; } <\/code><\/pre>\n<p>  \u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0441\u0430\u0439\u0442 \u043d\u0430\u043f\u0430\u043b \u0445\u0430\u0431\u0440\u0430\u044d\u0444\u0444\u0435\u043a\u0442, \u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0438 \u0432 \u043a\u0430\u043a\u0443\u044e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c, \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e timeout. \u0412 \u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0447\u0430\u0442\u0435 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u0430\u043b. \u041f\u043e\u0442\u043e\u043c \u0441\u0430\u0439\u0442 \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u043e, \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0448\u043b\u0438, \u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c\u2026<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u044f \u0441\u043c\u043e\u0433\u0443 \u043d\u0430\u0439\u0442\u0438 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432 \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u043a\u0435. \u0425\u043e\u0442\u044c \u0432 \u0447\u0430\u0442\u0435 \u0438 \u043d\u0435 \u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 22-\u0445, \u044f \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043d\u0430\u0448\u0435\u043b 27 \u0432\u0441\u0435\u0433\u043e \u0437\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434, \u0430 \u0432\u043e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u0438\u0448\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 4 \u0441 \u043b\u0438\u0448\u043d\u0438\u043c \u043c\u0438\u043d\u0443\u0442\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u044f \u0443\u0436 \u0436\u0434\u0430\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043b \u2014 \u0434\u043e\u043b\u0433\u043e \u0447\u0442\u043e-\u0442\u043e. \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0435\u0431\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0442\u0443\u043a \u0438 \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<ol>\n<li>1<\/li>\n<li>3<\/li>\n<li>5<\/li>\n<li>7<\/li>\n<li>9<\/li>\n<li>33<\/li>\n<li>99<\/li>\n<li>313<\/li>\n<li>585<\/li>\n<li>717<\/li>\n<li>7447<\/li>\n<li>9009<\/li>\n<li>15351<\/li>\n<li>32223<\/li>\n<li>39993<\/li>\n<li>53235<\/li>\n<li>53835<\/li>\n<li>73737<\/li>\n<li>585585<\/li>\n<li>1758571<\/li>\n<\/ol>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e \u0441\u0443\u0442\u0438 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u2014 \u044d\u0442\u043e \u043d\u0435\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0437\u044f\u043b\u0438, \u043e\u0442\u0437\u0435\u0440\u043a\u0430\u043b\u0438\u043b\u0438 \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b\u0438 \u0432 \u043a\u043e\u043d\u0435\u0446 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0447\u0438\u0441\u043b\u0430. \u0422.\u0435. \u0432\u0437\u044f\u043b\u0438 \u0447\u0438\u0441\u043b\u043e 235, \u043e\u0442\u0437\u0435\u0440\u043a\u0430\u043b\u0438\u043b\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 532 \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0438 \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u2014 235532. \u0418 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u0437\u0430\u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u0430, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0421\u043a\u0430\u0437\u0430\u043d\u043e \u2014 \u0441\u0434\u0435\u043b\u0430\u043d\u043e!<\/p>\n<pre><code class=\"php\">function solution($num) {    $count = $i = 0;    while($count&lt;$num) {       $i++;       \/\/\u0411\u0435\u0440\u0435\u043c \u0447\u0438\u0441\u043b\u0430 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0441 \u0441\u043e\u0431\u043e\u0439 \u0436\u0435 \u0432 \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u043c \u0432\u0438\u0434\u0435       $palindrome = $i . strrev($i);       \/\/ \u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u0448 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.       if (is_palindrome(decbin($palindrome))) {          $count++;       }    }    return $palindrome; } <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u044b \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0446\u0438\u043a\u043b \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u0435\u0432\u044f\u0442\u044c \u0447\u0438\u0441\u0435\u043b.<\/p>\n<pre><code class=\"php\">for ($i = 1; $i &lt; 10; $i++) {    if (is_palindrome(decbin($i))) {       $count++;       if ($count == $num) return $i;    } } <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0435\u0449\u0451 \u0440\u0430\u0437, \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u044f \u0431\u044b\u043b\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0441\u0438\u043b\u044c\u043d\u0435\u0435. \u042f \u0432\u0435\u0434\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u0441 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a 313, 585 \u0438\u043b\u0438 717! \u0418 \u0432\u043e\u0442 \u0442\u0443\u0442 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043a\u0440\u0435\u043f\u043a\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u0441 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432 \u2014 \u044d\u0442\u043e \u0442\u0435 \u0436\u0435 \u0447\u0435\u0442\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0446\u0435\u043d\u0442\u0440\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u043a\u043e\u043c. \u0422.\u0435. \u0431\u0435\u0440\u0435\u043c \u0447\u0435\u0442\u043d\u044b\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0446\u0435\u043d\u0442\u0440 \u0446\u0438\u0444\u0440\u044b 1-9 \u0438 \u0432\u0443\u0430\u043b\u044f \u2014 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b. \u041d\u043e! \u0415\u0441\u043b\u0438 \u044f \u0431\u0443\u0434\u0443 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435, \u044f \u043f\u043e\u0442\u0435\u0440\u044f\u044e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0447\u0438\u0441\u0435\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u043d\u0435\u0441\u0442\u0438 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0434 \u0438 \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u043d\u0430\u043a\u043e\u0432.<\/p>\n<pre><code class=\"php\">function solution($num) {    $count = 0;    \/\/ \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b.    for ($i = 1; $i &lt; 10; $i++) {       if (is_palindrome(decbin($i))) {          $count++;          if ($count == $num) return $i;       }    }    $p_size = 1;    while (true) {       $min = 10**($p_size-1);       $max = (10**$p_size)-1;       \/\/ $min \u0438 max \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u043c \u0446\u0438\u043a\u043b\u0430 \u0431\u0443\u0434\u0443\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0440\u044f\u0434       for ($i = $min; $i &lt;= $max; $i++) {          \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432          $palindrome = $i . strrev($i);          \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.          if (is_palindrome(decbin($palindrome))) {             $count++;             if ($count == $num) return $palindrome;          }       }       for ($i = $min; $i &lt;= $max; $i++) {          for ($j = 0; $j &lt; 10; $j++) {             \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432             $palindrome = $i . $j . strrev($i);             \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.             if (is_palindrome(decbin($palindrome))) {                $count++;                if ($count == $num) return $palindrome;             }          }       }       $p_size++;    } } <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u0411\u0435\u0440\u0435\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 1-9. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0443\u0445\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b. \u0421\u043b\u0435\u0434\u043e\u043c \u0442\u0440\u0451\u0445\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435. \u041f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u044f\u0434 \u0438 \u0431\u0435\u0440\u0435\u043c \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 10-99. \u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0441\u044f \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b 4-\u0445 \u0438 5-\u0442\u0438\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435. \u041d\u0443 \u0438 \u0442.\u0434.<\/p>\n<h4>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c!<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 28-\u043e\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044d\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043b\u0451\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. 28-\u043e\u0439 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0437\u0430 0.15 \u0441\u0435\u043a\u0443\u043d\u0434\u044b! \u0410 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0432 1500 \u0440\u0430\u0437. \u042f \u0431\u044b\u043b \u0434\u043e\u0432\u043e\u043b\u0435\u043d. \u0417\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434 \u044f \u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 40-\u0430 \u043f\u043e\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432. 50-\u044b\u0439 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0437\u0430 2.5 \u043c\u0438\u043d\u0443\u0442\u044b.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0432 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b, \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0435. \u0418 \u0432\u0435\u0434\u044c \u043f\u0440\u0430\u0432\u0434\u0430! \u0427\u0435\u0442\u043d\u044b\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 0, \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 1, \u0442\u043e \u0438 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443\u0442. \u0410 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0438\u0445 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u0410 \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b \u043c\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0435\u0442\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0439 continue \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0451\u043b. \u041d\u0430\u043c \u0434\u0430\u0436\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0446\u0438\u043a\u043b. \u0411\u0443\u0434\u0435\u043c \u0438\u0445 \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u0442\u044c. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:<\/p>\n<pre><code class=\"php\">if(!(substr($i,0,1))%2)) $i += $min; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"php\">if(!((floor($i\/$min))%2)) $i += $min; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"php\">if (!$limit){    $limit = $min;    $i += $min; } $limit--; <\/code><\/pre>\n<p>  \u042f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c, \u043a\u0430\u043a \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">function solution($num) {    $count = 0;    \/\/ \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b.    for ($i = 1; $i &lt; 10; $i++) {       if (is_palindrome(decbin($i))) {          $count++;          if ($count == $num) return $i;       }    }    $p_size = 1;    while (true) {       $min = 10**($p_size-1);       $max = (10**$p_size)-1;       \/\/ $min \u0438 max \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u043c \u0446\u0438\u043a\u043b\u0430 \u0431\u0443\u0434\u0443\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0440\u044f\u0434       $limit = $min;       for ($i = $min; $i &lt;= $max; $i++) {          \/\/ \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u0430 \u0441 \u0447\u0451\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439          if (!$limit){             $limit = $min;             $i += $min;          }          $limit--;          \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432          $palindrome = $i . strrev($i);          \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.          if (is_palindrome(decbin($palindrome))) {             $count++;             if ($count == $num) return $palindrome;          }       }       $limit = $min;       for ($i = $min; $i &lt;= $max; $i++) {          if (!$limit){             $limit = $min;             $i += $min;          }          $limit--;          for ($j = 0; $j &lt; 10; $j++) {             \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432             $palindrome = $i . $j . strrev($i);             \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.             if (is_palindrome(decbin($palindrome))) {                $count++;                if ($count == $num) return $palindrome;             }          }       }       $p_size++;    } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u042d\u0442\u0438\u043c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0435\u0449\u0451 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430. 50-\u044b\u0439 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0437\u0430 88 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u0431\u044b\u043b \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442! <\/p>\n<h4>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b<\/h4>\n<p>  \u0418 \u0432\u043e\u0442 \u044f \u0443\u0436\u0435 \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043c\u044b\u0441\u043b\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b. \u0410 \u0447\u0442\u043e? \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0446\u0438\u0444\u0440 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u0442\u043d\u044b\u0445 \u043d\u0435 \u0441\u0433\u0435\u043d\u0438\u0440\u0438\u0440\u0443\u0435\u0448\u044c. \u041e\u0434\u043d\u0438 \u043f\u043b\u044e\u0441\u044b \u043a\u0440\u0443\u0433\u043e\u043c!<\/p>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0430\u0437\u043c\u044b\u0441\u043b\u0438\u0432, \u044f \u0431\u044b\u0441\u0442\u0440\u0435\u043d\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u043a\u043e\u0434 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b:<\/p>\n<pre><code class=\"php\">function solution($num) {    if ($num==1) return 1;    $count = 1;    $p_size = 1;    while (true) {       $min = 2**($p_size-1);       $max = (2**$p_size)-1;       \/\/ $min \u0438 max \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u043c \u0446\u0438\u043a\u043b\u0430 \u0431\u0443\u0434\u0443\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0440\u044f\u0434 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435       for ($i = $min; $i &lt;= $max; $i++) {          $half_palindrome = decbin($i);          \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435          $bin_palindrome = ($half_palindrome) . strrev($half_palindrome);          \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.          $dec_palindrome = bindec($bin_palindrome);          if (is_palindrome($dec_palindrome)) {             $count++;             if ($count == $num) return $dec_palindrome;          }       }       for ($i = $min; $i &lt;= $max; $i++) {          $half_palindrome = decbin($i);          for ($j = 0; $j &lt; 2; $j++) {             \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0441 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0437\u043d\u0430\u043a\u043e\u0432 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435             $bin_palindrome = $half_palindrome . $j . strrev($half_palindrome);             \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.             $dec_palindrome = bindec($bin_palindrome);             if (is_palindrome($dec_palindrome)) {                $count++;                if ($count == $num) return $dec_palindrome;             }          }       }       $p_size++;    } } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. 28-\u043e\u0439 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0437\u0430 0.05 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. 50-\u044b\u0439 \u0437\u0430 48 \u0441\u0435\u043a\u0443\u043d\u0434. \u041a\u043e\u0433\u0434\u0430 \u0431\u0440\u0430\u043b\u0441\u044f \u0437\u0430 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443, \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b.<\/p>\n<p>  \u0422\u0443\u0442 \u044f \u0443\u0436\u0435 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0445\u0432\u0430\u0442\u0438\u0442: \u044f \u0438 \u0442\u0430\u043a \u043f\u0440\u0435\u0432\u0437\u043e\u0448\u0435\u043b \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f. \u0425\u043e\u0442\u044f \u0432\u0440\u0443, \u043a\u043e\u043d\u0435\u0447\u043d\u043e. \u041f\u043e\u0442\u043e\u043c \u0435\u0449\u0451 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435, \u043d\u043e \u0443\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e. \u0423\u0441\u0442\u0430\u043b \u0443\u0436\u0435, \u0434\u0430 \u0438 \u043d\u043e\u0447\u044c \u043d\u0430 \u0434\u0432\u043e\u0440\u0435. <\/p>\n<p>  \u041d\u0443 \u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0441\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0432\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<table>\n<tr>\n<th>\u2116<\/th>\n<th>\u041f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c<\/th>\n<th>\u041f\u0435\u0440\u0435\u0431\u043e\u0440 (\u0441\u0435\u043a)<\/th>\n<th>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f dec \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432 (\u0441\u0435\u043a)<\/th>\n<th>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f bin \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u0432 (\u0441\u0435\u043a)<\/th>\n<th>\u043a\u043e\u043b-\u0432\u043e \u0431\u0438\u0442<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1<\/td>\n<td>6.9141387939453E-6<\/td>\n<td>5.0067901611328E-6<\/td>\n<td><\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>3<\/td>\n<td>5.1975250244141E-5<\/td>\n<td>4.887580871582E-5<\/td>\n<td>4.2200088500977E-5<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>5<\/td>\n<td>5.8889389038086E-5<\/td>\n<td>5.5074691772461E-5<\/td>\n<td>6.0081481933594E-5<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>7<\/td>\n<td>6.4849853515625E-5<\/td>\n<td>6.103515625E-5<\/td>\n<td>6.6041946411133E-5<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>9<\/td>\n<td>6.9856643676758E-5<\/td>\n<td>6.6041946411133E-5<\/td>\n<td>7.4148178100586E-5<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>33<\/td>\n<td>8.2969665527344E-5<\/td>\n<td>7.1048736572266E-5<\/td>\n<td>9.0122222900391E-5<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>99<\/td>\n<td>0.00011205673217773<\/td>\n<td>8.6069107055664E-5<\/td>\n<td>0.00010299682617188<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>313<\/td>\n<td>0.00020503997802734<\/td>\n<td>0.00010395050048828<\/td>\n<td>0.00012612342834473<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>585<\/td>\n<td>0.00033092498779297<\/td>\n<td>0.00012397766113281<\/td>\n<td>0.00014519691467285<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>717<\/td>\n<td>0.0003969669342041<\/td>\n<td>0.00013089179992676<\/td>\n<td>0.0001521110534668<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>7447<\/td>\n<td>0.0026609897613525<\/td>\n<td>0.0001828670501709<\/td>\n<td>0.00027918815612793<\/td>\n<td>13<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>9009<\/td>\n<td>0.0031960010528564<\/td>\n<td>0.00020384788513184<\/td>\n<td>0.00030112266540527<\/td>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>15351<\/td>\n<td>0.0053460597991943<\/td>\n<td>0.0002899169921875<\/td>\n<td>0.00034999847412109<\/td>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>32223<\/td>\n<td>0.011164903640747<\/td>\n<td>0.00038385391235352<\/td>\n<td>0.00047707557678223<\/td>\n<td>15<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>39993<\/td>\n<td>0.013840913772583<\/td>\n<td>0.00048685073852539<\/td>\n<td>0.00052118301391602<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>53235<\/td>\n<td>0.018357038497925<\/td>\n<td>0.00053596496582031<\/td>\n<td>0.00057101249694824<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>17<\/td>\n<td>53835<\/td>\n<td>0.018585920333862<\/td>\n<td>0.00054693222045898<\/td>\n<td>0.0005891323089599<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td>73737<\/td>\n<td>0.025254964828491<\/td>\n<td>0.00066089630126953<\/td>\n<td>0.00065517425537109<\/td>\n<td>17<\/td>\n<\/tr>\n<tr>\n<td>19<\/td>\n<td>585585<\/td>\n<td>0.19646406173706<\/td>\n<td>0.0011670589447021<\/td>\n<td>0.0015511512756348<\/td>\n<td>20<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>1758571<\/td>\n<td>0.59263801574707<\/td>\n<td>0.0026059150695801<\/td>\n<td>0.0024890899658203<\/td>\n<td>21<\/td>\n<\/tr>\n<tr>\n<td>21<\/td>\n<td>1934391<\/td>\n<td>0.65274286270142<\/td>\n<td>0.002892017364502<\/td>\n<td>0.0026500225067139<\/td>\n<td>21<\/td>\n<\/tr>\n<tr>\n<td>22<\/td>\n<td>1979791<\/td>\n<td>0.66831588745117<\/td>\n<td>0.0029850006103516<\/td>\n<td>0.0027000904083252<\/td>\n<td>21<\/td>\n<\/tr>\n<tr>\n<td>23<\/td>\n<td>3129213<\/td>\n<td>1.0589859485626<\/td>\n<td>0.00323486328125<\/td>\n<td>0.0032520294189453<\/td>\n<td>22<\/td>\n<\/tr>\n<tr>\n<td>24<\/td>\n<td>5071705<\/td>\n<td>1.7217099666595<\/td>\n<td>0.0046730041503906<\/td>\n<td>0.0040431022644043<\/td>\n<td>23<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<td>5259525<\/td>\n<td>1.7863478660583<\/td>\n<td>0.0049829483032227<\/td>\n<td>0.0041420459747314<\/td>\n<td>23<\/td>\n<\/tr>\n<tr>\n<td>26<\/td>\n<td>5841485<\/td>\n<td>1.9860379695892<\/td>\n<td>0.0059189796447754<\/td>\n<td>0.0043931007385254<\/td>\n<td>23<\/td>\n<\/tr>\n<tr>\n<td>27<\/td>\n<td>13500531<\/td>\n<td>4.5991010665894<\/td>\n<td>0.0097908973693848<\/td>\n<td>0.0064051151275635<\/td>\n<td>24<\/td>\n<\/tr>\n<tr>\n<td>28<\/td>\n<td>719848917<\/td>\n<td>254.43427205086<\/td>\n<td>0.074897050857544<\/td>\n<td>0.046326160430908<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>29<\/td>\n<td>910373019<\/td>\n<td><\/td>\n<td>0.090998888015747<\/td>\n<td>0.051257133483887<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td>939474939<\/td>\n<td><\/td>\n<td>0.096122026443481<\/td>\n<td>0.05202817916870<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>31<\/td>\n<td>1290880921<\/td>\n<td><\/td>\n<td>0.11239194869995<\/td>\n<td>0.061146974563599<\/td>\n<td>31<\/td>\n<\/tr>\n<tr>\n<td>32<\/td>\n<td>7451111547<\/td>\n<td><\/td>\n<td>0.16925406455994<\/td>\n<td>0.15515112876892<\/td>\n<td>33<\/td>\n<\/tr>\n<tr>\n<td>33<\/td>\n<td>10050905001<\/td>\n<td><\/td>\n<td>0.19922494888306<\/td>\n<td>0.18062520027161<\/td>\n<td>34<\/td>\n<\/tr>\n<tr>\n<td>34<\/td>\n<td>18462126481<\/td>\n<td><\/td>\n<td>0.36378288269043<\/td>\n<td>0.2389931678772<\/td>\n<td>35<\/td>\n<\/tr>\n<tr>\n<td>35<\/td>\n<td>32479297423<\/td>\n<td><\/td>\n<td>0.4427649974823<\/td>\n<td>0.33302116394043<\/td>\n<td>35<\/td>\n<\/tr>\n<tr>\n<td>36<\/td>\n<td>75015151057<\/td>\n<td><\/td>\n<td>0.88776993751526<\/td>\n<td>0.48717308044434<\/td>\n<td>37<\/td>\n<\/tr>\n<tr>\n<td>37<\/td>\n<td>110948849011<\/td>\n<td><\/td>\n<td>1.20951795578<\/td>\n<td>0.60900402069092<\/td>\n<td>37<\/td>\n<\/tr>\n<tr>\n<td>38<\/td>\n<td>136525525631<\/td>\n<td><\/td>\n<td>1.2637610435486<\/td>\n<td>0.69635009765625<\/td>\n<td>37<\/td>\n<\/tr>\n<tr>\n<td>39<\/td>\n<td>1234104014321<\/td>\n<td><\/td>\n<td>2.6941239833832<\/td>\n<td>2.0280501842499<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>40<\/td>\n<td>1413899983141<\/td>\n<td><\/td>\n<td>3.0781800746918<\/td>\n<td>2.1862101554871<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>41<\/td>\n<td>1474922294741<\/td>\n<td><\/td>\n<td>3.2089228630066<\/td>\n<td>2.2403671741486<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>42<\/td>\n<td>1792704072971<\/td>\n<td><\/td>\n<td>3.8874368667603<\/td>\n<td>2.5199501514435<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>43<\/td>\n<td>1794096904971<\/td>\n<td><\/td>\n<td>3.8904230594635<\/td>\n<td>2.521210193634<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>44<\/td>\n<td>1999925299991<\/td>\n<td><\/td>\n<td>4.3287780284882<\/td>\n<td>2.7018330097198<\/td>\n<td>41<\/td>\n<\/tr>\n<tr>\n<td>45<\/td>\n<td>5652622262565<\/td>\n<td><\/td>\n<td>7.9812479019165<\/td>\n<td>4.4443550109863<\/td>\n<td>43<\/td>\n<\/tr>\n<tr>\n<td>46<\/td>\n<td>7227526257227<\/td>\n<td><\/td>\n<td>9.285425901413<\/td>\n<td>5.1428310871124<\/td>\n<td>43<\/td>\n<\/tr>\n<tr>\n<td>47<\/td>\n<td>7284717174827<\/td>\n<td><\/td>\n<td>9.4120988845825<\/td>\n<td>5.1688570976257<\/td>\n<td>43<\/td>\n<\/tr>\n<tr>\n<td>48<\/td>\n<td>9484874784849<\/td>\n<td><\/td>\n<td>12.100240945816<\/td>\n<td>5.998220205307<\/td>\n<td>44<\/td>\n<\/tr>\n<tr>\n<td>49<\/td>\n<td>34141388314143<\/td>\n<td><\/td>\n<td>16.401521921158<\/td>\n<td>11.614565134048<\/td>\n<td>45<\/td>\n<\/tr>\n<tr>\n<td>50<\/td>\n<td>552212535212255<\/td>\n<td><\/td>\n<td>87.537031888962<\/td>\n<td>49.897539138794<\/td>\n<td>49<\/td>\n<\/tr>\n<tr>\n<td>51<\/td>\n<td>933138363831339<\/td>\n<td><\/td>\n<td>134.56801986694<\/td>\n<td>62.49614405632<\/td>\n<td>50<\/td>\n<\/tr>\n<tr>\n<td>52<\/td>\n<td>1793770770773971<\/td>\n<td><\/td>\n<td>171.45103907585<\/td>\n<td>90.226871013641<\/td>\n<td>51<\/td>\n<\/tr>\n<tr>\n<td>53<\/td>\n<td>3148955775598413<\/td>\n<td><\/td>\n<td>180.56048107147<\/td>\n<td>119.85724520683<\/td>\n<td>52<\/td>\n<\/tr>\n<tr>\n<td>54<\/td>\n<td>10457587478575401<\/td>\n<td><\/td>\n<td>293.4983189106<\/td>\n<td>224.45361399651<\/td>\n<td>54<\/td>\n<\/tr>\n<tr>\n<td>55<\/td>\n<td>10819671917691801<\/td>\n<td><\/td>\n<td>303.29767894745<\/td>\n<td>227.38862919807<\/td>\n<td>54<\/td>\n<\/tr>\n<tr>\n<td>56<\/td>\n<td>18279440804497281<\/td>\n<td><\/td>\n<td>506.18344306946<\/td>\n<td>287.77621507645<\/td>\n<td>55<\/td>\n<\/tr>\n<tr>\n<td>57<\/td>\n<td>34104482028440143<\/td>\n<td><\/td>\n<td><\/td>\n<td>410.04529714584<\/td>\n<td>55<\/td>\n<\/tr>\n<tr>\n<td>58<\/td>\n<td>37078796869787073<\/td>\n<td><\/td>\n<td><\/td>\n<td>428.8955411911<\/td>\n<td>56<\/td>\n<\/tr>\n<tr>\n<td>59<\/td>\n<td>37629927072992673<\/td>\n<td><\/td>\n<td><\/td>\n<td>431.15429711342<\/td>\n<td>56<\/td>\n<\/tr>\n<tr>\n<td>60<\/td>\n<td>55952637073625955<\/td>\n<td><\/td>\n<td><\/td>\n<td>506.2887160778<\/td>\n<td>56<\/td>\n<\/tr>\n<\/table>\n<p>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/270325\/\"> http:\/\/habrahabr.ru\/post\/270325\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/company\/hexlet\/blog\/269613\/\">codebattle \u043e\u0442 hexlet.io<\/a>. \u041d\u0443 \u0438 \u0437\u0430\u0442\u044f\u043d\u0443\u043b\u043e \u0436\u0435 \u043d\u0430\u0441 \u0441 \u0434\u0440\u0443\u0437\u044c\u043c\u0438, \u044d\u0442\u043e \u043a\u0430\u043a \u043d\u0430\u0440\u043a\u043e\u0442\u0438\u043a! \u0412\u0440\u043e\u0434\u0435 \u043f\u044b\u0442\u0430\u0435\u0448\u044c\u0441\u044f \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f, \u0430 \u0440\u0443\u043a\u0438 \u043f\u0440\u044f\u043c \u0441\u0430\u043c\u0438 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442, \u0438 \u0432\u0441\u0435 \u043c\u044b\u0441\u043b\u0438 \u2014 \u043e\u0431 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. <br \/>  \u0418 \u0432\u043e\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u043a\u0430, \u0437\u0432\u0443\u0447\u0430\u043b\u0430 \u043e\u043d\u0430 \u0442\u0430\u043a: \u00abThe decimal number 585 is 1001001001 in binary. It is palindromic in both bases. Find n-th palindromic number\u00bb. \u0410 \u0435\u0441\u043b\u0438 \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438, \u0442\u043e \u0442\u0430\u043a: \u00ab\u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 585 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a 1001001001. \u041e\u043d\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u043e\u043c \u0432 \u043e\u0431\u0435\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 n-\u044b\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u00bb. \u041e\u043d\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438 \u0440\u0435\u0448\u0435\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<pre><code class=\"php\">function is_palindrome($num) {    return $num == strrev($num); } function solution($num) {    $count = $i = 0;    while($count&lt;$num) {       $i++;       \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0438 \u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0438 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435       if (is_palindrome($i) &#038;& is_palindrome(decbin($i))){          $count++;       }    }    return $i; } <\/code><\/pre>\n<p>  \u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0441\u0430\u0439\u0442 \u043d\u0430\u043f\u0430\u043b \u0445\u0430\u0431\u0440\u0430\u044d\u0444\u0444\u0435\u043a\u0442, \u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0438 \u0432 \u043a\u0430\u043a\u0443\u044e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c, \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e timeout. \u0412 \u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0447\u0430\u0442\u0435 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u0430\u043b. \u041f\u043e\u0442\u043e\u043c \u0441\u0430\u0439\u0442 \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u043e, \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0448\u043b\u0438, \u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c\u2026  <\/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-267650","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267650","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=267650"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267650\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}