{"id":1836,"date":"2017-05-28T11:44:05","date_gmt":"2017-05-28T08:44:05","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=1836"},"modified":"2017-11-25T18:23:46","modified_gmt":"2017-11-25T15:23:46","slug":"%d0%b0694%d0%b0_-%d0%bc%d0%bd%d0%be%d0%b3%d0%be%d0%bc%d0%b5%d1%80%d0%bd%d1%8b%d0%b5-%d0%bc%d0%b0%d1%81%d1%81%d0%b8%d0%b2%d1%8b","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=1836","title":{"rendered":"\u0410694\u0430. \u041c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b"},"content":{"rendered":"<p><strong>\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/strong><br \/>\n\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 $latex \\begin{pmatrix}1 &amp;0 &amp;\\cdots &amp; 0 \\\\ 0 &amp; 1 &amp;\\cdots &amp;0 \\\\ \\cdots &amp;\\cdots &amp;\\cdots \\cdots &amp; \\cdots \\\\ 0 &amp; 0 &amp; \\cdots &amp; 1\\end{pmatrix}$<\/p>\n<p><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/p>\n<table width=\"346\">\n<tbody>\n<tr>\n<td>n<\/td>\n<td>\u041c\u0430\u0442\u0440\u0438\u0446\u0430<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>1 0 0<br \/>\n0 1 0<br \/>\n0 0 1<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>1 0 0 0<br \/>\n0 1 0 0<br \/>\n0 0 1 0<br \/>\n0 0 0 1<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>1 0 0 0 0 0<br \/>\n0 1 0 0 0 0<br \/>\n0 0 1 0 0 0<br \/>\n0 0 0 1 0 0<br \/>\n0 0 0 0 1 0<br \/>\n0 0 0 0 0 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"lang:java decode:true \">import java.util.Scanner;\r\npublic class Lab6\r\n{\r\n    public static void main(String[] args) \r\n    {\r\n        int n;\r\n        Scanner scanIn = new Scanner(System.in);        \r\n        n = scanIn.nextInt();\r\n        int[][] m = new int[n][n];\r\n        for(int i = 0; i &lt; n; i++)\r\n        {\r\n            m[i][i] = 1;\r\n        }\r\n        for(int i = 0; i &lt; n; i++) \r\n        {\r\n            for(int y = 0; y &lt; n; y++) \r\n            {\r\n                System.out.println(m[i][y] + \" \");\r\n            }\r\n            System.out.println(\"\\n\");\r\n        }\r\n    }   \r\n}<\/pre>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<ol>\n<li>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0\u0446\u0438\u043a\u043b\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c\u0438.<\/li>\n<li>\u041f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u0440\u0430\u0432\u043d\u044b\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u0435 \u043a \u043d\u0443\u043b\u044e.<\/li>\n<li>\u0412\u044b\u0432\u043e\u0434 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/ideone.com\/C6ObqY\">Iseone.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 $latex \\begin{pmatrix}1 &amp;0 &amp;\\cdots &amp; 0 \\\\ 0 &amp; 1 &amp;\\cdots &amp;0 \\\\ \\cdots &amp;\\cdots &amp;\\cdots \\cdots &amp; \\cdots \\\\ 0 &amp; 0 &amp; \\cdots &amp; 1\\end{pmatrix}$ \u0422\u0435\u0441\u0442\u044b n \u041c\u0430\u0442\u0440\u0438\u0446\u0430 3 1 0 0 0 1 0 0 0 1 4 1 0 0 0 0 1 0 0 0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=1836\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":91,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[135,75],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1836"}],"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\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1836"}],"version-history":[{"count":11,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1836\/revisions"}],"predecessor-version":[{"id":3239,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1836\/revisions\/3239"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}