{"id":315829,"date":"2020-12-30T21:00:15","date_gmt":"2020-12-30T21:00:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=315829"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=315829","title":{"rendered":"\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0426\u0435\u043a\u0435\u043d\u0434\u043e\u0440\u0444\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p><strong>\u041f\u0440\u0438\u0432\u0435\u0442\u0438\u043a\u0438-\u043e\u043c\u043b\u0435\u0442\u0438\u043a\u0438<\/strong><\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0434\u043e\u0431\u0440\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0425\u0430\u0431\u0440\u0430, \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0444\u0438\u0434\u0431\u0435\u043a.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043e\u0441\u0432\u044f\u0442\u0438\u0442\u044c \u0442\u0435\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u044f\u0434\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0438 \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <s>\u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u043e\u0435 REST API c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Mongo DB<\/s> \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044f\u0437\u044b\u043a\u0430 <strong>Ruby<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 <strong>N<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435.  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 1 : \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0426\u0435\u043a\u0435\u043d\u0434\u043e\u0440\u0444\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0433\u043b\u0430\u0441\u0438\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B5%D0%BE%D1%80%D0%B5%D0%BC%D0%B0_%D0%A6%D0%B5%D0%BA%D0%B5%D0%BD%D0%B4%D0%BE%D1%80%D1%84%D0%B0\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u0438\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 : <\/p>\n<blockquote>\n<p>\u0422\u0435\u043e\u0440\u0435\u043c\u0430 \u0426\u0435\u043a\u0435\u043d\u0434\u043e\u0440\u0444\u0430 \u0433\u043b\u0430\u0441\u0438\u0442, \u0447\u0442\u043e \u0432\u0441\u044f\u043a\u043e\u0435&nbsp;\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e&nbsp;\u043c\u043e\u0436\u043d\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0441\u0443\u043c\u043c\u044b&nbsp;<em>\u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445<\/em>&nbsp;\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u0432\u0443\u0445 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438.<\/p>\n<p>100 = 89 + 8 + 3.<\/p>\n<\/blockquote>\n<p>\u042f \u0434\u0443\u043c\u0430\u044e, \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438, \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0442\u0440\u0443\u0434\u0430 \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u0447\u0451\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430.<\/p>\n<p>\u0426\u0435\u043b\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u044b : <\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b<\/p>\n<\/li>\n<li>\n<p>\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u0434\u0430 <\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>Ruby<\/strong>, \u043f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <strong>Ruby<\/strong> &#8212; \u044d\u0442\u043e<\/p>\n<blockquote>\n<p>\u041b\u0443\u0447\u0448\u0438\u0439 \u0434\u0440\u0443\u0433 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430.<\/p>\n<\/blockquote>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<\/p>\n<p>\u0412\u044b\u043f\u0438\u0441\u0430\u0432 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u043e\u0433\u043e, \u043d\u0430 \u043b\u0438\u0441\u0442\u043e\u0447\u0435\u043a (\u0448\u043a\u043e\u043b\u0430), \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0432\u044b\u0433\u043e\u0434\u043d\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u043e \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0447\u0442\u043e \u043e\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u043d\u0430\u0448\u0435 \u0438\u0441\u043a\u043e\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>: <br \/>N = 51 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , 13, 21, <u>34<\/u>.<\/p>\n<p>\u0411\u0435\u0440\u0451\u043c \u0447\u0438\u0441\u043b\u043e 34, \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0435 \u0441 \u043d\u0438\u043c \u0447\u0438\u0441\u043b\u043e (21) \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0438\u0431\u043e \u0438\u0445 \u0441\u0443\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <strong>N<\/strong>, \u0438\u0431\u043e \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u043c\u044b \u0438\u0449\u0435\u043c \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u044f\u0442 \u0432\u0445\u043e\u0434\u043d\u043e\u0435, \u0432\u0435\u0434\u044c \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u0447\u0438\u0441\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e :-).<\/p>\n<p>\u041d\u043e \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443, \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u043c\u044b \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u0434\u043e\u0431\u044c\u0435\u043c\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f : <strong>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b .<br \/><\/strong>\u0421\u043b\u043e\u0436\u043d\u044b\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c &#8212; \u043e\u0442\u043a\u0430\u0436\u0435\u043c\u0441\u044f \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e : <strong>\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u0434\u0430. <br \/><\/strong><\/p>\n<p>\u0418 \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f:<em> \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043e\u0442\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0442 <\/em><strong><em>N <\/em><\/strong><em>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0440\u044f\u0434\u0443 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438, \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0440\u044f\u0434 \u0433\u0434\u0435 \u044d\u0442\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u043c\u0438\u0442\u043e\u043c, \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 &lt;= 0. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>: <br \/>N = 51 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , 13, 21, <u>34<\/u>.<br \/>ans = [34]<\/p>\n<p>N = 51 &#8212; 34 = 17 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , <u>13<\/u>.<br \/>ans = [34 , 13]<\/p>\n<p>N = 17 &#8212; 13 = 4<br \/>F = 1 , 1 , 2 , <u>3<\/u>.<br \/>ans = [34 , 13 , 3]<\/p>\n<p>N = 4 &#8212; 3  = 1<br \/>F = 1 <br \/>ans = [34 , 13 , 3, 1]<\/p>\n<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043a\u043e\u0434 : <\/p>\n<pre><code>def le_fib(limit, fib)   theoretical = fib[fib.count - 1] + fib[fib.count - 2]   return fib.last if theoretical &gt; limit    fib &lt;&lt; theoretical   le_fib(limit, fib) end  def main(target,result)   temporary = le_fib(target, [1,1])   result &lt;&lt; temporary   return result if target - temporary &lt;= 0    main(target - temporary, result) end pp main(gets.to_i,[]) <\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <strong>le_fib <\/strong>&#8212; \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438\u0449\u0435\u0442 \u0440\u044f\u0434 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0441 \u043f\u0440\u0435\u0434\u0435\u043b\u043e\u043c, \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>target<\/strong>. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0440\u044f\u0434 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0435\u0433\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f<strong> main <\/strong>&#8212; \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438\u0449\u0435\u0442 \u043c\u0430\u0441c\u0438\u0432, \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0435, \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b \u0432 \u0441\u0443\u043c\u043c\u0435 \u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>\u041d\u043e, \u0447\u0442\u043e \u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u0441\u044f \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 \u0440\u044f\u0434\u043e\u043c \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435, \u0432\u0435\u0434\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0431\u044b\u0432\u0430\u0435\u0442, \u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u0440\u0435\u0434\u0438\u0434\u0443\u0449\u0435\u0433\u043e \u044d\u0442\u0430\u043f\u0430, \u0432\u0435\u0434\u044c \u043e\u043d\u0430 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u043b\u044f 20 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e 1000 <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/63b\/95d\/d43\/63b95dd435e2de74b6d5bb2a3efdf219.png\" width=\"822\" height=\"910\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0446\u0435\u043d\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0440\u044f\u0434\u0430 (\u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9fb\/c59\/460\/9fbc5946029ab81666338955c7df6b19.png\" width=\"1120\" height=\"874\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0430\u0436\u0435 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430\u0445 \u0434\u043e 10^9 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e\u0435.<\/p>\n<p>\u0410 \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044c\u0435\u043c \u043a\u043e\u0434\u0430 \u0432 17 \u0441\u0442\u0440\u043e\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u043e\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432 \u0440\u0443\u043a\u0430\u0432\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043f\u0430\u0440\u0443 \u0437\u0430\u0434\u0430\u0447 \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0435, \u0438\u043d\u0430\u0447\u0435 \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0442\u0435\u0431\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \ud83d\ude42<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/535746\/\"> https:\/\/habr.com\/ru\/post\/535746\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p><strong>\u041f\u0440\u0438\u0432\u0435\u0442\u0438\u043a\u0438-\u043e\u043c\u043b\u0435\u0442\u0438\u043a\u0438<\/strong><\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0434\u043e\u0431\u0440\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0425\u0430\u0431\u0440\u0430, \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0444\u0438\u0434\u0431\u0435\u043a.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043e\u0441\u0432\u044f\u0442\u0438\u0442\u044c \u0442\u0435\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u044f\u0434\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0438 \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <s>\u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u043e\u0435 REST API c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Mongo DB<\/s> \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044f\u0437\u044b\u043a\u0430 <strong>Ruby<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 <strong>N<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435.  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 1 : \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0426\u0435\u043a\u0435\u043d\u0434\u043e\u0440\u0444\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0433\u043b\u0430\u0441\u0438\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B5%D0%BE%D1%80%D0%B5%D0%BC%D0%B0_%D0%A6%D0%B5%D0%BA%D0%B5%D0%BD%D0%B4%D0%BE%D1%80%D1%84%D0%B0\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u0438\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 : <\/p>\n<blockquote>\n<p>\u0422\u0435\u043e\u0440\u0435\u043c\u0430 \u0426\u0435\u043a\u0435\u043d\u0434\u043e\u0440\u0444\u0430 \u0433\u043b\u0430\u0441\u0438\u0442, \u0447\u0442\u043e \u0432\u0441\u044f\u043a\u043e\u0435&nbsp;\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e&nbsp;\u043c\u043e\u0436\u043d\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0441\u0443\u043c\u043c\u044b&nbsp;<em>\u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445<\/em>&nbsp;\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u0432\u0443\u0445 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438.<\/p>\n<p>100 = 89 + 8 + 3.<\/p>\n<\/blockquote>\n<p>\u042f \u0434\u0443\u043c\u0430\u044e, \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438, \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0442\u0440\u0443\u0434\u0430 \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u0447\u0451\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430.<\/p>\n<p>\u0426\u0435\u043b\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u044b : <\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b<\/p>\n<\/li>\n<li>\n<p>\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u0434\u0430 <\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>Ruby<\/strong>, \u043f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <strong>Ruby<\/strong> &#8212; \u044d\u0442\u043e<\/p>\n<blockquote>\n<p>\u041b\u0443\u0447\u0448\u0438\u0439 \u0434\u0440\u0443\u0433 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430.<\/p>\n<\/blockquote>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<\/p>\n<p>\u0412\u044b\u043f\u0438\u0441\u0430\u0432 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u043e\u0433\u043e, \u043d\u0430 \u043b\u0438\u0441\u0442\u043e\u0447\u0435\u043a (\u0448\u043a\u043e\u043b\u0430), \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0432\u044b\u0433\u043e\u0434\u043d\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u043e \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0447\u0442\u043e \u043e\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u043d\u0430\u0448\u0435 \u0438\u0441\u043a\u043e\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>: <br \/>N = 51 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , 13, 21, <u>34<\/u>.<\/p>\n<p>\u0411\u0435\u0440\u0451\u043c \u0447\u0438\u0441\u043b\u043e 34, \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0435 \u0441 \u043d\u0438\u043c \u0447\u0438\u0441\u043b\u043e (21) \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0438\u0431\u043e \u0438\u0445 \u0441\u0443\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <strong>N<\/strong>, \u0438\u0431\u043e \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u043c\u044b \u0438\u0449\u0435\u043c \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u044f\u0442 \u0432\u0445\u043e\u0434\u043d\u043e\u0435, \u0432\u0435\u0434\u044c \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u0447\u0438\u0441\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e :-).<\/p>\n<p>\u041d\u043e \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443, \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u043c\u044b \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u0434\u043e\u0431\u044c\u0435\u043c\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f : <strong>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b .<br \/><\/strong>\u0421\u043b\u043e\u0436\u043d\u044b\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c &#8212; \u043e\u0442\u043a\u0430\u0436\u0435\u043c\u0441\u044f \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e : <strong>\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u0434\u0430. <br \/><\/strong><\/p>\n<p>\u0418 \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f:<em> \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043e\u0442\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0442 <\/em><strong><em>N <\/em><\/strong><em>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0440\u044f\u0434\u0443 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438, \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0440\u044f\u0434 \u0433\u0434\u0435 \u044d\u0442\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u043c\u0438\u0442\u043e\u043c, \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043a\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 &lt;= 0. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>: <br \/>N = 51 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , 13, 21, <u>34<\/u>.<br \/>ans = [34]<\/p>\n<p>N = 51 &#8212; 34 = 17 <br \/>F = 1 , 1 , 2 , 3 , 5 , 8 , <u>13<\/u>.<br \/>ans = [34 , 13]<\/p>\n<p>N = 17 &#8212; 13 = 4<br \/>F = 1 , 1 , 2 , <u>3<\/u>.<br \/>ans = [34 , 13 , 3]<\/p>\n<p>N = 4 &#8212; 3  = 1<br \/>F = 1 <br \/>ans = [34 , 13 , 3, 1]<\/p>\n<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043a\u043e\u0434 : <\/p>\n<pre><code>def le_fib(limit, fib)   theoretical = fib[fib.count - 1] + fib[fib.count - 2]   return fib.last if theoretical &gt; limit    fib &lt;&lt; theoretical   le_fib(limit, fib) end  def main(target,result)   temporary = le_fib(target, [1,1])   result &lt;&lt; temporary   return result if target - temporary &lt;= 0    main(target - temporary, result) end pp main(gets.to_i,[]) <\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <strong>le_fib <\/strong>&#8212; \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438\u0449\u0435\u0442 \u0440\u044f\u0434 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0441 \u043f\u0440\u0435\u0434\u0435\u043b\u043e\u043c, \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>target<\/strong>. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0440\u044f\u0434 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0435\u0433\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f<strong> main <\/strong>&#8212; \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438\u0449\u0435\u0442 \u043c\u0430\u0441c\u0438\u0432, \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0435, \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b \u0432 \u0441\u0443\u043c\u043c\u0435 \u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430\u043c \u0432\u0445\u043e\u0434\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/p>\n<p>\u041d\u043e, \u0447\u0442\u043e \u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u0441\u044f \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 \u0440\u044f\u0434\u043e\u043c \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435, \u0432\u0435\u0434\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0431\u044b\u0432\u0430\u0435\u0442, \u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u0440\u0435\u0434\u0438\u0434\u0443\u0449\u0435\u0433\u043e \u044d\u0442\u0430\u043f\u0430, \u0432\u0435\u0434\u044c \u043e\u043d\u0430 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u043b\u044f 20 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e 1000 <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0446\u0435\u043d\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0440\u044f\u0434\u0430 (\u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430)<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0430\u0436\u0435 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430\u0445 \u0434\u043e 10^9 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e\u0435.<\/p>\n<p>\u0410 \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044c\u0435\u043c \u043a\u043e\u0434\u0430 \u0432 17 \u0441\u0442\u0440\u043e\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u043e\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432 \u0440\u0443\u043a\u0430\u0432\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043f\u0430\u0440\u0443 \u0437\u0430\u0434\u0430\u0447 \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0435, \u0438\u043d\u0430\u0447\u0435 \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0442\u0435\u0431\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \ud83d\ude42<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/535746\/\"> https:\/\/habr.com\/ru\/post\/535746\/<\/a><br \/><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/br><\/em><\/p>\n<p><\/strong><\/p>\n<p><\/br><\/br><\/br><\/br><\/br><\/br><\/p>\n<\/blockquote>\n<\/div>\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-315829","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315829","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=315829"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315829\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}