{"id":5201,"date":"2020-09-20T11:43:49","date_gmt":"2020-09-20T08:43:49","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=5201"},"modified":"2020-11-25T12:14:47","modified_gmt":"2020-11-25T09:14:47","slug":"e-olimp-9536-%d1%81%d1%83%d0%bc%d0%bc%d0%b0-%d0%bc%d0%b0%d1%82%d1%80%d0%b8%d1%86","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=5201","title":{"rendered":"e-olimp 9536. \u0421\u0443\u043c\u043c\u0430 \u043c\u0430\u0442\u0440\u0438\u0446"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>\u0417\u0430\u0434\u0430\u043d\u044b \u0434\u0432\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b $A$ \u0438 $B$. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0438\u0445 \u0441\u0443\u043c\u043c\u0443 $C$ = $A$ + $B$.<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043c\u0430\u0442\u0440\u0438\u0446 $n$ \u0438 $m$ $(1 \\leqslant n, m \\leqslant 100)$. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 $n$ \u0441\u0442\u0440\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043f\u043e $m$ \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 $A$. \u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0436\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 $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 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 $\u0421$: $n$ \u0441\u0442\u0440\u043e\u043a \u043f\u043e $m$ \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table style=\"height: 198px\" width=\"200\">\n<tbody>\n<tr>\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<td>1  1<br \/>\n2<\/p>\n<p>3<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>1  5<br \/>\n4   3   7   2   1<\/p>\n<p>3   2   2   1   6<\/td>\n<td>7 5 9 3 7 <\/td>\n<\/tr>\n<tr>\n<td>2   2<br \/>\n0  4<br \/>\n2  3<\/p>\n<p>5  4<br \/>\n1  6<\/td>\n<td>5 8<br \/>\n3 9 <\/td>\n<\/tr>\n<tr>\n<td>3 4<br \/>\n3 4 5 6<br \/>\n1 2 3 4<br \/>\n7 6 5 4<\/p>\n<p>0 0 -3 -2<br \/>\n-1 3 4 5<br \/>\n5 6 1 2<\/td>\n<td>3 4 2 4<br \/>\n0 5 7 9<br \/>\n12 12 6 6 <\/td>\n<\/tr>\n<tr>\n<td>3 3<br \/>\n2   -128   47<br \/>\n-365  5    56<br \/>\n243   42   12<\/p>\n<p>678  43   76<br \/>\n4  345  -23<br \/>\n97  -453  18<\/td>\n<td>680 -85 123<br \/>\n-361 350 33<br \/>\n340 -411 30<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>\u041a\u043e\u0434<\/h1>\n<pre class=\"lang:java decode:true\">class Main{\r\n\tpublic static void main (String[] args) throws java.lang.Exception \t{\r\n\t\tjava.util.Scanner i = new java.util.Scanner(System.in);\r\n\t\tint n = i.nextInt();\r\n\t\tint m = i.nextInt();\r\n\t\tint array1[][] = new int[n][m];\r\n\t\tint array2[][] = new int[n][m];\r\n\t\tint array_sum[][] = new int[n][m];\r\n\t\tfor(int k = 0; k &lt; n; k++){\r\n        \tfor(int j = 0; j &lt; m; j++){\r\n        \t\tarray1[k][j] = i.nextInt();\r\n    \t\t}\r\n\t\t}\r\n\t\tfor(int k = 0; k &lt; n; k++){\r\n        \tfor(int j = 0; j &lt; m; j++){\r\n        \t\tarray2[k][j] = i.nextInt();\r\n    \t\t}\r\n\t\t}\r\n\t\tfor(int k = 0; k &lt; n; k++){\r\n        \tfor(int j = 0; j &lt; m; j++){\r\n        \t\tarray_sum[k][j] = array1[k][j] + array2[k][j];\r\n        \t\tSystem.out.print (array_sum[k][j] + &quot; &quot;);\r\n    \t\t}\r\n    \t\tSystem.out.println();\r\n\t\t}\r\n\t}\r\n}\r\n<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0441\u0443\u043c\u043c\u0443 \u0434\u0432\u0443\u0445 \u043c\u0430\u0442\u0440\u0438\u0446, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/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=\"\/\/www.e-olymp.com\/ru\/problems\/9536\"> E-Olymp<\/a><br \/>\n\u041a\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 <a href=\"\/\/ideone.com\/Yxenx9\">Ideone<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0417\u0430\u0434\u0430\u043d\u044b \u0434\u0432\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b $A$ \u0438 $B$. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0438\u0445 \u0441\u0443\u043c\u043c\u0443 $C$ = $A$ + $B$. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043c\u0430\u0442\u0440\u0438\u0446 $n$ \u0438 $m$ $(1 \\leqslant n, m \\leqslant 100)$. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 $n$ \u0441\u0442\u0440\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043f\u043e $m$ \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 $A$. \u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0436\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=5201\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":152,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,14,26],"tags":[138,326,722,75],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5201"}],"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\/152"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5201"}],"version-history":[{"count":1,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5201\/revisions"}],"predecessor-version":[{"id":5202,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/5201\/revisions\/5202"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}