{"id":3415,"date":"2017-12-12T00:11:34","date_gmt":"2017-12-11T21:11:34","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3415"},"modified":"2017-12-14T01:06:05","modified_gmt":"2017-12-13T22:06:05","slug":"3415","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3415","title":{"rendered":"Mif 2. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0438\u0437 \u0442\u0440\u0435\u0445"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>\u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x[\/latex], [latex]y[\/latex], [latex]z[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]max (x, y, z)[\/latex].<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 $latex x,y,z$. <\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n[latex]max (x, y, z)[\/latex]\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table>\n<tbody>\n<tr>\n<td>x<\/td>\n<td>y<\/td>\n<td>z<\/td>\n<td>max<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>3<\/td>\n<td>5<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>16<\/td>\n<td>7<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>125<\/td>\n<td>150<\/td>\n<td>150<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"lang:java decode:true \">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\n\r\nclass Ideone\r\n{\r\n  public static void main (String[] args) throws java.lang.Exception\r\n  {\r\n    double x, y, z;\r\n    Scanner in = new Scanner(System.in);\r\n    x = in.nextDouble();\r\n    y = in.nextDouble();\r\n    z = in.nextDouble();\r\n    double max = z;\r\n    if ( y &gt; max)\r\n      {\r\n        max = y;\r\n      }\r\n    if ( x &gt; max ) \r\n      {\r\n        max = x;\r\n      }\r\n    System.out.println(max);\r\n  }\r\n}<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u041f\u0443\u0441\u0442\u044c \u0434\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x[\/latex], [latex]y[\/latex], [latex]z[\/latex]. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]max(x,y,z)[\/latex]. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0438\u043c [latex]x[\/latex], [latex]y[\/latex], [latex]z[\/latex]. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e $latex z$ \u0445\u0440\u0430\u043d\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0417\u0430\u0442\u0435\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 if, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c $latex y, x$. \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 <a href=\"https:\/\/ideone.com\/60QfGO\">ideone<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x[\/latex], [latex]y[\/latex], [latex]z[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]max (x, y, z)[\/latex]. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 $latex x,y,z$. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 [latex]max (x, y, z)[\/latex] \u0422\u0435\u0441\u0442\u044b x y z max 8 3 5 8 9 16 7 16 5 125 150 150 import java.util.*; import java.lang.*; import java.io.*; class Ideone { public static void main (String[] &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3415\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":100,"featured_media":3435,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[335,201,144],"jetpack_featured_media_url":"https:\/\/java.mazurok.com\/wp-content\/uploads\/3.png","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3415"}],"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\/100"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3415"}],"version-history":[{"count":7,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3415\/revisions"}],"predecessor-version":[{"id":3436,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3415\/revisions\/3436"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/media\/3435"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}