{"id":4385,"date":"2018-12-25T03:07:10","date_gmt":"2018-12-25T00:07:10","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=4385"},"modified":"2018-12-25T21:07:47","modified_gmt":"2018-12-25T18:07:47","slug":"%d0%ba%d0%be%d0%bb%d1%8c%d1%86%d0%be-924","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=4385","title":{"rendered":"e-olymp 924. \u041a\u043e\u043b\u044c\u0446\u043e"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4387\" src=\"http:\/\/java.mazurok.com\/wp-content\/uploads\/1270459685.jpg\" alt=\"\" width=\"281\" height=\"272\" \/><br \/>\n\u0417\u0430\u0434\u0430\u043d\u044b \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0412 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u044b \u0434\u0432\u0430 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430: \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442\u00a0$100$.<\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 2 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043a\u0430\u043c\u0438.<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table>\n<tbody>\n<tr>\n<td>S<\/td>\n<td>$R$<\/td>\n<td>$r$<\/td>\n<\/tr>\n<tr>\n<td>50.2655<\/td>\n<td>5<\/td>\n<td>3.00<\/td>\n<\/tr>\n<tr>\n<td>45<\/td>\n<td>8<\/td>\n<td>7.05<\/td>\n<\/tr>\n<tr>\n<td>73.07<\/td>\n<td>7.7<\/td>\n<td>6.00<\/td>\n<\/tr>\n<tr>\n<td>83.5<\/td>\n<td>34<\/td>\n<td>33.61<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"lang:java decode:true \" title=\"924 Solution\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\nclass Main\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tdouble SR, Sr, r;\r\n    \t        double Pi = Math.PI;\r\n    \t        java.util.Scanner i = new java.util.Scanner(System.in);\r\n\t\tdouble S = i.nextDouble();\r\n\t\tdouble R = i.nextDouble();\r\n\t\tSR = Pi * R * R;\r\n    \t        Sr= SR - S;\r\n    \t        r=Math.sqrt(Sr\/Pi);\r\n    \t        System.out.printf(\"%.2f\",r);   \t\r\n\t}\r\n}<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u0440\u0443\u0433\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 $S=\\pi R^2$.<br \/>\n\u0421 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0432\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 $S$ \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 $R$<br \/>\n\u0417\u043d\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0434\u0438\u0443\u0441\u0430 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043a\u0440\u0443\u0433\u0430 $S_R = \\pi R^2$<br \/>\n\u0417\u043d\u0430\u044f, \u0447\u0442\u043e \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043c\u0430\u043b\u043e\u0433\u043e \u043a\u0440\u0443\u0433\u0430 \u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u0440\u0443\u0433\u0430, \u043d\u0430\u0439\u0434\u0451\u043c \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043c\u0430\u043b\u043e\u0433\u043e \u043a\u0440\u0443\u0433\u0430 $S_r = S_R &#8212; S$<br \/>\n\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0440\u0430\u0434\u0438\u0443\u0441 \u043c\u0430\u043b\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 $r$ \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 $r=\\sqrt\\frac{S_r}{\\pi}$<\/p>\n<h1>\u0421\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p><a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/924\" target=\"_blank\" rel=\"noopener\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 E-olymp<\/a><br \/>\n<a href=\"https:\/\/ideone.com\/fork\/b1BvTG\" target=\"_blank\" rel=\"noopener\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u043d\u044b \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u044b \u0434\u0432\u0430 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430: \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442\u00a0$100$. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 2 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043a\u0430\u043c\u0438. \u0422\u0435\u0441\u0442\u044b S $R$ $r$ 50.2655 5 3.00 45 8 7.05 73.07 7.7 6.00 83.5 34 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=4385\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":125,"featured_media":4388,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[196,587,69,588],"jetpack_featured_media_url":"https:\/\/java.mazurok.com\/wp-content\/uploads\/1450175304126956349.jpg","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4385"}],"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\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4385"}],"version-history":[{"count":4,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4385\/revisions"}],"predecessor-version":[{"id":4391,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4385\/revisions\/4391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/media\/4388"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}