{"id":5239,"date":"2020-09-30T23:39:51","date_gmt":"2020-09-30T20:39:51","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=5239"},"modified":"2020-11-25T12:17:12","modified_gmt":"2020-11-25T09:17:12","slug":"e-olymp-1142-%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%bd%d0%b0-%d0%bd%d0%be%d0%bb%d1%8c-%d0%b8%d0%bb%d0%b8","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=5239","title":{"rendered":"e-olymp 1142. \u0414\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u043b\u044c \u0438\u043b\u0438\u2026"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u043b\u044c \u043d\u0435\u043b\u044c\u0437\u044f. \u0410 \u043c\u043e\u0436\u0435\u0442 \u0435\u0449\u0435 \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f? \u042d\u0442\u043e \u0412\u0430\u043c \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c.<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0412 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0445 32-\u0431\u0438\u0442\u043e\u0432\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a$\u00a0\u0438 $b$.<\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0412\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u0442\u043d\u043e\u0433\u043e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u044f $a$ \u043d\u0430 $b$. \u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b\u0432\u0435\u0441\u0442\u0438 <b>ERROR<\/b>.<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table style=\"height: 167px\" width=\"677\">\n<tbody>\n<tr>\n<th>\u2116<\/th>\n<th>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/th>\n<th>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/th>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">1<\/th>\n<td style=\"text-align: center\">8 4<\/td>\n<td style=\"text-align: center\">2<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">2<\/th>\n<td style=\"text-align: center\">6 0<\/td>\n<td style=\"text-align: center\"><b>ERROR<\/b><\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">3<\/th>\n<td style=\"text-align: center\">0 4<\/td>\n<td style=\"text-align: center\">0<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">4<\/th>\n<td style=\"text-align: center\">613 18<\/td>\n<td style=\"text-align: center\">34<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: center\">5<\/th>\n<td style=\"text-align: center\">9197 10000<\/td>\n<td style=\"text-align: center\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>\u041a\u043e\u0434<\/h1>\n<pre class=\"lang:c++ decode:true\">\r\nimport 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 sc = new Scanner(System. in );\r\n        long a = sc.nextInt(); \r\n        long b = sc.nextInt(); \r\n        if(b != 0) System.out.print(a\/b);\r\n        else System.out.print(\"ERROR\");\r\n\t}\r\n}\r\n<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0412 \u0437\u0430\u0434\u0430\u0447\u0435, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u043b\u044c. \u042d\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 <span id=\"crayon-5dec1e5db949f047942299\" class=\"crayon-syntax crayon-syntax-inline crayon-theme-mirc-dark crayon-theme-mirc-dark-inline crayon-font-monospace\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-pre crayon-code\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-st\">if<\/span><\/span><\/span> \u0438 <span id=\"crayon-5dec1e5db949f047942299\" class=\"crayon-syntax crayon-syntax-inline crayon-theme-mirc-dark crayon-theme-mirc-dark-inline crayon-font-monospace\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-pre crayon-code\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-st\">else<\/span><\/span><\/span>. \u0422\u0430\u043a\u0436\u0435, \u0442\u0430\u043a \u043a\u0430\u043a $a$ \u0438 $b$ \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0446\u0435\u043b\u044b\u043c\u0438 32-\u0431\u0438\u0442\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 <span id=\"crayon-5dec1e5db949f047942299\" class=\"crayon-syntax crayon-syntax-inline crayon-theme-mirc-dark crayon-theme-mirc-dark-inline crayon-font-monospace\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-pre crayon-code\" style=\"font-size: 12px !important;line-height: 15px !important\"><span class=\"crayon-t\">long<\/span><\/span><\/span>.<\/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\/1142\">e-olymp<\/a><br \/>\n\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 <a href=\"https:\/\/ideone.com\/iQRHxf\">ideone.com<\/a><br \/>\n\u0417\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/submissions\/7427854\">e-olymp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u043b\u044c \u043d\u0435\u043b\u044c\u0437\u044f. \u0410 \u043c\u043e\u0436\u0435\u0442 \u0435\u0449\u0435 \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f? \u042d\u0442\u043e \u0412\u0430\u043c \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0445 32-\u0431\u0438\u0442\u043e\u0432\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a$\u00a0\u0438 $b$. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u0442\u043d\u043e\u0433\u043e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u044f $a$ \u043d\u0430 $b$. \u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b\u0432\u0435\u0441\u0442\u0438 ERROR. \u0422\u0435\u0441\u0442\u044b \u2116 \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=5239\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":162,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5239"}],"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\/162"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5239"}],"version-history":[{"count":3,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions"}],"predecessor-version":[{"id":5242,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions\/5242"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}