{"id":4980,"date":"2020-09-10T11:51:17","date_gmt":"2020-09-10T08:51:17","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=4980"},"modified":"2020-09-13T21:24:40","modified_gmt":"2020-09-13T18:24:40","slug":"e-olymp-9081-%d0%b0%d0%b2%d1%82%d0%be%d0%bc%d0%be%d0%b1%d1%96%d0%bb%d1%96","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=4980","title":{"rendered":"e-olymp 9081. \u0410\u0432\u0442\u043e\u043c\u043e\u0431\u0456\u043b\u0456"},"content":{"rendered":"<h1 class=\"crayon-selected\"><span class=\"tlid-translation translation\" lang=\"uk\"><span class=\"\" title=\"\">\u0417\u0430\u0432\u0434\u0430\u043d\u043d\u044f<\/span><\/span><\/h1>\n<p>\u0422\u0440\u043e\u0454 \u0432\u043e\u0434\u0456\u0457\u0432 \u0432\u0438\u0440\u0456\u0448\u0438\u043b\u0438 \u043e\u043f\u0440\u043e\u0431\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0435 \u0448\u043e\u0441\u0435. \u041f\u0435\u0440\u0448\u0438\u0439 \u0457\u0445\u0430\u0432 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_1$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_1$ \u0433\u043e\u0434\u0438\u043d. \u0414\u0440\u0443\u0433\u0438\u0439 \u0457\u0445\u0430\u0432 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_2$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_2$ \u0433\u043e\u0434\u0438\u043d, \u0442\u0440\u0435\u0442\u0456\u0439 \u2013 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_3$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_3$ \u0433\u043e\u0434\u0438\u043d. \u0425\u0442\u043e \u0437 \u043d\u0438\u0445 \u043f\u0440\u043e\u0457\u0445\u0430\u0432 \u043d\u0430\u0439\u0434\u043e\u0432\u0448\u0438\u0439 \u0448\u043b\u044f\u0445?<\/p>\n<h2>\u0412\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456<\/h2>\n<p>\u0412 \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u044f\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f $v_1$, $v_2$, $v_3$, $t_1$, $t_2$, $t_3$. \u0406\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u044c \u0448\u0432\u0438\u0434\u043a\u043e\u0441\u0442\u0435\u0439 \u2013 \u0432\u0456\u0434 $30$ \u0434\u043e $100$ \u043a\u043c\/\u0433\u043e\u0434. \u0432\u043a\u043b\u044e\u0447\u043d\u043e. \u0427\u0430\u0441 \u0443 \u0434\u043e\u0440\u043e\u0437\u0456 \u2013 \u0437 \u0456\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0443 $[1;15]$ \u0433\u043e\u0434\u0438\u043d.<\/p>\n<h2>\u0412\u0438\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456<\/h2>\n<p>\u042f\u043a\u0449\u043e \u043d\u0430\u0439\u0434\u043e\u0432\u0448\u0438\u0439 \u0448\u043b\u044f\u0445 \u043f\u0440\u043e\u0457\u0445\u0430\u0432 \u043e\u0434\u0438\u043d \u0432\u043e\u0434\u0456\u0439, \u0432\u0438\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u043e\u043c\u0435\u0440 \u0432\u043e\u0434\u0456\u044f. \u042f\u043a\u0449\u043e \u043d\u0430\u0439\u0434\u043e\u0432\u0448\u0438\u0439 \u0448\u043b\u044f\u0445 \u043f\u0440\u043e\u0457\u0445\u0430\u043b\u0438 \u0434\u0432\u0430 \u0430\u0431\u043e \u0442\u0440\u0438 \u0432\u043e\u0434\u0456\u044f, \u0442\u0440\u0435\u0431\u0430 \u0432\u0432\u0435\u0441\u0442\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u044f\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u0457\u0445 \u043d\u043e\u043c\u0435\u0440\u0438 \u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f.<\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438<\/h2>\n<table>\n<tbody>\n<tr>\n<td>\u2116<\/td>\n<td>\u0412\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456<\/td>\n<td>\u0412\u0438\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456<\/td>\n<\/tr>\n<tr>\n<td>1.<\/td>\n<td>38 9 54 5 62 3<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>30 9 45 6 90 3<\/td>\n<td>1 2 3<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>30 15 45 5 50 9<\/td>\n<td>1 3<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>50 6 42 14 84 7<\/td>\n<td>2 3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438<\/h2>\n<pre class=\"\">public class Main {\r\n\r\n    public static void main(String[] args) {\r\n        java.util.Scanner jin = new java.util.Scanner(System.in);\r\n            int v1, v2, v3; \/\/ \u0417\u043c\u0456\u043d\u043d\u0456, \u0434\u0435 \u0431\u0443\u0434\u0435\u043c\u043e \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438 \u0448\u0432\u0438\u0434\u043a\u043e\u0441\u0442\u0456 \u0432\u043e\u0434\u0456\u0457\u0432\r\n            int t1, t2, t3; \/\/ \u0427\u0430\u0441, \u044f\u043a\u0438\u0439 \u0432\u043e\u043d\u0438 \u0457\u0445\u0430\u043b\u0438\r\n            int s1, s2, s3; \/\/ \u0406 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c\r\n            int max_; \/\/ \u0422\u0430\u043a\u043e\u0436, \u0437\u043c\u0456\u043d\u043d\u0443, \u0434\u0435 \u0431\u0443\u0434\u0435 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c\r\n            v1 = jin.nextInt(); t1 = jin.nextInt(); \/\/ \u041f\u0440\u043e\u0447\u0438\u0442\u0443\u0454\u043c\u043e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0456 \u0447\u0430\u0441 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0432\u043e\u0434\u0456\u044f\r\n            v2 = jin.nextInt(); t2 = jin.nextInt();\r\n            v3 = jin.nextInt(); t3 = jin.nextInt();\r\n            s1 = v1 * t1; \/\/ \u0417\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c, \u044f\u043a\u0443 \u043f\u0440\u043e\u0457\u0445\u0430\u0432 \u043a\u043e\u0436\u0435\u043d \u0437 \u043d\u0438\u0445\r\n            s2 = v2 * t2;\r\n            s3 = v3 * t3;\r\n            max_ = Math.max(Math.max(s1, s2), s3); \/\/ \u0412\u0438\u044f\u0432\u043b\u044f\u0454\u043c\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c\r\n            if ( s1 == max_ )  \/\/ \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u044e\u0447\u0438, \u0447\u0438 \u0454 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u044e\r\n                System.out.print(\"1 \"); \/\/ \u0412\u0438\u0432\u043e\u0434\u0438\u043c\u043e \u043d\u043e\u043c\u0435\u0440 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0433\u043e \u0432\u043e\u0434\u0456\u044f\r\n            if ( s2 == max_ )\r\n                System.out.print(\"2 \");\r\n            if ( s3 == max_ )\r\n                System.out.print(3);\r\n            \r\n        }\r\n}<\/pre>\n<h2>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u043d\u044f<\/h2>\n<p>\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0434\u044e \u0434\u043e \u0437\u0430\u0434\u0430\u0447\u0456 \u0454 \u043d\u043e\u043c\u0435\u0440\u0438 \u0432\u043e\u0434\u0456\u0457\u0432, \u0449\u043e \u043f\u0440\u043e\u0457\u0445\u0430\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0443, \u0437\u043d\u0430\u0439\u043e\u043c\u0443 \u0432\u0441\u0456\u043c \u0449\u0435 \u0437\u0456 \u0448\u043a\u043e\u043b\u0438: $S = Vt$. \u041f\u0456\u0441\u043b\u044f \u0437\u043d\u0430\u0445\u043e\u0434\u0436\u0435\u043d\u043d\u044f \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u0456 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e\u0457 \u043a\u043e\u0436\u043d\u0438\u043c \u0432\u043e\u0434\u0456\u0454\u043c, \u043c\u0438 \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443 \u0441\u0435\u0440\u0435\u0434 \u043d\u0438\u0445. \u0414\u0430\u043b\u0456 \u043d\u0430\u043c \u0437\u0430\u043b\u0438\u0448\u0430\u0454\u0442\u044c\u0441\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u0432\u0438\u0432\u043e\u0434\u0438\u0442\u0438 \u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f \u043d\u043e\u043c\u0435\u0440\u0438 \u0432\u043e\u0434\u0456\u0457\u0432, \u044f\u043a\u0456 \u043f\u0440\u043e\u0439\u0448\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u044c.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0456\u0442\u043a\u0430: \u0428\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0456 \u0447\u0430\u0441 \u0432\u0432\u043e\u0434\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u043f\u0430\u0440\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0432\u043e\u0434\u0456\u044f.<\/em><\/p>\n<h2>\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/9081\">E-olymp (\u0443\u043c\u043e\u0432\u0430)<\/a><\/li>\n<li><a href=\"https:\/\/www.e-olymp.com\/ru\/submissions\/7281793\">E-olymp (\u0440\u0456\u0448\u0435\u043d\u043d\u044f)<\/a><\/li>\n<li><a href=\"https:\/\/ideone.com\/YTB89e\">Ideone (\u043a\u043e\u0434)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0432\u0434\u0430\u043d\u043d\u044f \u0422\u0440\u043e\u0454 \u0432\u043e\u0434\u0456\u0457\u0432 \u0432\u0438\u0440\u0456\u0448\u0438\u043b\u0438 \u043e\u043f\u0440\u043e\u0431\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0435 \u0448\u043e\u0441\u0435. \u041f\u0435\u0440\u0448\u0438\u0439 \u0457\u0445\u0430\u0432 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_1$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_1$ \u0433\u043e\u0434\u0438\u043d. \u0414\u0440\u0443\u0433\u0438\u0439 \u0457\u0445\u0430\u0432 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_2$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_2$ \u0433\u043e\u0434\u0438\u043d, \u0442\u0440\u0435\u0442\u0456\u0439 \u2013 \u0437\u0456 \u0441\u0442\u0430\u043b\u043e\u044e \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e $v_3$ \u043a\u043c\/\u0433\u043e\u0434. \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c $t_3$ \u0433\u043e\u0434\u0438\u043d. \u0425\u0442\u043e \u0437 \u043d\u0438\u0445 \u043f\u0440\u043e\u0457\u0445\u0430\u0432 \u043d\u0430\u0439\u0434\u043e\u0432\u0448\u0438\u0439 \u0448\u043b\u044f\u0445? \u0412\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456 \u0412 \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u044f\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=4980\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":147,"featured_media":5076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[201,137,215],"jetpack_featured_media_url":"https:\/\/java.mazurok.com\/wp-content\/uploads\/24655691.jpg","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4980"}],"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\/147"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4980"}],"version-history":[{"count":5,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4980\/revisions"}],"predecessor-version":[{"id":4994,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4980\/revisions\/4994"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/media\/5076"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}