{"id":3110,"date":"2017-08-23T00:58:01","date_gmt":"2017-08-22T21:58:01","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3110"},"modified":"2017-11-28T02:15:58","modified_gmt":"2017-11-27T23:15:58","slug":"%d0%b0136%d0%bb","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3110","title":{"rendered":"\u0410136\u043b"},"content":{"rendered":"<h1><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/h1>\n<p>\u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<span id=\"MathJax-Element-1-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: Ubuntu, 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px;color: #b29d85;background-color: #292625\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex n$<\/span><\/span>, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430\u00a0<span id=\"MathJax-Element-2-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: Ubuntu, 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px;color: #b29d85;background-color: #292625\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_1,\\cdots,a_n$<\/span><\/span>. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c:\u00a0<span id=\"MathJax-Element-3-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: Ubuntu, 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px;color: #b29d85;background-color: #292625\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex |a_1*a_2*\\cdots*a_n|$<\/span><\/span>.<\/p>\n<h1><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/h1>\n<table width=\"731\">\n<tbody>\n<tr>\n<td><strong><span id=\"MathJax-Element-4-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex n$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-5-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_1$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-6-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_2$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-7-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_3$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-8-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_4$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-9-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_5$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-10-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_6$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-11-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_7$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-12-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_8$<\/span><\/span><\/strong><\/td>\n<td><strong><span id=\"MathJax-Element-13-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex k$<\/span><\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>5<\/td>\n<td>-3<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>5.477225575051661<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>2<\/td>\n<td>7<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<td>5<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>28.982753492378876<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>0<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>3<\/td>\n<td>8<\/td>\n<td>6<\/td>\n<td>2.8<\/td>\n<td>1.3<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>22.894541<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1><strong>\u041a\u043e\u0434<\/strong><\/h1>\n<pre class=\"lang:java decode:true  \">import java.util.*;\r\nimport java.lang.*;\r\n \r\nclass Task4\r\n{\r\n\tpublic static void main (String[] args)\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint n = input.nextInt();\r\n\t\tdouble p=1;\r\n\t\tfor(;n&gt;0;n--) \r\n            p*=input.nextDouble();\r\n\t\tSystem.out.println(Math.sqrt(Math.abs(p)));\r\n\t}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h1><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/strong><\/h1>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u00a0<span id=\"MathJax-Element-14-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex n$<\/span><\/span>\u00a0(\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u2014 \u044d\u0442\u043e \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0438\u043f\u00a0<em>int<\/em>) \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $latex p$ (\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435), \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f\u00a0<em>double<\/em>.<\/p>\n<p>\u0412 \u0446\u0438\u043a\u043b\u0435\u00a0<em>for<\/em>\u00a0\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b\u00a0<span id=\"MathJax-Element-15-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex a_1,\\cdots,a_n$<\/span><\/span>, \u0433\u0434\u0435<i>\u00a0<\/i><span id=\"MathJax-Element-16-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><\/span>\u00a0 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0446\u0438\u043a\u043b\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0435\u043d\u044c \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435\u00a0 <a href=\"https:\/\/ideone.com\/p8YhhN\" target=\"_blank\" rel=\"noopener\">ideone.<\/a><br \/>\n\u0417\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d\u0430 \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e <a href=\"http:\/\/cpp.mazurok.com\/\u0430136\u043b\/\" target=\"_blank\" rel=\"noopener\">\u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0$latex n$, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430\u00a0$latex a_1,\\cdots,a_n$. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c:\u00a0$latex |a_1*a_2*\\cdots*a_n|$. \u0422\u0435\u0441\u0442\u044b $latex n$ $latex a_1$ $latex a_2$ $latex a_3$ $latex a_4$ $latex a_5$ $latex a_6$ $latex a_7$ $latex a_8$ $latex k$ 4 5 -3 2 1 \u2014 \u2014 \u2014 \u2014 5.477225575051661 5 2 7 4 3 5 \u2014 \u2014 \u2014 28.982753492378876 3 4 4 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3110\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":104,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[41,189,141,75],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3110"}],"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\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3110"}],"version-history":[{"count":18,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3110\/revisions"}],"predecessor-version":[{"id":3214,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3110\/revisions\/3214"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}