{"id":3115,"date":"2017-08-23T00:56:05","date_gmt":"2017-08-22T21:56:05","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3115"},"modified":"2017-11-28T02:11:11","modified_gmt":"2017-11-27T23:11:11","slug":"%d1%8e4-35","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3115","title":{"rendered":"\u042e4.35"},"content":{"rendered":"<h1><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/h1>\n<p><strong>\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430.\u00a0<\/strong>\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0432\u0440\u0435\u043c\u044f\u00a0<span id=\"MathJax-Element-1-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 t_1,t_2,\\cdots,t_n$<\/span><\/span>, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437\u00a0<span id=\"MathJax-Element-2-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\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0431\u0440\u0438\u0433\u0430\u0434\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443. \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0431\u0440\u0438\u0433\u0430\u0434\u0435 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c\u00a0\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e (\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0438\u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u00ab\u0441\u0430\u0447\u043a\u0443\u0435\u0442\u00bb)?<\/p>\n<h1><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/h1>\n<table width=\"400\">\n<tbody>\n<tr>\n<td><strong>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0445\u00a0<em>n.<\/em><\/strong><\/td>\n<td><strong>\u0412\u0440\u0435\u043c\u044f\u00a0<em>t<\/em>\u00a0\u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e, \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.\u00a0<\/strong><\/td>\n<td><strong>\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.<\/strong><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>5 7 9<\/td>\n<td>2.2<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>7 9 11 23<\/td>\n<td>2.6<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>1 2 3 4<\/td>\n<td>0.5<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>3 1 5 2 3<\/td>\n<td>0.4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\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 Task5\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 workingTime, sum = 0;\r\n\t\tfor(;n&gt;0;n--) \r\n\t\t{\r\n\t\t\tworkingTime=input.nextDouble();\r\n\t\t\tsum+=1\/workingTime;\r\n\t\t}\r\n\t\tSystem.out.printf(\"\u0420\u0430\u0431\u043e\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0437\u0430%5.1f \u0447\u0430\u0441\u043e\u0432 \\n\", 1\/cof);\r\n\t}\r\n}<\/pre>\n<h1><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/strong><\/h1>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0440\u0435\u043c\u044f, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435\u00a0<span id=\"MathJax-Element-3-Frame\" class=\"MathJax_SVG\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">n<\/span><\/span>\u00a0\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0412 \u0437\u0430\u0434\u0430\u0447\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u00a0\u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044a\u0451\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e-\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0435\u0433\u043e \u043a\u0430\u043a 1. \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435:\u00a0<span id=\"MathJax-Element-4-Frame\" class=\"MathJax_SVG\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">$latex \\frac{1}{\\frac{1}{t_1}+\\frac{1}{t_2}+\\cdots+\\frac{1}{t_n}}$<\/span><\/span>.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u0434\u0438\u043d \u0446\u0438\u043a\u043b <em>for<\/em> \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>workingTime<\/em> \u0438 \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u044a\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430 \u0447\u0430\u0441 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u0446\u0438\u043a\u043b\u0430 (\u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e). \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0432\u0441\u0435\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u043d\u0438\u043a\u0430\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0437\u0430 \u0447\u0430\u0441. \u0414\u0435\u043b\u0438\u043c \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u043e\u0431\u044a\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430 \u0447\u0430\u0441 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u043a\u043e\u043c\u0443\u044e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443.<\/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\/bzwsYr\" target=\"_blank\" rel=\"noopener\">ideone.<\/a><br \/>\n\u0417\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u0440\u0435\u0448\u0435\u043d\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e <a href=\"http:\/\/cpp.mazurok.com\/\u044e4-35\/\" 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 \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430.\u00a0\u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0432\u0440\u0435\u043c\u044f\u00a0$latex t_1,t_2,\\cdots,t_n$, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437\u00a0$latex n$\u00a0\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0431\u0440\u0438\u0433\u0430\u0434\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443. \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0431\u0440\u0438\u0433\u0430\u0434\u0435 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c\u00a0\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e (\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0438\u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u00ab\u0441\u0430\u0447\u043a\u0443\u0435\u0442\u00bb)? \u0422\u0435\u0441\u0442\u044b \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0445\u00a0n. \u0412\u0440\u0435\u043c\u044f\u00a0t\u00a0\u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e, \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.\u00a0 \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. 3 5 7 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3115\" 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":[25],"tags":[41,189,146,147,231],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3115"}],"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=3115"}],"version-history":[{"count":14,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3115\/revisions"}],"predecessor-version":[{"id":3285,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3115\/revisions\/3285"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}