{"id":4624,"date":"2018-12-27T21:27:43","date_gmt":"2018-12-27T18:27:43","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=4624"},"modified":"2018-12-27T23:28:38","modified_gmt":"2018-12-27T20:28:38","slug":"%d0%b0410%d0%b5","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=4624","title":{"rendered":"\u0410410\u0435"},"content":{"rendered":"<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>\u0414\u0430\u043d\u0430 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 $ [a_{ij}], ij=1,\\ldots,n.$ \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c $b_{1} \\dots b_{n},$ \u0433\u0434\u0435 $b_{i}$ &#8212; \u044d\u0442\u043e $\\underset{1\\leq j\\leq n}{\\max a_{ij}}\\cdot \\underset{1\\leq j\\leq n}{\\min a_{ji}}$<\/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 \u0447\u0438\u0441\u043b\u043e $n.$ \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 $n\\times n.$<\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0412\u044b\u0432\u0435\u0441\u0442\u0438 $b_i \\; i=1\\dots n.$<\/p>\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table>\n<tr>\n<td>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<td>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td>2<br \/>\n1 2<br \/>\n4 1<\/td>\n<td>2 4<\/td>\n<\/tr>\n<tr>\n<td>3<br \/>\n1 2 3<br \/>\n4 1 -6<br \/>\n1 -2 -1<\/td>\n<td>3 -8 -6<\/td>\n<\/tr>\n<\/table>\n<h1>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h1>\n<pre class=\"lang:java decode:true \" title=\"A410e\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\n\r\n\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\tint n,maxa,mina;\r\n\t\tn=in.nextInt();\r\n\t\tint a[][];\r\n\t\ta = new int[n][];\r\n    \tfor (int i = 0 ;i &lt; n ; i++) {\r\n\t\t\ta[i] = new int [n];\r\n\t\t}\r\n\t\tfor(int i=0;i&lt;n;i++){\r\n\t\t\tfor(int j=0;j&lt;n;j++){\r\n\t\t\t\ta[i][j]=in.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\tint b[]= new int[n];\r\n\t\tfor(int i=0;i&lt;n;++i){\r\n        \tmaxa=a[i][0]; \/\/\u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 i-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.\r\n        \tmina=a[0][i]; \/\/\u041c\u0438\u043d\u0438\u043c\u0443\u043c\u0443 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 i-\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430.\r\n        \tfor(int j=0;j&lt;n;++j){\r\n            \tmaxa=(maxa&gt;a[i][j]?maxa:a[i][j]); \/\/\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c i-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.\r\n            \tmina=(mina&lt;a[j][i]?mina:a[j][i]); \/\/\u041c\u0438\u043d\u0438\u043c\u0443\u043c i-\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430.\r\n        \t}\r\n        \tb[i]=maxa*mina;\r\n    \t}\r\n    \tfor(int i=0;i&lt;n;++i){\r\n        \tSystem.out.print(b[i]);\r\n\t\t\tSystem.out.print(\" \");\r\n    \t}\r\n\t}\r\n}<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043d\u0443\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 $i$-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 $i$-\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430. \u0414\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 [latex]a_{ij}[\/latex], \u0432\u0432\u0435\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0435\u0439 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 $i$-\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u044f \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u044b \u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 $i$-\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c, \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u0432 \u0446\u0438\u043a\u043b\u0435 \u043f\u043e $i$. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c, \u043d\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 $i$-\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430.<\/p>\n<h1>\u0421\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p><a href=\"https:\/\/www.dropbox.com\/s\/xep7gtx48t86cp2\/zadachi.pdf?dl=0\">\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/a><br \/>\n<a href=\"https:\/\/ideone.com\/RNYMLF\">\u041a\u043e\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0414\u0430\u043d\u0430 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 $ [a_{ij}], ij=1,\\ldots,n.$ \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c $b_{1} \\dots b_{n},$ \u0433\u0434\u0435 $b_{i}$ &#8212; \u044d\u0442\u043e $\\underset{1\\leq j\\leq n}{\\max a_{ij}}\\cdot \\underset{1\\leq j\\leq n}{\\min a_{ji}}$ \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 \u0447\u0438\u0441\u043b\u043e $n.$ \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 $n\\times n.$ \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0432\u0435\u0441\u0442\u0438 $b_i \\; i=1\\dots n.$ \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 2 1 2 4 1 2 4 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=4624\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":120,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[137,112,503],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4624"}],"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\/120"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4624"}],"version-history":[{"count":20,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4624\/revisions"}],"predecessor-version":[{"id":4760,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4624\/revisions\/4760"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}