{"id":1044,"date":"2016-07-06T18:25:18","date_gmt":"2016-07-06T15:25:18","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=1044"},"modified":"2016-07-08T11:48:56","modified_gmt":"2016-07-08T08:48:56","slug":"%d0%b0165g","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=1044","title":{"rendered":"\u0410165\u0433. \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435"},"content":{"rendered":"<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/>\n<\/strong>\u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]a_{1}, a_{2},\\ldots[\/latex] .<br \/>\n\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e [latex]a_{1} &gt; 0,[\/latex] \u0438 \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0438 [latex]a_{2}, a_{3},\\ldots[\/latex] \u0435\u0441\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<br \/>\n\u041f\u0443\u0441\u0442\u044c [latex]a_{1},\\ldots,a_{n}[\/latex] &#8212; \u0447\u043b\u0435\u043d\u044b \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u043b\u0435\u043d\u0443([latex]n[\/latex] \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e)<br \/>\n\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c:<br \/>\n\u0433) \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 [latex]a_{1},\\ldots,a_{n}[\/latex].<br \/>\n<strong><br \/>\n\u0422\u0435\u0441\u0442\u044b:<br \/>\n<\/strong><\/p>\n<table style=\"width: 471px\">\n<tbody>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/td>\n<td style=\"width: 248px;height: 24px\">\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">3 6 8 -9 4 5<\/td>\n<td style=\"width: 248px;height: 24px\">5.24<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">13 14 1 4 5 6 -8 1 12<\/td>\n<td style=\"width: 248px;height: 24px\">5.29<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">2 -3 4<\/td>\n<td style=\"width: 248px;height: 24px\">2.00<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">2 2 2 -3 2 3 4 5<\/td>\n<td style=\"width: 248px;height: 24px\">2.00<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"width: 237px;height: 24px\">79 3 0.05<\/td>\n<td style=\"width: 248px;height: 24px\">2.28<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<br \/>\n<\/strong><\/p>\n<pre class=\"lang:java decode:true\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\n\r\nclass Ideone {\r\n\tpublic static void main (String[] args) {\r\n\t\tScanner x = new Scanner(System.in);\r\n\t\tdouble p = 1, a ;\r\n\t\tint c = 0;\r\n\t\twhile( x.hasNext() ) {\r\n\t\t\ta = x.nextDouble();\r\n\t\t\tif(a &gt;= 0) {\r\n\t\t\t\tc++;\r\n\t\t\t\tp*=a;\r\n\t\t\t} else break;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%.2f\", Math.pow(p,1.0\/c) );\r\n\t}\r\n}<\/pre>\n<p><strong>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c:<\/strong><\/p>\n<p>\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u043e\u0442\u043e\u043a\u0430 \u0432\u0432\u043e\u0434\u0430. \u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u0430 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0441\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u043a\u043e\u0440\u0435\u043d\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430.<br \/>\n\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e : [latex]a_{gm} = \\sqrt[n]{a_{1}\\cdot a_{2}\\cdot \\ldots \\cdot a_{n}}[\/latex]\n\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434 \u043d\u0430\u00a0<a href=\"http:\/\/ideone.com\/oQl1Xa\">ideone.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]a_{1}, a_{2},\\ldots[\/latex] . \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e [latex]a_{1} &gt; 0,[\/latex] \u0438 \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0438 [latex]a_{2}, a_{3},\\ldots[\/latex] \u0435\u0441\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u041f\u0443\u0441\u0442\u044c [latex]a_{1},\\ldots,a_{n}[\/latex] &#8212; \u0447\u043b\u0435\u043d\u044b \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u043b\u0435\u043d\u0443([latex]n[\/latex] \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e) \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c: \u0433) \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 [latex]a_{1},\\ldots,a_{n}[\/latex]. \u0422\u0435\u0441\u0442\u044b: \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 3 6 8 -9 4 5 5.24 13 14 1 4 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=1044\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":83,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[139,148],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1044"}],"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\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1044"}],"version-history":[{"count":20,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1044\/revisions"}],"predecessor-version":[{"id":1148,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1044\/revisions\/1148"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}