{"id":23670,"date":"2012-11-30T11:38:04","date_gmt":"2012-11-30T08:38:04","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=23670"},"modified":"2012-11-30T11:38:04","modified_gmt":"2012-11-30T08:38:04","slug":"%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-%d0%bb%d0%b0%d0%b1%d0%be%d1%80%d0%b0%d1%82%d0%be%d1%80%d0%bd%d1%8b%d0%b5-%d1%80%d0%b0%d0%b1%d0%be","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=23670","title":{"rendered":"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b."},"content":{"rendered":"<p>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b.<br \/>\n#include <stdio.h><br \/>\n#include <conio.h><br \/>\n#define  n10<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n unsigned a[n],M,L,i;<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e M: &#171;);<br \/>\n scanf(&#171;%u&#187;,&#038;M);<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e L (0<=L<=M-1): \");\n scanf(\"%u\",&#038;L);\n for(i=0;i<n;i++)\n<!--more--><br \/>\n\t{<br \/>\n\t printf(&#171;A[%u]> &#171;,i+1);<br \/>\n\t scanf(&#171;%u&#187;,&#038;a[i]);<br \/>\n\t}<br \/>\n printf(&#171;\\n \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044e A[i]%%%u==%u:\\n&#187;,M,L);<br \/>\n for(i=0;i<size;i++)\n\tif(a[i]%M==L)\n\tprintf(\"A[%u]=%u\\n\",i+1,a[i]);\n getch();\n}\n\n\n\n#include <conio.h><br \/>\n#include <math.h><br \/>\n#include <stdio.h><br \/>\n#define n10<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n unsigned i,a[n],m;<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 %i \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b:\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\tscanf(\"%u\",&#038;a[i]);\n printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: \");\n scanf(\"%u\",&#038;m);\n printf(\"\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u0447\u0438\u0441\u043b\u0430 %u \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442:\\n\");\n for(i=0;i<n;i++)\n\tif(m*m==a[i])\n\t\tprintf(\"%u\\n\",a[i]);\n getch();\n}\n\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define n 10<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n float x[n],y[n],r=0;<br \/>\n int i,j,A,B;<br \/>\n for(i=0;i<n;i++)\n\t{\n\t printf(\"\u0422\u043e\u0447\u043a\u0430 M%i (x;y): \",i+1);\n\t scanf(\"%f%f\",&#038;x[n],&#038;y[n]);\n\t}\n for(i=0;i<n;i++)\n\tfor(j=0;j<n;j++)\n\t\tif((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j])>r)<br \/>\n\t\t\t{<br \/>\n\t\t\t A=i;<br \/>\n\t\t\t B=j;<br \/>\n\t\t\t r=(x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]);<br \/>\n\t\t\t}<br \/>\n printf(&#171;\u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u043e\u0447\u043a\u0430\u043c\u0438  M%i(%f;%f) i M%i(%f;%f)&#187;,A+1,x[A],y[A],B+1,x[B],y[B]);<br \/>\n getch();<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b. #include #include #define n10 void main() { clrscr(); unsigned a[n],M,L,i; printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e M: &#171;); scanf(&#171;%u&#187;,&#038;M); printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e L (0<\/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\/23670"}],"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=23670"}],"version-history":[{"count":1,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23670\/revisions"}],"predecessor-version":[{"id":23671,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23670\/revisions\/23671"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}