{"id":3337,"date":"2017-11-28T23:55:05","date_gmt":"2017-11-28T20:55:05","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3337"},"modified":"2017-12-06T00:20:12","modified_gmt":"2017-12-05T21:20:12","slug":"a393a","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3337","title":{"rendered":"A393a"},"content":{"rendered":"<h2>\u0417\u0430\u0434\u0430\u0447\u0430:<\/h2>\n<p>\u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e [latex]n[\/latex], \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043f\u043e\u0440\u044f\u0434\u043a\u0430\u00a0[latex]n[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]{b}_{1}[\/latex],\u2026,[latex]{b}_{n},[\/latex] \u0433\u0434\u0435\u00a0[latex]{b}_{i}[\/latex]\u00a0\u2014 \u044d\u0442\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 [latex]i[\/latex]-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0433\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h2>\u0422\u0435\u0441\u0442\u044b:<\/h2>\n<table class=\"aligncenter\" style=\"width: 491px\" border=\"3\">\n<caption>\u00a0<\/caption>\n<tbody>\n<tr style=\"height: 22px\">\n<td style=\"width: 196px;height: 22px\" colspan=\"2\"><strong>\u0412\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/strong><\/td>\n<td style=\"width: 252px;height: 22px\"><strong>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u0432\u044b\u0432\u043e\u0434<\/strong><\/td>\n<td style=\"width: 41px;height: 22px\"><strong>\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 40px;height: 159.625px\" rowspan=\"8\">4<\/td>\n<td style=\"width: 156px;height: 22px\">4 3 2 1<\/td>\n<td style=\"width: 252px;height: 88px\" rowspan=\"4\">4 3 2 1<\/td>\n<td style=\"width: 41px;height: 88px\" rowspan=\"4\"><em>\u0422\u0435\u0441\u0442 \u043f\u0440\u043e\u0439\u0434\u0435\u043d<\/em><\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">4 3 2 1<\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">4 3 2 1<\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">4 3 2 1<\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">1 2 3 4<\/td>\n<td style=\"width: 252px;height: 71.625px\" rowspan=\"4\">1 1 1 1<\/td>\n<td style=\"width: 41px;height: 71.625px\" rowspan=\"4\"><em>\u0422\u0435\u0441\u0442 \u043f\u0440\u043e\u0439\u0434\u0435\u043d<\/em><\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">1 2 3 4<\/td>\n<\/tr>\n<tr style=\"height: 22px\">\n<td style=\"width: 156px;height: 22px\">1 2 3 4<\/td>\n<\/tr>\n<tr style=\"height: 5px\">\n<td style=\"width: 156px;height: 5px\">1 2 3 4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/h2>\n<p>\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u0432 \u0446\u0438\u043a\u043b\u0435 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u0435\u0434\u044f \u043f\u043e\u0438\u0441\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (\u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u00ab\u041d\u043e\u00bb,\u00a0 \u043f\u043e\u0438\u0441\u043a \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u044b).<br \/>\n\u0423 \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043f\u043e\u0434 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u0442\u0440\u043e\u043a \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0423\u0447\u0442\u0435\u043c \u044d\u0442\u043e \u043f\u0440\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<br \/>\n\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<h2>\u041a\u043e\u0434:<\/h2>\n<pre class=\"lang:java decode:true \">import java.util.*;\r\n\r\npublic class multi_arrays {\r\n    public static void main(String[] args){\r\n        Scanner in = new Scanner(System.in);\r\n        System.out.print(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 n: \");\r\n        int n = in.nextInt();                \/\/\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0435\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u0430\r\n            int[][] a = new int [n][n];      \/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430\r\n        for (int i = 0; i &lt; n; i++) {        \r\n            for (int j = 0; j &lt; n; j++) {\r\n                System.out.print(\"\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438: \");\r\n                a[i][j] = in.nextInt();\r\n            }\r\n        }\r\n        for (int i = 0; i &lt; n; i++) {\r\n            int min = a[i][0];\r\n            for (int j = 0; i - j &gt;= 0; j++)  \/\/ \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u043e\u0442\u0431\u043e\u0440\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0434 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u044e\r\n            {\r\n                if (a[i][j] &lt; min) {\r\n                    min = a[i][j];\r\n                }\r\n            }\r\n            System.out.println(min);\r\n        }\r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u00a0<a href=\"https:\/\/ideone.com\/Yd6jID\">Ideone.com<\/a><\/p>\n<p><a href=\"http:\/\/cpp.mazurok.com\/a393a\/\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e [latex]n[\/latex], \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043f\u043e\u0440\u044f\u0434\u043a\u0430\u00a0[latex]n[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]{b}_{1}[\/latex],\u2026,[latex]{b}_{n},[\/latex] \u0433\u0434\u0435\u00a0[latex]{b}_{i}[\/latex]\u00a0\u2014 \u044d\u0442\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 [latex]i[\/latex]-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0433\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0422\u0435\u0441\u0442\u044b: \u00a0 \u0412\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 4 4 3 2 1 4 3 2 1 \u0422\u0435\u0441\u0442 \u043f\u0440\u043e\u0439\u0434\u0435\u043d 4 3 2 1 4 3 2 1 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3337\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":101,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[327,41,136,134,135,326],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3337"}],"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\/101"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3337"}],"version-history":[{"count":10,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3337\/revisions"}],"predecessor-version":[{"id":3348,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3337\/revisions\/3348"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}