{"id":274339,"date":"2016-02-16T05:23:02","date_gmt":"2016-02-16T02:23:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274339"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274339","title":{"rendered":"\u0412\u043e\u0442 \u043e\u043d, \u043c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c. \u0418\u043b\u0438 \u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u00abLisp\u00bb"},"content":{"rendered":"<p>       \u041f\u043e\u043b\u0430\u0433\u0430\u044e, \u0432\u0430\u043c \u0431\u0443\u0434\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u0438 \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0443\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0412\u0441\u0435\u0433\u043e \u043f\u0430\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043f\u0440\u043e\u043a\u043b\u044f\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u00ab\u0410\u0432\u0442\u043e\u0440\u00bb.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f:  <\/p>\n<ul>\n<li> \u2014 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c,<\/li>\n<li> \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442 \u00ab\u0410\u0432\u0442\u043e\u0440\u00bb,<\/li>\n<li> \u2014 \u043f\u043e\u043a\u0430\u0436\u0443, \u0432\u043e \u0447\u0442\u043e \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f,<\/li>\n<li> \u2014 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0430\u043c\u043e\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u0418\u0418,<\/li>\n<li> \u2014 \u043f\u043e\u0441\u043c\u0435\u044e\u0441\u044c \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439.<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0442\u043b\u0438\u0447\u0438\u0435\u043c \u044f\u0437\u044b\u043a\u0430 \u00ab\u0410\u0432\u0442\u043e\u0440\u00bb \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c. \u041d\u0435 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c. \u0421\u043c\u043e\u0442\u0440\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/276895\/\">\u0442\u0443\u0442<\/a>. \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0443 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043d\u0435 \u043f\u043e\u0431\u043e\u044e\u0441\u044c \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430, \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430. \u0414\u0430, \u0434\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0418\u0418. \u041a\u0430\u043a \u043c\u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0438: \u00ab\u0417\u0430\u0439\u0434\u0438 \u043d\u0430 \u043a\u0430\u0444\u0435\u0434\u0440\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u043a\u0440\u0438\u043a\u043d\u0438 \u00ab\u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u00bb \u0438 \u0432\u0441\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432 \u0437\u0430\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0435\u00bb. \u0410 \u044f \u043c\u043e\u0432 \u2013 \u043b\u044e\u0434\u0438, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u044e \u0418\u0418, \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u0435 \u043c\u043d\u0435, \u0434\u0443\u0440\u0430\u043a\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u0443\u0436\u0435 \u044f \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0439\u043c\u0443, \u044f \u043d\u0435\u043f\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u043c\u043e\u0433\u0443 \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u0448\u0438\u043d\u0443. \u0427\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u043e\u043c? \u0427\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c? \u041a\u0430\u043a \u0441\u043e\u0449\u0438\u0442\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u0443? \u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441. \u0414\u0430\u0439\u0442\u0435 \u043c\u043d\u0435 \u043e\u0434\u043d\u0443 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u2026 <\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u043e\u0442 \u00ab\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439\u00bb \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0447\u0438\u0442\u044c\u0441\u044f, \u0434\u0430 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0435\u0431\u044f:<\/p>\n<pre> \/\/ killme.txt var generator(n){ \tif(n&lt;2)return PROGRAM({1,5,18,3,7,&quot;x&quot;,&quot;y&quot;}[#]); \ta=(int)(n\/{1.4,2}[#]); \tif(#?1:0)a=n-a; \tb=n-a; \toperators={&quot;+&quot;,&quot;-&quot;,&quot;*&quot;,&quot;|&quot;,&quot;&&quot;}; \tcommand=PROGRAM(&quot;#&quot;+operators[#]+&quot;#&quot;); \tcommand.setSub({0},generator(a)); \tcommand.setSub({1},generator(b)); \treturn command; }  void main(functionName){ \tif(!isset(functionName)){ \t\tmain(getThisFunctionName()); \t\tmain(&quot;generator&quot;); \t\treturn; \t\t} \tf=getFunction(functionName); \tids=f.getIDs()+{f.Root()}; \tpos=ids[#]; \tnext=f.Next(pos); \tisElse=0; \tif(typeof(next)==&quot;vector&quot;)isElse=rand()%next.size(); \tpos=f.insertDown(pos,isElse); \tf.setCommand(pos,generator(5)); \tpos=f.insertDown(pos); \tf.setIF(pos,&quot;#?1:0&quot;); } <\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u0441\u043a\u0430\u0436\u0435\u0442\u0435, \u0447\u0442\u043e \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0436\u0435 \u0432\u0441\u0451 \u0443\u043c\u0435\u0435\u0442. \u041d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0451 \u0432\u043e\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043c\u0443\u0441\u043e\u0440, \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0447\u043a\u0430\u0435\u0442 \u0438\u043c \u0441\u0435\u0431\u044f \u0438 \u043f\u0435\u0440\u0432\u0443\u044e. \u041c\u0435\u0440\u0430 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430.<\/p>\n<p>  \u0412\u043e\u0442 \u0432\u043e \u0447\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u044f\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<pre> \/\/ killme.code var generator(var n){ \tif(n&lt;2)return PROGRAM({1,5,18,3,7,&quot;x&quot;,&quot;y&quot;}[# ]);else { \t\t5-1&(7|1-18); \t\tif(# ?1:0); \t\t} \ta=((int)(n\/{1.4,2}[# ])); \tif(# ?1:0)a=n-a; \tb=n-a; \t7*x|x-(x-18); \tif(# ?1:0); \toperators={&quot;+&quot;,&quot;-&quot;,&quot;*&quot;,&quot;|&quot;,&quot;&&quot;}; \t(5&3)-3-(1|18); \t(3|7)|18&3&y; \t7+18|7-(y&x); \tif(# ?1:0); \tif(# ?1:0); \tif(# ?1:0); \tcommand=PROGRAM(&quot;#&quot;+operators[# ]+&quot;#&quot;); \tcommand.setSub({0},generator(a)); \tcommand.setSub({1},generator(b)); \treturn command; }  void main(var functionName){ \tif(!isset(functionName)){ \t\tmain(getThisFunctionName()); \t\t(5|5)-(7&x*x); \t\tif(# ?1:0); \t\tmain(&quot;generator&quot;); \t\treturn; \t\t}else { \t\t7*5+7*(18&7); \t\tif(# ?1:0); \t\t} \tf=getFunction(functionName); \tids=f.getIDs()+{f.Root()}; \tpos=ids[# ]; \tnext=f.Next(pos); \tisElse=0; \tif(typeof(next)==&quot;vector&quot;)isElse=rand()%next.size(); \tpos=f.insertDown(pos,isElse); \tx-(x&3)+(18|5); \tif(# ?1:0){ \t\t(3|7)+(x&1+3); \t\tif(# ?1:0);else { \t\t\t(y|7-1)&(18|x); \t\t\tif(# ?1:0); \t\t\t} \t\t} \tf.setCommand(pos,generator(5)); \tpos=f.insertDown(pos); \tf.setIF(pos,&quot;#?1:0&quot;); } \/\/ killme.code\t:-| <\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0451 \u0431\u043e\u043b\u0435\u0435 \u043c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0438\u043c\u0435\u043d \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u043d\u043e \u043e\u043d \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0438\u0442, \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c, \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0439.<\/p>\n<p>  \u041f\u043e\u0440\u043e\u0439 \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044f \u0441\u0430\u043c \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0436\u0443 \u043c\u0443\u0441\u043e\u0440, \u043d\u043e \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438 \u043f\u0440\u043e \u0432\u0441\u044e \u043d\u0430\u0448\u0443 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n<p>  \u0410 \u0432\u0435\u0434\u044c \u00ab\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u00bb \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0441\u0430\u043c\u043e\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435. \u041f\u0443\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\/\u0438\u043b\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0412\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0418\u0418 \u0432 \u043f\u043b\u0430\u043d\u0435 \u00ab\u0440\u043e\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u00bb.<\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u0445\u043e\u0447\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0435 \u00ab\u0427\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c?\u00bb. <br \/>  \u0417\u0434\u0435\u0441\u044c, \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e \u2013 \u043d\u0435 \u0431\u044b\u043b\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430, \u0438 \u0432\u043e\u0442 \u043e\u043d \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f. \u041d\u0435 \u0431\u044b\u043b\u043e \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0432\u043e\u0442 \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c. \u041d\u043e \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0435\u0441\u043b\u0438 \u0438\u0445 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e, \u0442\u043e, \u043a\u0430\u043a \u0436\u0435 \u043e\u043d\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f. \u0417\u043d\u0430\u0447\u0438\u0442 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0442\u043e-\u0442\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c, \u0447\u0442\u043e-\u0442\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c?<\/p>\n<p>  \u0412\u043e\u0442 \u0432\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u0441\u043c\u0435\u043a\u0430\u043b\u043a\u0443. \u0421\u043a\u0430\u0436\u0438\u0442\u0435, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430?<\/p>\n<pre> \/\/ smekni.txt void main(){ \tm={4,6,1,78,43,59,8,12}; \twhile(1){ \t\tok=1; \t\tfor(i=1;i&lt;m.size();++i)if(m[i-1]&gt;m[i])ok=0; \t\tif(ok)break; \t\ta=rand()%m.size(); \t\tb=rand()%m.size(); \t\tX=m[a]; \t\tm[a]=m[b]; \t\tm[b]=X; \t\t} \ttrace(m.export()); \tgetstring(); } <\/pre>\n<p>  \u041d\u0443 \u043d\u0435 \u0437\u043d\u0430\u044e \u044f, \u043a\u0430\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432. \u041b\u0438\u0441\u043f \u0432\u0441\u044e \u0436\u0438\u0437\u043d\u044c \u0438\u0437\u0443\u0447\u0430\u043b. \u041f\u043e\u0439\u043c\u0438 \u043c\u0435\u043d\u044f. \u041f\u043e\u0439\u043c\u0438.<\/p>\n<p>  \u042f \u0434\u0443\u043c\u0430\u044e, \u0432\u044b \u0432\u0441\u0435 \u043c\u0435\u043d\u044f \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u0439\u043c\u0451\u0442\u0435.<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u043a \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u044c\u0431\u0430. \u041f\u0440\u0438\u0441\u044b\u043b\u0430\u0439\u0442\u0435 \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0435\u0440\u0443 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u043e\u0431\u043d\u043e <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A5%D0%B0%D0%BD%D0%BE%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D0%B1%D0%B0%D1%88%D0%BD%D1%8F\">\u00ab\u0425\u0435\u043d\u043e\u0439\u0441\u043a\u0430\u044f \u0431\u0430\u0448\u043d\u044f\u00bb<\/a> \u0438\u043b\u0438 \u00ab\u041f\u0430\u043b\u043a\u0438\u00bb. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0443 \u0438\u0433\u0440\u044b \u00ab\u041f\u0430\u043b\u043a\u0438\u00bb \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u044f \u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u044e. <\/p>\n<p>  \u0418\u0433\u0440\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c. \u0414\u0430\u043d\u043e \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0430\u043b\u043e\u043a, \u0434\u0432\u0430 \u0438\u0433\u0440\u043e\u043a\u0430, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0445\u043e\u0434 \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u043d\u0443, \u0434\u0432\u0435 \u0438\u043b\u0438 \u0442\u0440\u0438 \u043f\u0430\u043b\u043a\u0438, \u0438\u0433\u0440\u043e\u043a\u0438 \u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043a\u0442\u043e \u0437\u0430\u0431\u0440\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043f\u0430\u043b\u043a\u0443 \u2013 \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u043b. \u041f\u0435\u0440\u0432\u044b\u043c \u0445\u043e\u0436\u0443, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044f:). \u0417\u0434\u0435\u0441\u044c \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448\u0435 \u0438\u043b\u0438 \u0432\u044b\u0438\u0433\u0440\u044b\u0448\u0435, \u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0443\u043c\u0435\u043d\u0438\u0435. \u0412\u043e\u0442 \u0432 \u0447\u0451\u043c \u0441\u043e\u043b\u044c.<\/p>\n<p>  \u0412\u043e\u0442, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u0435\u0442\u0441\u0442\u0432\u0435 \u043d\u0430 \u0437\u0430\u0434 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0442\u043e\u0440\u0430).<\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442?               <\/p>\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=\"https:\/\/habrahabr.ru\/post\/277305\/\"> https:\/\/habrahabr.ru\/post\/277305\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u043e\u043b\u0430\u0433\u0430\u044e, \u0432\u0430\u043c \u0431\u0443\u0434\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u0438 \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0443\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0412\u0441\u0435\u0433\u043e \u043f\u0430\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043f\u0440\u043e\u043a\u043b\u044f\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u00ab\u0410\u0432\u0442\u043e\u0440\u00bb.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f:  <\/p>\n<ul>\n<li> \u2014 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c,<\/li>\n<li> \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442 \u00ab\u0410\u0432\u0442\u043e\u0440\u00bb,<\/li>\n<li> \u2014 \u043f\u043e\u043a\u0430\u0436\u0443, \u0432\u043e \u0447\u0442\u043e \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f,<\/li>\n<li> \u2014 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0430\u043c\u043e\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u0418\u0418,<\/li>\n<li> \u2014 \u043f\u043e\u0441\u043c\u0435\u044e\u0441\u044c \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439.<\/li>\n<\/ul>\n<p>  <\/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-274339","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274339","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=274339"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274339\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}