{"id":612,"date":"2016-06-30T12:54:14","date_gmt":"2016-06-30T09:54:14","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=612"},"modified":"2016-07-05T23:16:44","modified_gmt":"2016-07-05T20:16:44","slug":"e-olymp-67-new-food-for-anfisa-2","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=612","title":{"rendered":"e-olymp 67. New food for Anfisa \u2013 2"},"content":{"rendered":"<h3>\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u044b\u0440\u0430 \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u00ab\u0421\u044b\u0440 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b\u00bb \u0443 \u0445\u043e\u0437\u044f\u0438\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0443\u0441\u043a\u0438 \u0441\u044b\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0435\u043f\u0438\u043f\u0435\u0434\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0446\u0435\u043b\u044b\u043c\u0438 \u0434\u043b\u0438\u043d\u0430\u043c\u0438 \u0441\u0442\u043e\u0440\u043e\u043d. \u0413\u043e\u0442\u043e\u0432\u044f \u043d\u043e\u0432\u043e\u0435 \u0431\u043b\u044e\u0434\u043e \u0438\u0437 \u0441\u044b\u0440\u0430 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b \u0445\u043e\u0437\u044f\u0438\u043d\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u044d\u0442\u0438 \u043a\u0443\u0441\u043a\u0438 \u043d\u0430 \u043a\u0443\u0431\u0438\u043a\u0438 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 1. \u041a\u0430\u043a\u043e\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0435\u043c\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 \u0441\u044b\u0440\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043b \u043e\u0434\u0438\u043d \u043a\u0443\u0441\u043e\u043a \u0441\u044b\u0440\u0430 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/67\">e-olymp<\/a>.<br \/>\n\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/submissions\/2712013\">\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a>.<\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d a, b, c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c a, b, c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0430\u0441\u0442\u0435\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u044b A, \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c <img decoding=\"async\" class=\"latex\" title=\"(a-1)\" src=\"http:\/\/s0.wp.com\/latex.php?latex=%28a-1%29&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"(a-1)\" \/> \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432. \u0422\u043e\u0433\u0434\u0430, \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u044b B, \u0434\u0435\u043b\u0430\u0435\u043c <img decoding=\"async\" class=\"latex\" title=\"a*(b-1)\" src=\"http:\/\/s0.wp.com\/latex.php?latex=a%2A%28b-1%29&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"a*(b-1)\" \/>; \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u044b C \u2013 <img decoding=\"async\" class=\"latex\" title=\"a*b*(c-1)\" src=\"http:\/\/s0.wp.com\/latex.php?latex=a%2Ab%2A%28c-1%29&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"a*b*(c-1)\" \/> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u0441\u0435\u0433\u043e \u043c\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c <img decoding=\"async\" class=\"latex\" title=\"(a-1)+a*(b-1)+a*b*(c-1)\" src=\"http:\/\/s0.wp.com\/latex.php?latex=%28a-1%29%2Ba%2A%28b-1%29%2Ba%2Ab%2A%28c-1%29&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"(a-1)+a*(b-1)+a*b*(c-1)\" \/> \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u0443 <img decoding=\"async\" class=\"latex\" title=\"a*b*c - 1\" src=\"http:\/\/s0.wp.com\/latex.php?latex=a%2Ab%2Ac+-+1&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"a*b*c - 1\" \/>.<\/p>\n<h3>\u041a\u043e\u0434<\/h3>\n<pre class=\"lang:java decode:true\">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) throws java.lang.Exception\r\n\t{\r\n\t\tScanner x = new Scanner(System.in);\r\n\t\tlong a=x.nextInt(), b=x.nextInt(), c=x.nextInt();\r\n\t\tSystem.out.print(a*b*c-1);\r\n\t}\r\n}<\/pre>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043d\u0430 <a href=\"http:\/\/ideone.com\/4e2XvS\">Ideone<\/a>.<\/p>\n<h3>\u0422\u0435\u0441\u0442<\/h3>\n<table width=\"638\">\n<tbody>\n<tr>\n<td>\u0430<\/td>\n<td>b<\/td>\n<td>c<\/td>\n<td>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<td>23<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u0441\u044b\u0440\u0430 \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u00ab\u0421\u044b\u0440 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b\u00bb \u0443 \u0445\u043e\u0437\u044f\u0438\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0443\u0441\u043a\u0438 \u0441\u044b\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0435\u043f\u0438\u043f\u0435\u0434\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0446\u0435\u043b\u044b\u043c\u0438 \u0434\u043b\u0438\u043d\u0430\u043c\u0438 \u0441\u0442\u043e\u0440\u043e\u043d. \u0413\u043e\u0442\u043e\u0432\u044f \u043d\u043e\u0432\u043e\u0435 \u0431\u043b\u044e\u0434\u043e \u0438\u0437 \u0441\u044b\u0440\u0430 \u0434\u043b\u044f \u0410\u043d\u0444\u0438\u0441\u044b \u0445\u043e\u0437\u044f\u0438\u043d\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u044d\u0442\u0438 \u043a\u0443\u0441\u043a\u0438 \u043d\u0430 \u043a\u0443\u0431\u0438\u043a\u0438 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 1. \u041a\u0430\u043a\u043e\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0435\u043c\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 \u0441\u044b\u0440\u0430, \u0435\u0441\u043b\u0438 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=612\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":80,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[78],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/612"}],"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\/80"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=612"}],"version-history":[{"count":6,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions\/788"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}