{"id":3557,"date":"2018-09-12T22:38:17","date_gmt":"2018-09-12T19:38:17","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3557"},"modified":"2018-11-19T21:16:29","modified_gmt":"2018-11-19T18:16:29","slug":"e-olymp-7337-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%b8","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3557","title":{"rendered":"e-olymp 7337. \u0421\u043a\u0438\u0434\u043a\u0438"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3562 alignright\" src=\"http:\/\/java.mazurok.com\/wp-content\/uploads\/127384469_DngXJW2HJN4-300x212.jpg\" alt=\"\" width=\"262\" height=\"185\" srcset=\"https:\/\/java.mazurok.com\/wp-content\/uploads\/127384469_DngXJW2HJN4-300x212.jpg 300w, https:\/\/java.mazurok.com\/wp-content\/uploads\/127384469_DngXJW2HJN4.jpg 496w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/h1>\n<p>\u0412 \u0441\u0443\u043f\u0435\u0440\u043c\u0430\u0440\u043a\u0435\u0442\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0440\u0435\u043a\u043b\u0430\u043c\u0435, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043a\u0438\u0434\u043e\u043a: \u0438\u0437 \u0434\u0432\u0443\u0445 \u043a\u0443\u043f\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0440\u043e\u0436\u0435, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. \u041a\u0430\u043a\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e \u0431\u044b \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u0442\u0440\u0451\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0446\u0435\u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e?<br \/>\n<strong>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:\u00a0<\/strong>\u0442\u0440\u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a, b, c$\u00a0\u2014 \u0446\u0435\u043d\u044b \u0442\u0440\u0451\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 $(1\\leq a, b, c\\leq10000)$.<br \/>\n<strong>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:\u00a0<\/strong>\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438.<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table style=\"width: 297px\">\n<tbody>\n<tr>\n<th style=\"width: 142px\">\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/th>\n<th style=\"width: 155px\">\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 142px\">\n<h5>213\u00a0 \u00a06554\u00a0 \u00a0234<\/h5>\n<\/td>\n<td style=\"width: 155px\">\n<h5>6767<\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 142px\">\n<h5>320\u00a0 \u00a03670\u00a0 \u00a05555<\/h5>\n<\/td>\n<td style=\"width: 155px\">\n<h5>5875<\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 142px\">\n<h5>15 \u00a0 47\u00a0 \u00a013<\/h5>\n<\/td>\n<td style=\"width: 155px\">\n<h5>60<\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 142px\">\n<h5>215\u00a0 \u00a030\u00a0 \u00a073<\/h5>\n<\/td>\n<td style=\"width: 155px\">\n<h5>245<\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 142px\">\n<h5>370\u00a0 \u00a053\u00a0 \u00a0823<\/h5>\n<\/td>\n<td style=\"width: 155px\">\n<h5>876<\/h5>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h1>\n<pre class=\"lang:java decode:true \" title=\"e-olymp 7337 Java solution\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\n \r\nclass Main\r\n{\r\n\tpublic static void main (String[] args) \r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tint a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\r\n\t\tSystem.out.println(Math.max(Math.max(a, b), c) + Math.min(Math.min(a, b), c));\r\n\t}\r\n}<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>\u0414\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0434\u043e\u0440\u043e\u0433\u043e\u0433\u043e \u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0434\u0435\u0448\u0451\u0432\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b\u00a0<span class=\"lang:java decode:true crayon-inline\">Math.max()<\/span>\u00a0 \u0438 <span class=\"lang:java decode:true crayon-inline\">Math.min()<\/span>\u00a0 \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 <span class=\"lang:java decode:true crayon-inline\">Math<\/span>. \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u0447\u0438\u0441\u0435\u043b $a, b$ \u0438 $c$: <span class=\"lang:java decode:true crayon-inline\">Math.min(Math.min(a, b), c)<\/span>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <span class=\"lang:java decode:true crayon-inline \">Math.min(Math.min(1, 2), 3)<\/span>\u00a0\u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e $1$).\u00a0\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0441 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0441\u0440\u0435\u0434\u0438 $a, b, c$:\u00a0<span class=\"lang:java decode:true crayon-inline \">Math.max(Math.min(a, b), c)<\/span>\u00a0(\u043f\u0440\u0438\u043c\u0435\u0440:\u00a0<span class=\"lang:java decode:true crayon-inline\">Math.max(Math.min(1, 2), 3)<\/span>\u00a0\u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e $3$).\u00a0\u0417\u0430\u0442\u0435\u043c \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442.<\/p>\n<h1>\u0421\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/7337\">e-olymp.com<\/a><br \/>\n\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 <a href=\"https:\/\/ideone.com\/XvTJkO\">ideone.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0412 \u0441\u0443\u043f\u0435\u0440\u043c\u0430\u0440\u043a\u0435\u0442\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0440\u0435\u043a\u043b\u0430\u043c\u0435, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043a\u0438\u0434\u043e\u043a: \u0438\u0437 \u0434\u0432\u0443\u0445 \u043a\u0443\u043f\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0440\u043e\u0436\u0435, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. \u041a\u0430\u043a\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e \u0431\u044b \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u0442\u0440\u0451\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0446\u0435\u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e? \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:\u00a0\u0442\u0440\u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a, b, c$\u00a0\u2014 \u0446\u0435\u043d\u044b \u0442\u0440\u0451\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 $(1\\leq a, b, c\\leq10000)$. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:\u00a0\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438. &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3557\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":121,"featured_media":3564,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[335,355,356,357,358],"jetpack_featured_media_url":"https:\/\/java.mazurok.com\/wp-content\/uploads\/94_big1.jpg","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3557"}],"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\/121"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3557"}],"version-history":[{"count":5,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3557\/revisions"}],"predecessor-version":[{"id":3563,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3557\/revisions\/3563"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/media\/3564"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}