{"id":3001,"date":"2017-07-13T15:11:16","date_gmt":"2017-07-13T12:11:16","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3001"},"modified":"2017-08-20T19:59:07","modified_gmt":"2017-08-20T16:59:07","slug":"%d1%8e4-3","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3001","title":{"rendered":"\u042e4.3"},"content":{"rendered":"<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430<\/strong><\/p>\n<p>\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b [latex]{x}_{1}, {x}_{2}, \\ldots, {x}_{m}[\/latex] \u043e\u0442\u043d\u044f\u0442\u044c \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 [latex]\\overline{x}_{i} = {x}_{i}[\/latex] &#8212; [latex]{x}_{cp}[\/latex], [latex]i = 1, 2[\/latex], &#8230; , [latex]m[\/latex].<\/p>\n[latex]\\overline{x}[\/latex] = [latex]1\/m[\/latex];<br \/>\n[latex]E[\/latex] \u043e\u0442 [latex]m[\/latex] \u043f\u0440\u0438 [latex]i = 1 (x_1)[\/latex];<br \/>\n[latex]{x}_{i}[\/latex] = [latex]{x}_{i}[\/latex] &#8212; [latex]\\overline{x}[\/latex];   [latex]i = 1, 2[\/latex], &#8230; ,  [latex]m[\/latex]\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/p>\n<table style=\"width: 293px\">\n<tbody>\n<tr style=\"height: 72px\">\n<td style=\"width: 108px;height: 72px\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 &#8212; m<\/td>\n<td style=\"width: 34px;height: 72px\">\u041c\u0430\u0441\u0441\u0438\u0432<\/td>\n<td style=\"width: 47px;height: 72px\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/td>\n<\/tr>\n<tr style=\"height: 39px\">\n<td style=\"width: 108px;height: 39px\">2<\/td>\n<td style=\"width: 34px;height: 39px\">2<\/p>\n<p>5<\/td>\n<td style=\"width: 47px;height: 39px\"> -1,5<\/p>\n<p>1,5<\/td>\n<\/tr>\n<tr style=\"height: 80px\">\n<td style=\"width: 108px;height: 80px\">2<\/td>\n<td style=\"width: 34px;height: 80px\">2<\/p>\n<p>6<\/td>\n<td style=\"width: 47px;height: 80px\">-2<\/p>\n<p>2<\/td>\n<\/tr>\n<tr style=\"height: 61px\">\n<td style=\"width: 108px;height: 61px\">7<\/td>\n<td style=\"width: 34px;height: 61px\">2<\/p>\n<p>6<\/p>\n<p>-3<\/p>\n<p>5<\/p>\n<p>1<\/p>\n<p>0<\/p>\n<p>0<\/td>\n<td style=\"width: 47px;height: 61px\">0.43<\/p>\n<p>4.43<\/p>\n<p>-4.57<\/p>\n<p>3.43<\/p>\n<p>-0.57<\/p>\n<p>-1.57<\/p>\n<p>-1.57<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u041a\u043e\u0434<\/strong><\/p>\n<pre class=\"lang:java decode:true \">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\nimport java.util.Scanner;\r\n\r\nclass Ideone\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tint m = in.nextInt();\/\/\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435\r\n\t\tdouble sum = 0; \/\/ \u0441\u0443\u043c\u043c\u0430 \u0447\u0438\u0441\u0435\u043b \u043c\u0430\u0441\u0441\u0438\u0432\u0430\r\n\t\t\r\n\t\tdouble[] arr = new double[m];\r\n\t\tfor(int i = 0; i &lt; m; i++)\r\n\t\t{\r\n\t\t\tarr[i] = in.nextDouble();\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i &lt; m; i++)\r\n\t\t{\r\n\t\t\tsum += arr[i];\/\/\u0432\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i &lt; m; i++)\r\n\t\t{\r\n\t\t\tarr[i] = arr[i] - (sum \/ m);\/\/\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<p>\u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 <a href=\"https:\/\/ideone.com\/ohULOa\" target=\"_blank\" rel=\"noopener\">\u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0443\u0442<\/a>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u0438\u043f\u0430 <span class=\"lang:java decode:true crayon-inline \">double<\/span> \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c\u044e <span class=\"lang:java decode:true crayon-inline \">m<\/span>. \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0432\u043e\u0434\u0430, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0437 \u0442\u0438\u043f\u0430 string \u0432 \u0442\u0438\u043f int; \u0437\u0430\u0442\u0435\u043c \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0432\u043e\u0434\u0430 (\u0438\u0445 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 <span class=\"lang:java decode:true crayon-inline \">double<\/span> &#8212; \u0434\u043b\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439). \u0412 \u0446\u0438\u043a\u043b\u0430\u0445: \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0443\u043c\u043c\u0443 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0437\u0430\u0442\u0435\u043c \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432\u044b\u0447\u0438\u0442\u0430\u044f \u043e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0441\u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043d\u043e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <span class=\"lang:java decode:true crayon-inline \">arr[ ]<\/span>. \u0412\u044b\u0432\u043e\u0434\u0438\u043c <span class=\"lang:java decode:true crayon-inline \">arr[ ]<\/span>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b [latex]{x}_{1}, {x}_{2}, \\ldots, {x}_{m}[\/latex] \u043e\u0442\u043d\u044f\u0442\u044c \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 [latex]\\overline{x}_{i} = {x}_{i}[\/latex] &#8212; [latex]{x}_{cp}[\/latex], [latex]i = 1, 2[\/latex], &#8230; , [latex]m[\/latex]. [latex]\\overline{x}[\/latex] = [latex]1\/m[\/latex]; [latex]E[\/latex] \u043e\u0442 [latex]m[\/latex] \u043f\u0440\u0438 [latex]i = 1 (x_1)[\/latex]; [latex]{x}_{i}[\/latex] = [latex]{x}_{i}[\/latex] &#8212; [latex]\\overline{x}[\/latex]; [latex]i = 1, 2[\/latex], &#8230; , [latex]m[\/latex] \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3001\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":103,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[41,111,135,304,308],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3001"}],"collection":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/users\/103"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3001"}],"version-history":[{"count":35,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions"}],"predecessor-version":[{"id":3097,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions\/3097"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}