{"id":3987,"date":"2018-12-17T07:04:19","date_gmt":"2018-12-17T04:04:19","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3987"},"modified":"2018-12-25T20:43:36","modified_gmt":"2018-12-25T17:43:36","slug":"e-olymp-1000-%d0%b7%d0%b0%d0%b4%d0%b0%d1%87%d0%b0-a-b","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3987","title":{"rendered":"e-olymp 1000. \u0417\u0430\u0434\u0430\u0447\u0430 a + b"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 $a+b$.<\/p>\n<h2>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h2>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a$ \u0438 $b$ $(|a|,|b| \\leq 30000)$.<\/p>\n<h2>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h2>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 $a+b$ \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435.<\/p>\n<h2>\u0422\u0435\u0441\u0442\u044b<\/h2>\n<table>\n<tr>\n<td><strong> \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 <\/strong> <\/td>\n<td> <strong> \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 <\/strong> <\/td>\n<\/tr>\n<tr>\n<td>\n$4$ $8$<br \/>\n$5$  $0$<br \/>\n$-6$ $8$ <\/td>\n<td>\n$12$<br \/>\n$5$<br \/>\n$2$<\/td>\n<\/tr>\n<tr>\n<td>\n$-3$ $3$<\/td>\n<td>\n$0$<\/td>\n<\/tr>\n<tr>\n<td>\n$12$ $8$<br \/>\n$10$  $10$<\/td>\n<td>\n$20$<br \/>\n$20$<\/td>\n<\/tr>\n<tr>\n<td>\n$30000$ $30000$<br \/>\n$3000$  $3000$<br \/>\n$300$ $300$<br \/>\n$30$ $30$<br \/>\n$3$ $3$ <\/td>\n<td>\n$60000$<br \/>\n$6000$<br \/>\n$600$<br \/>\n$60$<br \/>\n$6$<\/td>\n<\/tr>\n<tr>\n<td>\n$10$ $23$<br \/>\n$613$  $2$<br \/>\n$-200$ $300$ <\/td>\n<td>\n$33$<br \/>\n$615$<br \/>\n$100$<\/td>\n<\/tr>\n<\/table>\n<h2> \u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b <\/h2>\n<pre class=\"lang:java decode:true \">\/* package whatever; \/\/ don't place package name! *\/\r\n\r\nimport java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\nclass Main\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\twhile (in.hasNextInt()){\r\n        \tint a = in.nextInt();\r\n        \tint b = in.nextInt();\r\n        \tSystem.out.println(a+b);\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u041f\u043e\u043a\u0430 \u0432\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u0430\u0440\u044b \u0447\u0438\u0441\u0435\u043b, \u043e\u043d\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0445 \u0441\u0443\u043c\u043c\u0430.<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p><a href=\"https:\/\/www.e-olymp.com\/ru\/submissions\/4912358\" rel=\"noopener\" target=\"_blank\">\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0430 e-olymp<\/a><br \/>\n<a href=\"http:\/\/cpp.mazurok.com\/e-olymp-1000\/\" rel=\"noopener\" target=\"_blank\">\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 C++ \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/a><br \/>\n<a href=\"https:\/\/ideone.com\/yGfXz0\" rel=\"noopener\" target=\"_blank\">\u041a\u043e\u0434 \u043d\u0430 java<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 $a+b$. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 $a$ \u0438 $b$ $(|a|,|b| \\leq 30000)$. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 $a+b$ \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435. \u0422\u0435\u0441\u0442\u044b \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 $4$ $8$ $5$ $0$ $-6$ $8$ $12$ $5$ $2$ $-3$ $3$ $0$ $12$ $8$ $10$ $10$ $20$ $20$ $30000$ $30000$ &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3987\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[141,147],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3987"}],"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\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3987"}],"version-history":[{"count":8,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3987\/revisions"}],"predecessor-version":[{"id":4159,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3987\/revisions\/4159"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}