{"id":4138,"date":"2018-12-15T17:02:45","date_gmt":"2018-12-15T14:02:45","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=4138"},"modified":"2018-12-25T20:39:49","modified_gmt":"2018-12-25T17:39:49","slug":"e-olymp-2262-%d1%8f%d0%b2%d0%bd%d0%b0%d1%8f-%d1%84%d0%be%d1%80%d0%bc%d1%83%d0%bb%d0%b0","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=4138","title":{"rendered":"e-olymp 2262. \u042f\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430"},"content":{"rendered":"<p>h1&gt;\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p style=\"text-align: left\">\u0414\u0430\u043d\u043e 10 \u0431\u0443\u043b\u0435\u0432\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445  [latex] x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10} [\/latex]. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u0440 \u0438 \u0442\u0440\u043e\u0435\u043a, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 [latex]1[\/latex]. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = 1[\/latex]  \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0447\u0435\u0442\u043d\u043e \u0438 [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = 0[\/latex]  \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0435\u0442\u043d\u043e.<br \/>\n\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044f\u0432\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}):[\/latex]\n[latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = [\/latex] [latex]\n\\left( x_{1}\\vee x_{2} \\right) \\oplus \\left( x_{1}\\vee x_{3} \\right) \\oplus \\left( x_{1}\\vee x_{4} \\right)\\oplus \\left( x_{1}\\vee x_{5} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{6} \\right) \\oplus \\left( x_{1}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{8} \\right) \\\\<br \/>\n\\oplus \\left( x_{1}\\vee x_{9} \\right) \\oplus \\left( x_{1}\\vee x_{10} \\right) \\oplus \\left( x_{2}\\vee x_{3} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{4} \\right) \\oplus \\left( x_{2}\\vee x_{5} \\right) \\oplus \\left( x_{2}\\vee x_{6} \\right) \\\\<br \/>\n\\oplus \\left( x_{2}\\vee x_{7} \\right) \\oplus \\left( x_{2}\\vee x_{8} \\right) \\oplus \\left( x_{2}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{10} \\right) \\oplus \\left( x_{3}\\vee x_{4} \\right) \\oplus \\left( x_{3}\\vee x_{5} \\right) \\\\<br \/>\n\\oplus \\left( x_{3}\\vee x_{6} \\right) \\oplus \\left( x_{3}\\vee x_{7} \\right) \\oplus \\left( x_{3}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{9} \\right) \\oplus \\left( x_{3}\\vee x_{10} \\right) \\oplus \\left( x_{4}\\vee x_{5} \\right) \\\\<br \/>\n\\oplus \\left( x_{4}\\vee x_{6} \\right) \\oplus \\left( x_{4}\\vee x_{7} \\right) \\oplus \\left( x_{4}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{4}\\vee x_{9} \\right) \\oplus \\left( x_{4}\\vee x_{10} \\right) \\oplus \\left( x_{5}\\vee x_{6} \\right) \\\\<br \/>\n\\oplus \\left( x_{5}\\vee x_{7} \\right) \\oplus \\left( x_{5}\\vee x_{8} \\right) \\oplus \\left( x_{5}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{5}\\vee x_{10} \\right) \\oplus \\left( x_{6}\\vee x_{7} \\right) \\oplus \\left( x_{6}\\vee x_{8} \\right) \\\\<br \/>\n\\oplus \\left( x_{6}\\vee x_{9} \\right) \\oplus \\left( x_{6}\\vee x_{10} \\right) \\oplus \\left( x_{7}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{7}\\vee x_{9} \\right) \\oplus \\left( x_{7}\\vee x_{10} \\right) \\oplus \\left( x_{8}\\vee x_{9} \\right) \\\\<br \/>\n\\oplus \\left( x_{8}\\vee x_{10} \\right) \\oplus \\left( x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{2}\\vee x_{3} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{2}\\vee x_{4} \\right) \\oplus \\left( x_{1}\\vee x_{2}\\vee x_{5} \\right) \\\\ \\oplus \\left( x_{1}\\vee x_{2}\\vee x_{6} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{2}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{2}\\vee x_{8} \\right) \\oplus \\left( x_{1}\\vee x_{2}\\vee x_{9} \\right)<br \/>\n\\oplus \\\\ \\left( x_{1}\\vee x_{2}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{3}\\vee x_{4} \\right) \\oplus \\left( x_{1}\\vee x_{3}\\vee x_{5} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{3}\\vee x_{6} \\right) \\oplus \\\\ \\left( x_{1}\\vee x_{3}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{3}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{3}\\vee x_{9} \\right) \\oplus \\left( x_{1}\\vee x_{3}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{4}\\vee x_{5} \\right) \\\\<br \/>\n\\oplus \\left( x_{1}\\vee x_{4}\\vee x_{6} \\right) \\oplus \\left( x_{1}\\vee x_{4}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{4}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{4}\\vee x_{9} \\right) \\oplus \\\\ \\left( x_{1}\\vee x_{4}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{5}\\vee x_{6} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{5}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{5}\\vee x_{8} \\right) \\oplus \\left( x_{1}\\vee x_{5}\\vee x_{9} \\right) \\\\<br \/>\n\\oplus \\left( x_{1}\\vee x_{5}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{6}\\vee x_{7} \\right) \\oplus \\left( x_{1}\\vee x_{6}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{6}\\vee x_{9} \\right) \\\\ \\oplus \\left( x_{1}\\vee x_{6}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{7}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{7}\\vee x_{9} \\right) \\oplus \\left( x_{1}\\vee x_{7}\\vee x_{10} \\right) \\oplus \\\\ \\left( x_{1}\\vee x_{8}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{1}\\vee x_{8}\\vee x_{10} \\right) \\oplus \\left( x_{1}\\vee x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{2}\\vee x_{3}\\vee x_{4} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{3}\\vee x_{5} \\right) \\\\ \\oplus \\left( x_{2}\\vee x_{3}\\vee x_{6} \\right) \\oplus \\left( x_{2}\\vee x_{3}\\vee x_{7} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{3}\\vee x_{8} \\right) \\oplus \\left( x_{2}\\vee x_{3}\\vee x_{9} \\right) \\oplus \\\\ \\left( x_{2}\\vee x_{3}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{4}\\vee x_{5} \\right) \\oplus \\left( x_{2}\\vee x_{4}\\vee x_{6} \\right) \\oplus \\left( x_{2}\\vee x_{4}\\vee x_{7} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{4}\\vee x_{8} \\right) \\\\ \\oplus \\left( x_{2}\\vee x_{4}\\vee x_{9} \\right) \\oplus \\left( x_{2}\\vee x_{4}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{4}\\vee x_{6} \\right) \\oplus \\left( x_{2}\\vee x_{5}\\vee x_{6} \\right) \\oplus \\left( x_{2}\\vee x_{5}\\vee x_{7} \\right) \\\\<br \/>\n\\oplus \\left( x_{2}\\vee x_{5}\\vee x_{8} \\right) \\oplus \\left( x_{2}\\vee x_{5}\\vee x_{9} \\right) \\oplus \\left( x_{2}\\vee x_{5}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{6}\\vee x_{7} \\right) \\oplus \\left( x_{2}\\vee x_{6}\\vee x_{8} \\right) \\\\ \\oplus \\left( x_{2}\\vee x_{6}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{6}\\vee x_{10} \\right) \\oplus \\left( x_{2}\\vee x_{7}\\vee x_{8} \\right) \\oplus \\left( x_{2}\\vee x_{7}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{7}\\vee x_{10} \\right) \\\\ \\oplus \\left( x_{2}\\vee x_{8}\\vee x_{9} \\right) \\oplus \\left( x_{2}\\vee x_{8}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{2}\\vee x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{3}\\vee x_{4}\\vee x_{5} \\right) \\oplus \\left( x_{3}\\vee x_{4}\\vee x_{6} \\right) \\\\<br \/>\n\\oplus \\left( x_{3}\\vee x_{4}\\vee x_{7} \\right) \\oplus \\left( x_{3}\\vee x_{4}\\vee x_{8} \\right) \\oplus \\left( x_{3}\\vee x_{4}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{4}\\vee x_{10} \\right) \\oplus \\left( x_{3}\\vee x_{5}\\vee x_{6} \\right) \\\\ \\oplus \\left( x_{3}\\vee x_{5}\\vee x_{7} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{5}\\vee x_{8} \\right) \\oplus \\left( x_{3}\\vee x_{5}\\vee x_{9} \\right) \\oplus \\left( x_{3}\\vee x_{5}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{6}\\vee x_{7} \\right) \\\\ \\oplus \\left( x_{3}\\vee x_{6}\\vee x_{8} \\right) \\oplus \\left( x_{3}\\vee x_{6}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{6}\\vee x_{10} \\right) \\oplus \\left( x_{3}\\vee x_{7}\\vee x_{8} \\right) \\\\ \\oplus \\left( x_{3}\\vee x_{7}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{7}\\vee x_{10} \\right) \\oplus \\left( x_{3}\\vee x_{8}\\vee x_{9} \\right) \\oplus \\left( x_{3}\\vee x_{8}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{3}\\vee x_{9}\\vee x_{10} \\right) \\\\ \\oplus \\left( x_{4}\\vee x_{5}\\vee x_{6} \\right) \\oplus \\left( x_{4}\\vee x_{5}\\vee x_{7} \\right)<br \/>\n\\oplus \\left( x_{4}\\vee x_{5}\\vee x_{8} \\right) \\oplus \\left( x_{4}\\vee x_{5}\\vee x_{9} \\right) \\oplus \\left( x_{4}\\vee x_{5}\\vee x_{10} \\right) \\\\<br \/>\n\\oplus \\left( x_{4}\\vee x_{6}\\vee x_{7} \\right) \\oplus \\left( x_{4}\\vee x_{6}\\vee x_{8} \\right) \\oplus \\left( x_{4}\\vee x_{6}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{4}\\vee x_{6}\\vee x_{10} \\right) \\oplus \\left( x_{4}\\vee x_{7}\\vee x_{8} \\right) \\\\ \\oplus \\left( x_{4}\\vee x_{7}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{4}\\vee x_{7}\\vee x_{10} \\right) \\oplus \\left( x_{4}\\vee x_{8}\\vee x_{9} \\right) \\oplus \\left( x_{4}\\vee x_{8}\\vee x_{10} \\right) \\\\<br \/>\n\\oplus \\left( x_{4}\\vee x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{5}\\vee x_{6}\\vee x_{7} \\right) \\oplus \\left( x_{5}\\vee x_{6}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{5}\\vee x_{6}\\vee x_{9} \\right) \\oplus \\left( x_{5}\\vee x_{6}\\vee x_{10} \\right) \\\\ \\oplus \\left( x_{5}\\vee x_{7}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{5}\\vee x_{7}\\vee x_{9} \\right) \\oplus \\left( x_{5}\\vee x_{7}\\vee x_{10} \\right) \\oplus \\left( x_{5}\\vee x_{8}\\vee x_{9} \\right)<br \/>\n\\oplus \\left( x_{5}\\vee x_{8}\\vee x_{10} \\right) \\\\ \\oplus \\left( x_{5}\\vee x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{6}\\vee x_{7}\\vee x_{8} \\right)<br \/>\n\\oplus \\left( x_{6}\\vee x_{7}\\vee x_{9} \\right) \\oplus \\left( x_{6}\\vee x_{7}\\vee x_{10} \\right) \\oplus \\left( x_{6}\\vee x_{8}\\vee x_{9} \\right) \\\\<br \/>\n\\oplus \\left( x_{6}\\vee x_{8}\\vee x_{10} \\right) \\oplus \\left( x_{6}\\vee x_{8}\\vee x_{9} \\right) \\oplus \\left( x_{6}\\vee x_{8}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{6}\\vee x_{9}\\vee x_{10} \\right) \\\\ \\oplus \\left( x_{7}\\vee x_{8}\\vee x_{9} \\right) \\oplus \\left( x_{7}\\vee x_{8}\\vee x_{10} \\right)<br \/>\n\\oplus \\left( x_{7}\\vee x_{9}\\vee x_{10} \\right) \\oplus \\left( x_{8}\\vee x_{9}\\vee x_{10} \\right) \\\\<br \/>\n[\/latex]\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h1>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442 [latex]10[\/latex] \u0447\u0438\u0441\u0435\u043b  [latex] x_{1},\\ x_{2},\\ x_{3} ,\\ x_{4},\\ x_{5},\\ x_{6},\\ x_{7},\\ x_{8},\\ x_{9},\\ x_{10} [\/latex].  \u041a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0440\u0430\u0432\u043d\u043e [latex]0[\/latex]  \u0438\u043b\u0438  [latex]1[\/latex].<\/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 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 [latex]f( x_{1}, \\ x_{2},\\ x_{3} ,\\ x_{4},\\ x_{5},\\ x_{6},\\ x_{7},\\ x_{8},\\ x_{9},\\ x_{10}).[\/latex]\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table>\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 style=\"text-align: left\">1 0 0 1 0 0 1 0 0 1<\/td>\n<td style=\"text-align: center\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left\">0 0 0 0 0 0 0 0 0 0<\/td>\n<td style=\"text-align: center\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left\">1 1 1 1 1 1 1 1 1 1<\/td>\n<td style=\"text-align: center\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left\">1 1 1 1 1 0 0 0 0 0<\/td>\n<td style=\"text-align: center\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left\">1 0 1 0 1 0 1 0 1 0<\/td>\n<td style=\"text-align: center\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"lang:java decode:true \" title=\"\u042f\u0432\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\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\tboolean x1, x2, x3, x4, x5, x6, x7, x8, x9, x10;\r\n\t\tx1 = in.nextByte() == 0 ? false : true;\r\n\t\tx2 = in.nextByte() == 0 ? false : true;\r\n\t\tx3 = in.nextByte() == 0 ? false : true;\r\n\t\tx4 = in.nextByte() == 0 ? false : true;\r\n\t\tx5 = in.nextByte() == 0 ? false : true;\r\n\t\tx6 = in.nextByte() == 0 ? false : true;\r\n\t\tx7 = in.nextByte() == 0 ? false : true;\r\n\t\tx8 = in.nextByte() == 0 ? false : true;\r\n\t\tx9 = in.nextByte() == 0 ? false : true;\r\n\t\tx10 = in.nextByte() == 0 ? false : true;\r\n\t\tboolean y= (x1||x2)^(x1||x3)^(x1||x4)^(x1||x5)^(x1||x6)^(x1||x7)^(x1||x8)^(x1||x9)^(x1||x10)^(x2||x3)^(x2||x4)^(x2||x5)^(x2||x6)^(x2||x7)^(x2||x8)^(x2||x9)^(x2||x10)^(x3||x4)^(x3||x5)^(x3||x6)^(x3||x7)^(x3||x8)^(x3||x9)^(x3||x10)^(x4||x5)^(x4||x6)^(x4||x7)^(x4||x8)^(x4||x9)^(x4||x10)^(x5||x6)^(x5||x7)^(x5||x8)^(x5||x9)^(x5||x10)^(x6||x7)^(x6||x8)^(x6||x9)^(x6||x10)^(x7||x8)^(x7||x9)^(x7||x10)^(x8||x9)^(x8||x10)^(x9||x10)^(x1||x2||x3)^(x1||x2||x4)^(x1||x2||x5)^(x1||x2||x6)^(x1||x2||x7)^(x1||x2||x8)^(x1||x2||x9)^(x1||x2||x10)^(x1||x3||x4)^(x1||x3||x5)^(x1||x3||x6)^(x1||x3||x7)^(x1||x3||x8)^(x1||x3||x9)^(x1||x3||x10)^(x1||x4||x5)^(x1||x4||x6)^(x1||x4||x7)^(x1||x4||x8)^(x1||x4||x9)^(x1||x4||x10)^(x1||x5||x6)^(x1||x5||x7)^(x1||x5||x8)^(x1||x5||x9)^(x1||x5||x10)^(x1||x6||x7)^(x1||x6||x8)^(x1||x6||x9)^(x1||x6||x10)^(x1||x7||x8)^(x1||x7||x9)^(x1||x7||x10)^(x1||x8||x9)^(x1||x8||x10)^(x1||x9||x10)^(x2||x3||x4)^(x2||x3||x5)^(x2||x3||x6)^(x2||x3||x7)^(x2||x3||x8)^(x2||x3||x9)^(x2||x3||x10)^(x2||x4||x5)^(x2||x4||x6)^(x2||x4||x7)^(x2||x4||x8)^(x2||x4||x9)^(x2||x4||x10)^(x2||x5||x6)^(x2||x5||x7)^(x2||x5||x8)^(x2||x5||x9)^(x2||x5||x10)^(x2||x6||x7)^(x2||x6||x8)^(x2||x6||x9)^(x2||x6||x10)^(x2||x7||x8)^(x2||x7||x9)^(x2||x7||x10)^(x2||x8||x9)^(x2||x8||x10)^(x2||x9||x10)^(x3||x4||x5)^(x3||x4||x6)^(x3||x4||x7)^(x3||x4||x8)^(x3||x4||x9)^(x3||x4||x10)^(x3||x5||x6)^(x3||x5||x7)^(x3||x5||x8)^(x3||x5||x9)^(x3||x5||x10)^(x3||x6||x7)^(x3||x6||x8)^(x3||x6||x9)^(x3||x6||x10)^(x3||x7||x8)^(x3||x7||x9)^(x3||x7||x10)^(x3||x8||x9)^(x3||x8||x10)^(x3||x9||x10)^(x4||x5||x6)^(x4||x5||x7)^(x4||x5||x8)^(x4||x5||x9)^(x4||x5||x10)^(x4||x6||x7)^(x4||x6||x8)^(x4||x6||x9)^(x4||x6||x10)^(x4||x7||x8)^(x4||x7||x9)^(x4||x7||x10)^(x4||x8||x9)^(x4||x8||x10)^(x4||x9||x10)^(x5||x6||x7)^(x5||x6||x8)^(x5||x6||x9)^(x5||x6||x10)^(x5||x7||x8)^(x5||x7||x9)^(x5||x7||x10)^(x5||x8||x9)^(x5||x8||x10)^(x5||x9||x10)^(x6||x7||x8)^(x6||x7||x9)^(x6||x7||x10)^(x6||x8||x9)^(x6||x8||x10)^(x6||x9||x10)^(x7||x8||x9)^(x7||x8||x10)^(x7||x9||x10)^(x8||x9||x10);\r\n\t\tSystem.out.print(y ? 1 : 0);\r\n\t\tin.close();\r\n\t}\r\n}<\/pre>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 \u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0435\u0441\u044f\u0442\u0438 (\u0432\u0441\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 [latex]45[\/latex] \u043f\u0430\u0440 \u0438  [latex]120[\/latex] \u0442\u0440\u043e\u0435\u043a).  \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e [latex]f( x_{1},\\ x_{2},\\ x_{3} ,\\ x_{4},\\ x_{5},\\ x_{6},\\ x_{7},\\ x_{8},\\ x_{9},\\ x_{10}) [\/latex].   \u0412 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f  &#171;[latex]\\vee[\/latex]&#187;  \u0438  &#171;[latex]\\oplus[\/latex]&#187;,  \u0433\u0434\u0435 &#171;[latex]\\vee[\/latex]&#187;  &#8212;  <strong>\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043b\u0438<\/strong> ,  \u0430 &#171;[latex]\\oplus[\/latex]&#187;  &#8212;  <strong>\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u0438\u043b\u0438<\/strong><\/p>\n<h1>\u0421\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p><a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/2262\">e-olymp<\/a><br \/>\n<a href=\"https:\/\/ideone.com\/HHOLmO\">Ideone<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>h1&gt;\u0417\u0430\u0434\u0430\u0447\u0430 \u0414\u0430\u043d\u043e 10 \u0431\u0443\u043b\u0435\u0432\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 [latex] x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10} [\/latex]. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u0440 \u0438 \u0442\u0440\u043e\u0435\u043a, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 [latex]1[\/latex]. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = 1[\/latex] \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0447\u0435\u0442\u043d\u043e \u0438 [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = 0[\/latex] \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0435\u0442\u043d\u043e. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044f\u0432\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}):[\/latex] [latex]f( x_{1},\\:x_{2},\\:x_{3} ,\\:x_{4},\\:x_{5},\\:x_{6},\\:x_{7},\\:x_{8},\\:x_{9},\\:x_{10}) = &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=4138\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":127,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[522,544,545,71,546],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4138"}],"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\/127"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4138"}],"version-history":[{"count":3,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4138\/revisions"}],"predecessor-version":[{"id":4284,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4138\/revisions\/4284"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}