{"id":3958,"date":"2018-12-03T16:30:16","date_gmt":"2018-12-03T13:30:16","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3958"},"modified":"2018-12-27T17:56:54","modified_gmt":"2018-12-27T14:56:54","slug":"e-olymp-52-%d1%81%d1%8b%d1%80-%d0%b4%d0%bb%d1%8f-%d0%b0%d0%bd%d1%84%d0%b8%d1%81%d1%8b","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3958","title":{"rendered":"e-olymp 52. \u0421\u044b\u0440 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b"},"content":{"rendered":"<h1>\u0421\u044b\u0440 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b<\/h1>\n<p>\u0413\u043e\u0442\u043e\u0432\u044f \u043e\u0431\u0435\u0434 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b &#8212; \u0441\u0438\u043c\u0432\u043e\u043b\u0430 2008 \u0433\u043e\u0434\u0430, \u0445\u043e\u0437\u044f\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u044f \u0441\u044b\u0440\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u0436, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043b \u0441\u044b\u0440 \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u0435\u043f\u0438\u043f\u0435\u0434\u044b \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 [latex]a[\/latex] \u0438 \u0432\u044b\u0441\u043e\u0442\u043e\u0439 [latex]b[\/latex].<br \/>\n\u041d\u043e \u0410\u043d\u0444\u0438\u0441\u0430, \u043a\u0430\u043a \u0438 \u043f\u043e\u0434\u043e\u0431\u0430\u0435\u0442 \u0434\u0430\u043c\u0435 \u0433\u043e\u0434\u0430, \u043b\u044e\u0431\u0438\u043b\u0430 \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c \u0441\u044b\u0440 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u043d\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0434\u0435\u043b\u0438\u043a\u0430\u0442\u0435\u0441\u0430 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0435\u0433\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u043a \u0441\u0442\u043e\u043b\u0443. \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u043d\u043e\u0436 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u043b\u0441\u044f \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u043d\u043e \u0410\u043d\u0444\u0438\u0441\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u043f\u043e\u043f\u043e\u043b\u0430\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u044c \u043b\u0435\u0437\u0432\u0438\u044f \u043d\u043e\u0436\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u043b\u0430 \u0434\u0432\u0443\u0433\u0440\u0430\u043d\u043d\u044b\u0439 \u0443\u0433\u043e\u043b [latex]z^o[\/latex] \u0441 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f.<br \/>\n\u041d\u0430\u0439\u0442\u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u044c [latex]s[\/latex] \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0410\u043d\u0444\u0438\u0441\u043e\u0439 \u0441\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]a[\/latex], [latex]b[\/latex], [latex]z[\/latex], \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u044e\u0449\u0438\u0435 [latex]90^o[\/latex].<\/p>\n<h4>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>\u041f\u043b\u043e\u0449\u0430\u0434\u044c [latex]s[\/latex] \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e \u0442\u0440\u0435\u0445 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432.<\/p>\n<h4>\u0422\u0435\u0441\u0442\u044b<\/h4>\n<table>\n<tbody>\n<tr>\n<th>#<\/th>\n<th>\u0412\u0425\u041e\u0414\u041d\u042b\u0415 \u0414\u0410\u041d\u041d\u042b\u0415<\/th>\n<th>\u0412\u042b\u0425\u041e\u0414\u041d\u042b\u0415 \u0414\u0410\u041d\u041d\u042b\u0415<\/th>\n<\/tr>\n<tr>\n<th>1<\/th>\n<th>[latex]2[\/latex] [latex]3[\/latex] [latex]90[\/latex]<\/th>\n<th>[latex]8.485[\/latex]<\/th>\n<\/tr>\n<tr>\n<th>2<\/th>\n<th>[latex]2[\/latex] [latex]4[\/latex] [latex]0[\/latex]<\/th>\n<th>[latex]0.000[\/latex]<\/th>\n<\/tr>\n<tr>\n<th>3<\/th>\n<th>[latex]1[\/latex] [latex]2[\/latex] [latex]3[\/latex]<\/th>\n<th>[latex]0.501[\/latex]<\/th>\n<\/tr>\n<tr>\n<th>4<\/th>\n<th>[latex]1[\/latex] [latex]1[\/latex] [latex]100[\/latex]<\/th>\n<th>[latex]1.615[\/latex]<\/th>\n<\/tr>\n<tr>\n<th>5<\/th>\n<th>[latex]3[\/latex] [latex]10[\/latex] [latex]48[\/latex]<\/th>\n<th>[latex]6.725[\/latex]<\/th>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<pre class=\"lang:java decode:true \">import java.util.Scanner;\r\nimport java.lang.Math;\r\n\r\nclass Main\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tdouble a, b, z, s;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\ta = scan.nextDouble();\r\n\t\tb = scan.nextDouble();\r\n\t\tz = scan.nextDouble();\r\n\t\tif ((1 \/ (Math.tan (z * Math.PI \/ 180)) &gt; a \/ Math.sqrt(2) \/ b) &amp;&amp; (z != 0) &amp;&amp; (z != 90)){\r\n        \ts = a * a \/ 2 \/ Math.cos (z * Math.PI \/ 180);\r\n\t\t}\r\n\t\telse if (z == 0) {\r\n        \ts = 0;\r\n\t\t}\r\n\t\telse if (z == 90) {\r\n        \ts = a * b * Math.sqrt(2);\r\n\t\t}\r\n\t\telse {\r\n        \ts = (a * Math.sqrt(2) - b * 1 \/ (Math.tan (z * Math.PI \/ 180))) * b \/ Math.sin (z * Math.PI \/ 180);\r\n\t\t}\r\n\t\tSystem.out.printf(\"%.3f\", s);\r\n\t}\r\n}<\/pre>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 4 \u0441\u043b\u0443\u0447\u0430\u044f:<br \/>\n1) \u0415\u0441\u043b\u0438 [latex]\\cot[\/latex] \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0433\u043b\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c  [latex]\\frac{a} {\\sqrt{2} \\cdot b}[\/latex] \u0438 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d [latex]0^o[\/latex] \u0438 [latex]90^o[\/latex], \u0442\u043e \u0444\u0438\u0433\u0443\u0440\u043e\u0439 \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a. \u0415\u0433\u043e \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 [latex]s = \\frac {a^{2}} {2 \\cos (z \\cdot \\frac {\\pi} {180})}[\/latex].<br \/>\n2) \u0417\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0443\u0433\u043e\u043b = [latex]0^o[\/latex], \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 = 0, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u044b\u0440 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0438 \u043d\u0435 \u043f\u043e\u0440\u0435\u0436\u0443\u0442.<br \/>\n3) \u0417\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0443\u0433\u043e\u043b = [latex]90^o[\/latex], \u0444\u0438\u0433\u0443\u0440\u043e\u0439 \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435  [latex]s = a \\cdot b \\cdot \\sqrt{2}[\/latex].<br \/>\n4) \u0412 \u043b\u044e\u0431\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0440\u0430\u043f\u0435\u0446\u0438\u044f, \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043d\u0430\u0439\u0434\u0435\u043c \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435  [latex]s =  \\frac {a \\cdot \\sqrt{2} &#8212; b \\cdot 1} {tan(z \\cdot \\frac{\\pi}{180})} \\cdot \\frac {b} {sin (z \\cdot \\frac {\\pi}{180})}[\/latex].<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>\u2022 \u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/52\" target=\"_blank\" rel=\"noopener\">e-olymp<\/a>.<\/p>\n<p>\u2022 \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/ideone.com\/GthrM7\" target=\"_blank\" rel=\"noopener\">ideone<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u044b\u0440 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b \u0413\u043e\u0442\u043e\u0432\u044f \u043e\u0431\u0435\u0434 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b &#8212; \u0441\u0438\u043c\u0432\u043e\u043b\u0430 2008 \u0433\u043e\u0434\u0430, \u0445\u043e\u0437\u044f\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u044f \u0441\u044b\u0440\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u0436, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043b \u0441\u044b\u0440 \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u0435\u043f\u0438\u043f\u0435\u0434\u044b \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 [latex]a[\/latex] \u0438 \u0432\u044b\u0441\u043e\u0442\u043e\u0439 [latex]b[\/latex]. \u041d\u043e \u0410\u043d\u0444\u0438\u0441\u0430, \u043a\u0430\u043a \u0438 \u043f\u043e\u0434\u043e\u0431\u0430\u0435\u0442 \u0434\u0430\u043c\u0435 \u0433\u043e\u0434\u0430, \u043b\u044e\u0431\u0438\u043b\u0430 \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c \u0441\u044b\u0440 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u043d\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3958\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[196,487,488],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3958"}],"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\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3958"}],"version-history":[{"count":3,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3958\/revisions"}],"predecessor-version":[{"id":4451,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3958\/revisions\/4451"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}