{"id":1621,"date":"2016-11-14T19:54:33","date_gmt":"2016-11-14T16:54:33","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=1621"},"modified":"2016-12-09T14:18:54","modified_gmt":"2016-12-09T11:18:54","slug":"%d0%b0694%d0%b0","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=1621","title":{"rendered":"\u0410694\u0430"},"content":{"rendered":"<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 <\/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 <img decoding=\"async\" class=\"latex\" title=\"n\" src=\"http:\/\/s0.wp.com\/latex.php?latex=n&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"n\" \/><br \/>\n<img decoding=\"async\" class=\"latex\" title=\"\\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}\" src=\"http:\/\/s0.wp.com\/latex.php?latex=%5Cbegin%7Bpmatrix%7D1+%260+%26%5Ccdots+%26+0+%5C%5C+0+%26+1+%26%5Ccdots+%260+%5C%5C+%5Ccdots+%26%5Ccdots+%26%5Ccdots+%5Ccdots+%26+%5Ccdots+%5C%5C+0+%26+0+%26+%5Ccdots+%26+1%5Cend%7Bpmatrix%7D&amp;bg=292625&amp;fg=b29d85&amp;s=0\" alt=\"\\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<h3>\u0422\u0435\u0441\u0442\u044b<\/h3>\n<table style=\"height: 616px\" 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<h3>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h3>\n<pre>public class \u0410694\u0430 {\r\n    public static void main(String[] args) {\r\n         int n;\r\n         Scanner sc = new Scanner(System.in); \r\n         n=sc.nextInt();\r\n         int[][] matrix;\r\n         matrix = new int[n][n];\r\n         for(int i=0;i &lt; n;i++){\r\n            matrix[i][i]=1;\r\n         }\r\n         for(int i=0;i&lt;n;i++){\r\n            for(int y=0;y&lt;n;y++){\r\n                if(matrix[i][y]!=1){\r\n                    matrix[i][y]=0;\r\n                }\r\n            }\r\n         }\r\n         for(int i=0;i&lt;n;i++){\r\n            for(int y=0;y&lt;n;y++){\r\n                System.out.print(matrix[i][y]);\r\n            }\r\n             System.out.println(&quot;\\n&quot;);\r\n         }\r\n    }    \r\n}\r\n<\/pre>\n<h3>\u0425\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u044b:<\/h3>\n<p>1. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \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.<\/p>\n<p>2. \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.<\/p>\n<p>3. \u0412\u044b\u0432\u043e\u0434 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p><a href=\"http:\/\/ideone.com\/JE34ZB\" target=\"_blank\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 ideone<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \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 \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 0 1 0 0 0 0 1 6 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=1621\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":90,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1621"}],"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\/90"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1621"}],"version-history":[{"count":13,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions"}],"predecessor-version":[{"id":1771,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1621\/revisions\/1771"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}