{"id":2180,"date":"2017-06-30T18:24:33","date_gmt":"2017-06-30T15:24:33","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=2180"},"modified":"2017-07-05T23:06:55","modified_gmt":"2017-07-05T20:06:55","slug":"a334%d0%b0-%d0%b2%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%bd%d0%b0%d1%8f-%d1%81%d1%83%d0%bc%d0%bc%d0%b0","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=2180","title":{"rendered":"A334(\u0430). \u0412\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430"},"content":{"rendered":"<h1>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c: [latex]\\sum \\limits_{i=1}^{m}\\sum \\limits_{j=1}^{n}\\frac{1}{i+j^2}[\/latex], \u0433\u0434\u0435 [latex]m[\/latex] \u0438 [latex]n[\/latex] &#8212; \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u0447\u0438\u0441\u043b\u0430.<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/h1>\n[latex]m[\/latex] \u0438 [latex]n[\/latex] &#8212; \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0443\u043c\u043c.<\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/h1>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table style=\"width: 325px\">\n<tbody>\n<tr>\n<td style=\"text-align: center\">\u2116<\/td>\n<td style=\"text-align: center\">\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<td style=\"text-align: center\">\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">1<\/td>\n<td style=\"text-align: center\">1 \u00a0 \u00a0 5<\/td>\n<td style=\"text-align: center\">0.8972<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">2<\/td>\n<td style=\"text-align: center\">19 \u00a0 \u00a0 3<\/td>\n<td style=\"text-align: center\">5.3469<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">3<\/td>\n<td style=\"text-align: center\">164 \u00a0 \u00a0 395<\/td>\n<td style=\"text-align: center\">34.7509<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">4<\/td>\n<td style=\"text-align: center\">0 \u00a0 \u00a0 102<\/td>\n<td style=\"text-align: center\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 wolframalpha.com:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=sum+sum+1%2F(i%2Bj%5E2),+j%3D1+to+5,+i%3D1+to+1\" target=\"_blank\" rel=\"noopener\">\u0422\u0435\u0441\u0442 1<\/a><\/li>\n<li><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=sum+sum+1%2F(i%2Bj%5E2),+j%3D1+to+3,+i%3D1+to+19\" target=\"_blank\" rel=\"noopener\">\u0422\u0435\u0441\u0442 2<\/a><\/li>\n<li><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=sum+sum+1%2F(i%2Bj%5E2),+j%3D1+to+395,+i%3D1+to+164\" target=\"_blank\" rel=\"noopener\">\u0422\u0435\u0441\u0442 3<\/a><\/li>\n<li><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=sum+sum+1%2F(i%2Bj%5E2),+j%3D1+to+102,+i%3D1+to+0\" target=\"_blank\" rel=\"noopener\">\u0422\u0435\u0441\u0442 4<\/a><\/li>\n<\/ol>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<pre class=\"lang:java decode:true \" title=\"\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430\">import java.util.*;\r\n\r\nclass Task3\r\n{\r\n\tpublic static void main (String[] args)\r\n\t{\r\n\t\tint m, n;\r\n\t\tdouble S = 0;\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tm = in.nextInt();\r\n\t\tn = in.nextInt();\r\n\t\tfor (int i = 1; i &lt;= m; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 1; j &lt;= n; j++)\r\n\t\t\t{\r\n\t\t\t\tS += 1.0\/(i + j*j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(S);\r\n\t}\r\n}<\/pre>\n<h1>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h1>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b (\u0446\u0438\u043a\u043b \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430). \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0446\u0438\u043a\u043b\u0430 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0441\u0443\u043c\u043c\u0435 (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u043d\u0430 0) \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f [latex]1\/(i + j^2)[\/latex]. \u0412 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u0435 \u0432\u043c\u0435\u0441\u0442\u043e <span class=\"lang:java decode:true crayon-inline \">1<\/span> \u043f\u0438\u0448\u0435\u043c <span class=\"lang:java decode:true crayon-inline \">1.0<\/span>, \u0447\u0442\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u0438\u043f <span class=\"lang:java decode:true crayon-inline \">double<\/span>, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f &#8212; \u0447\u0438\u0441\u043b\u043e \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435.<\/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 \u0441\u043e \u0432\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 164 395 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"http:\/\/ideone.com\/vOal3o\" target=\"_blank\" rel=\"noopener\">ideone<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c: [latex]\\sum \\limits_{i=1}^{m}\\sum \\limits_{j=1}^{n}\\frac{1}{i+j^2}[\/latex], \u0433\u0434\u0435 [latex]m[\/latex] \u0438 [latex]n[\/latex] &#8212; \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u0447\u0438\u0441\u043b\u0430. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: [latex]m[\/latex] \u0438 [latex]n[\/latex] &#8212; \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0443\u043c\u043c. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0422\u0435\u0441\u0442\u044b \u2116 \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 1 1 \u00a0 \u00a0 5 0.8972 2 19 \u00a0 \u00a0 3 5.3469 3 164 \u00a0 \u00a0 395 34.7509 4 0 \u00a0 \u00a0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=2180\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":95,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[221,147,75],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2180"}],"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\/95"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2180"}],"version-history":[{"count":14,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":2194,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2180\/revisions\/2194"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}