{"id":23658,"date":"2012-11-29T16:07:58","date_gmt":"2012-11-29T13:07:58","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=23658"},"modified":"2012-11-29T16:07:58","modified_gmt":"2012-11-29T13:07:58","slug":"%d1%81%d0%bb%d0%be%d0%b2%d0%b0-%d1%81-%d0%be%d0%b4%d0%bd%d0%be%d0%b9-%d0%b1%d1%83%d0%ba%d0%b2%d1%8b-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d0%b0-%d0%bd%d0%b0-%d1%81%d0%b8","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=23658","title":{"rendered":"\u0421\u043b\u043e\u0432\u0430 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u044b. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u0421\u0438 ++"},"content":{"rendered":"<p>\/\/ \u041d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0435\u0439 \u0442\u0435 \u0441\u043b\u043e\u0432\u0430,<br \/>\n\/\/\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0438 \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0431\u0443\u043a\u0432\u043e\u0439.<br \/>\n#include<stdio.h><br \/>\n#include<conio.h><br \/>\n#include<string.h><br \/>\nvoid main()<br \/>\n{<br \/>\nclrscr();<br \/>\nchar str[100];<br \/>\nputs(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435&#187;);<br \/>\nscanf(&#171;%s&#187;,&#038;str);<br \/>\nint mas[20];<br \/>\nint n=0,i=0,j=1;<br \/>\nn=strlen(str);<br \/>\nmas[0]=0;<br \/>\nfor(i=0;i<n;i++)\/\/\u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0432 \u043c\u0430\u0441\u0438 \u043d\u043e\u043c\u0435\u0440\u0430 1 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0443\u043a\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430\n{if(str[i]==' ')\n{mas[j]=i-1;mas[j+1]=i+1;j=j+2;}\n}\nmas[j]=n-1; \/\/\u0437\u0430\u043d\u043e\u0441\u0438\u043c \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0441\u0434\u043d\u0435\u0439 \u0431\u0443\u043a\u0432\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0432 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\n<!--more--><br \/>\nfor(i=0;i<=j;i=i+2)\nif(str[mas[i]]==str[mas[i+1]]) \/\/\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0431\u0443\u043a\u0432\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0442\u0440,\n\/\/\u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043c\u0430\u0441.\n\/\/\u0442.\u0435. \u043f\u0435\u0440\u0432\u0443\u044e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0431\u0443\u043a\u0432\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430\n{\nfor(n=mas[i];n<=mas[i+1];n++)  \/\/\u0435\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u043c\n\/\/\u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0441\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u043a\u0432\u044b \u0441\u043b\u043e\u0432\u0430 \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u0435\u0435\nprintf(\"%c\",str[n]);printf(\"  \");}\ngetch();\n}\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ \u041d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0435\u0439 \u0442\u0435 \u0441\u043b\u043e\u0432\u0430, \/\/\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0438 \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0431\u0443\u043a\u0432\u043e\u0439. #include #include #include void main() { clrscr(); char str[100]; puts(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435&#187;); scanf(&#171;%s&#187;,&#038;str); int mas[20]; int n=0,i=0,j=1; n=strlen(str); mas[0]=0; for(i=0;i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23658"}],"collection":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23658"}],"version-history":[{"count":1,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23658\/revisions"}],"predecessor-version":[{"id":23659,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23658\/revisions\/23659"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}