{"id":255714,"date":"2015-04-21T17:17:02","date_gmt":"2015-04-21T13:17:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255714"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255714","title":{"rendered":"\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e \u0434\u0432\u0443\u0445 \u043c\u0443\u0434\u0440\u0435\u0446\u0430\u0445 \u0438 \u0447\u0438\u0441\u043b\u0430\u0445 \u043e\u0442 1 \u0434\u043e 100"},"content":{"rendered":"<p> \t\t\t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e\u043c\u0435\u043b\u044c\u043a\u043d\u0443\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u043f\u0440\u043e \u0434\u0432\u0443\u0445 \u043c\u0443\u0434\u0440\u0435\u0446\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u044f \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043a \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u0439\u0442\u0438. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u043f\u043e\u043c\u043d\u044e \u0443\u0441\u043b\u043e\u0432\u0438\u0435:  <\/p>\n<blockquote><p>\u0423 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0443\u043b\u0442\u0430\u043d\u0430 \u0431\u044b\u043b\u043e \u0434\u0432\u0430 \u043c\u0443\u0434\u0440\u0435\u0446\u0430: \u0410\u043b\u0438-\u0438\u0431\u043d-\u0412\u0430\u043b\u0438 \u0438 \u0412\u0430\u043b\u0438-\u0438\u0431\u043d-\u0410\u043b\u0438. \u0416\u0435\u043b\u0430\u044f \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0438\u0445 \u043c\u0443\u0434\u0440\u043e\u0441\u0442\u0438, \u0441\u0443\u043b\u0442\u0430\u043d \u043f\u0440\u0438\u0437\u0432\u0430\u043b \u043c\u0443\u0434\u0440\u0435\u0446\u043e\u0432 \u043a \u0441\u0435\u0431\u0435 \u0438 \u0441\u043a\u0430\u0437\u0430\u043b: \u00ab\u042f \u0437\u0430\u0434\u0443\u043c\u0430\u043b \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430. \u041e\u0431\u0430 \u043e\u043d\u0438 \u0446\u0435\u043b\u044b\u0435, \u043a\u0430\u0436\u0434\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b, \u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0442\u0430. \u042f \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0438\u043b \u044d\u0442\u0438 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u043e\u043e\u0431\u0449\u0443 \u0410\u043b\u0438 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0412\u0430\u043b\u0438 \u044f \u0441\u043a\u0430\u0436\u0443 \u0441\u0443\u043c\u043c\u0443 \u044d\u0442\u0438\u0445 \u0447\u0438\u0441\u0435\u043b. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438 \u0432\u043f\u0440\u0430\u0432\u0434\u0443 \u0442\u0430\u043a \u043c\u0443\u0434\u0440\u044b, \u043a\u0430\u043a \u043e \u0432\u0430\u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430\u00bb.<br \/>  \u041c\u0443\u0434\u0440\u0435\u0446\u044b \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0438\u0441\u044c. \u041f\u0435\u0440\u0432\u044b\u043c \u043d\u0430\u0440\u0443\u0448\u0438\u043b \u043c\u043e\u043b\u0447\u0430\u043d\u0438\u0435 \u0410\u043b\u0438.<br \/>  \u2014 \u042f \u043d\u0435 \u0437\u043d\u0430\u044e \u044d\u0442\u0438\u0445 \u0447\u0438\u0441\u0435\u043b, \u2014 \u0441\u043a\u0430\u0437\u0430\u043b \u043e\u043d, \u043e\u043f\u0443\u0441\u043a\u0430\u044f \u0433\u043e\u043b\u043e\u0432\u0443.<br \/>  \u2014 \u042f \u044d\u0442\u043e \u0437\u043d\u0430\u043b, \u2014 \u043f\u043e\u0434\u0430\u043b \u0433\u043e\u043b\u043e\u0441 \u0412\u0430\u043b\u0438.<br \/>  \u2014 \u0422\u043e\u0433\u0434\u0430 \u044f \u0437\u043d\u0430\u044e \u044d\u0442\u0438 \u0447\u0438\u0441\u043b\u0430, \u2014 \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u0410\u043b\u0438.<br \/>  \u2014 \u0422\u043e\u0433\u0434\u0430 \u0438 \u044f \u0437\u043d\u0430\u044e! \u2014 \u0432\u043e\u0441\u043a\u043b\u0438\u043a\u043d\u0443\u043b \u0412\u0430\u043b\u0438.<br \/>  \u0418 \u043c\u0443\u0434\u0440\u0435\u0446\u044b \u0441\u043e\u043e\u0431\u0449\u0438\u043b\u0438 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u043d\u043e\u043c\u0443 \u0446\u0430\u0440\u044e \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u0438\u043c \u0447\u0438\u0441\u043b\u0430.<br \/>  \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u044d\u0442\u0438 \u0447\u0438\u0441\u043b\u0430.<\/p><\/blockquote>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u043e\u0436\u0435 \u0431\u044b\u043b\u0430 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u041e\u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435.<br \/>  \u0417\u0430\u0434\u0430\u0447\u0430 \u043e \u0414\u043d\u0435 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f:  <\/p>\n<blockquote><p>\u0410\u043b\u044c\u0431\u0435\u0440\u0442 \u0438 \u0411\u0435\u0440\u043d\u0430\u0440\u0434 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 \u0428\u0435\u0440\u0438\u043b. \u041e\u043d\u0438 \u0445\u043e\u0442\u044f\u0442 \u0437\u043d\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0435\u0451 \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f. \u0428\u0435\u0440\u0438\u043b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0430 \u0438\u043c \u0434\u0435\u0441\u044f\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0434\u0430\u0442: 15 \u043c\u0430\u044f, 16 \u043c\u0430\u044f, 19 \u043c\u0430\u044f, 17 \u0438\u044e\u043d\u044f, 18 \u0438\u044e\u043d\u044f, 14 \u0438\u044e\u043b\u044f, 16 \u0438\u044e\u043b\u044f, 14 \u0430\u0432\u0433\u0443\u0441\u0442\u0430, 15 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0438 17 \u0430\u0432\u0433\u0443\u0441\u0442\u0430. \u0417\u0430\u0442\u0435\u043c \u0428\u0435\u0440\u0438\u043b \u0441\u043a\u0430\u0437\u0430\u043b\u0430 \u0410\u043b\u044c\u0431\u0435\u0440\u0442\u0443 \u043c\u0435\u0441\u044f\u0446 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0430 \u0411\u0435\u0440\u043d\u0430\u0440\u0434\u0443 \u2014 \u0434\u0435\u043d\u044c. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0434\u0438\u0430\u043b\u043e\u0433. <br \/>  \u0410\u043b\u044c\u0431\u0435\u0440\u0442: \u042f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u043e \u044f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0411\u0435\u0440\u043d\u0430\u0440\u0434 \u0442\u043e\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442. <br \/>  \u0411\u0435\u0440\u043d\u0430\u0440\u0434: \u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u044f \u043d\u0435 \u0437\u043d\u0430\u043b, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u043e \u0437\u043d\u0430\u044e \u0442\u0435\u043f\u0435\u0440\u044c. <br \/>  \u0410\u043b\u044c\u0431\u0435\u0440\u0442: \u0422\u0435\u043f\u0435\u0440\u044c \u044f \u0442\u043e\u0436\u0435 \u0437\u043d\u0430\u044e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f. <br \/>  \u041a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f?<\/p><\/blockquote>\n<p>  \u041f\u0440\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u0438 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b. <br \/>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u043d\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043c\u0435\u0441\u044f\u0446\u0435\u0432, \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u043c\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044e 60 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0443\u043c\u043c\u044b 15+4=19, 12+5=17 \u0438 \u0442.\u0434.). \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u0435\u0441\u044f\u0446\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439, \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0443\u043c\u043c\u0430\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0443\u043c\u043c\u0435 10 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f 6*4=24, 7*3=21 \u0438 \u0442.\u0434.). \u0421\u043c\u044b\u0441\u043b \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0442\u043e\u0436\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439.<\/p>\n<p>  \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043e \u0434\u043d\u0435 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043e \u043c\u0443\u0434\u0440\u0435\u0446\u0430\u0445. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043b\u0438\u0448\u044c \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0434\u0435\u043d\u044c-\u043c\u0435\u0441\u044f\u0446 \u0438 \u0441\u0443\u043c\u043c\u0430-\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435, \u0442\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 1 \u0434\u043e 100 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u0443\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0439.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b MATLAB. \u0414\u0430, \u044f \u0441\u0442\u0440\u0435\u043b\u044f\u044e \u0438\u0437 \u043f\u0443\u0448\u043a\u0438 \u043f\u043e \u0432\u043e\u0440\u043e\u0431\u044c\u044f\u043c, \u043d\u043e \u0441 \u041c\u0430\u0442\u043b\u0430\u0431\u043e\u043c \u044f \u0447\u0430\u0441\u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0441\u044c \u0432 \u0440\u0430\u0431\u043e\u0442\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0443\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0435.<\/p>\n<p>  <b>\u0418\u0442\u0430\u043a, \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/b><\/p>\n<p>  <b>1.<\/b> \u0417\u0430\u043f\u0438\u0448\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f: \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043d\u0435\u0439, \u0432\u0435\u043a\u0442\u043e\u0440 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430 \u043c\u0435\u0441\u0442\u0430\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0441\u0442\u043e\u044f\u0442 \u0435\u0434\u0438\u043d\u0438\u0446\u044b.<\/p>\n<p>  <img decoding=\"async\" width=\"160\" src=\"\/\/habrastorage.org\/files\/c5b\/637\/713\/c5b6377138074201ae008f15367146e4.png\"\/><\/p>\n<pre><code class=\"matlab\">days = [14; 15; 16; 17; 18; 19]; months = [5; 6; 7; 8];  matrix = [ 0 0 1 1;  1 0 0 1;  1 0 1 0;  0 1 0 1;  0 1 0 0;  1 0 0 0 ]; <\/code><\/pre>\n<p>  <b>2.<\/b> \u041f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0444\u0440\u0430\u0437\u0443 \u0410\u043b\u044c\u0431\u0435\u0440\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u043c\u0435\u0441\u044f\u0446:  <\/p>\n<blockquote><p>\u042f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u043e \u044f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0411\u0435\u0440\u043d\u0430\u0440\u0434 \u0442\u043e\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442.<\/p><\/blockquote>\n<p> \u0418\u0437 \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043b\u044e\u0431\u044b\u043c \u0434\u043d\u044f\u043c, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u044f\u0446\u0430, \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u044f\u0446\u0430.<br \/>  \u0422\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0434\u043b\u044f \u043c\u0430\u044f (\u0432\u0435\u0434\u044c \u0435\u0441\u043b\u0438 \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f 19 \u043c\u0430\u044f, \u0442\u043e \u0411\u0435\u0440\u043d\u0430\u0440\u0434 \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442) \u0438 \u0434\u043b\u044f \u0438\u044e\u043d\u044f (\u0435\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u2013 18 \u0438\u044e\u043d\u044f, \u0442\u043e \u0411\u0435\u0440\u043d\u0430\u0440\u0434 \u0442\u043e\u0436\u0435 \u0437\u043d\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u0443\u044e \u0434\u0430\u0442\u0443).<br \/>  \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043c\u0435\u0441\u044f\u0446\u044b, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0430 (\u0434\u043d\u0438 18 \u0438 19), \u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0433\u0434\u0435 \u0441\u0442\u043e\u044f\u0442 \u044d\u0442\u0438 \u0435\u0434\u0438\u043d\u0438\u0446\u044b (\u043c\u0435\u0441\u044f\u0446\u044b 5 \u0438 6) \u0438 \u0432\u044b\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c \u044d\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u044b.<\/p>\n<p>  <img decoding=\"async\" width=\"160\" src=\"\/\/habrastorage.org\/files\/621\/239\/373\/621239373ad94dfbb0d07babf0e7d891.png\"\/><\/p>\n<p>  \u041d\u0430 \u041c\u0430\u0442\u043b\u0430\u0431\u0435 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"matlab\">unique_days = find(sum(matrix,2)==1); [~, months_with_unique_days] = find (matrix(unique_days,:)==1); months_with_unique_days = unique(months_with_unique_days); matrix(:,months_with_unique_days) = []; months(months_with_unique_days) = []; <\/code><\/pre>\n<p>  <b>3.<\/b> \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0444\u0440\u0430\u0437\u044b \u0411\u0435\u0440\u043d\u0430\u0440\u0434, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0434\u0435\u043d\u044c, \u043e\u0442\u0432\u0435\u0442\u0438\u043b:<br \/>  \u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u044f \u043d\u0435 \u0437\u043d\u0430\u043b, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u043e \u0437\u043d\u0430\u044e \u0442\u0435\u043f\u0435\u0440\u044c.<br \/>  \u0417\u043d\u0430\u0447\u0438\u0442, \u0442\u043e\u043c\u0443 \u0434\u043d\u044e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u0411\u0435\u0440\u043d\u0430\u0440\u0434, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043c\u0435\u0441\u044f\u0446.<br \/>  \u0422\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0434\u043b\u044f \u0447\u0438\u0441\u0435\u043b 15, 16 \u0438 17.<br \/>  \u0412\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e, \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<\/p>\n<p>  <img decoding=\"async\" width=\"160\" src=\"\/\/habrastorage.org\/files\/3f0\/974\/7bb\/3f09747bb9514aeb9a30566d72b98b58.png\"\/><\/p>\n<pre><code class=\"matlab\">non_unique_days = find(sum(matrix,2)~=1); matrix(non_unique_days,:) = []; days(non_unique_days) = []; <\/code><\/pre>\n<p>  <b>4.<\/b> \u0422\u0435\u043f\u0435\u0440\u044c \u0410\u043b\u044c\u0431\u0435\u0440\u0442, \u0437\u043d\u0430\u044e\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446, \u043e\u0442\u0432\u0435\u0442\u0438\u043b:  <\/p>\n<blockquote><p>\u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u044f \u043d\u0435 \u0437\u043d\u0430\u043b, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0428\u0435\u0440\u0438\u043b \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u043e \u0437\u043d\u0430\u044e \u0442\u0435\u043f\u0435\u0440\u044c.<\/p><\/blockquote>\n<p> \u0417\u043d\u0430\u0447\u0438\u0442, \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0447\u0430\u0441\u0442\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0435\u0446, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u042d\u0442\u043e \u0441\u0442\u043e\u043b\u0431\u0435\u0446, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0438\u044e\u043b\u044e. \u0412\u044b\u0431\u0440\u043e\u0441\u0438\u043c \u0432\u0441\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u0433\u0434\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430.<br \/>  <img decoding=\"async\" width=\"160\" src=\"\/\/habrastorage.org\/files\/1ee\/7e7\/b9b\/1ee7e7b9bb3d468b924f18b4987e8dce.png\"\/><\/p>\n<pre><code class=\"matlab\">non_unique_months = find(sum(matrix)~=1); matrix(:,non_unique_months) = []; months(non_unique_months) = []; <\/code><\/pre>\n<p>  <b>5.<\/b> \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u0443.  <\/p>\n<pre><code class=\"matlab\">days = days(matrix == 1); disp(days); disp(months); <\/code><\/pre>\n<p>  \u041e\u0442\u0432\u0435\u0442: <b>16 \u0438\u044e\u043b\u044f<\/b>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"matlab\">% Birthday example matrix = [ 0 0 1 1;  1 0 0 1;  1 0 1 0;  0 1 0 1;  0 1 0 0;  1 0 0 0 ]; days = [14; 15; 16; 17; 18; 19]; months = [5; 6; 7; 8];  % Remove months with unique days unique_days = find(sum(matrix,2)==1); [~, months_with_unique_days] = find (matrix(unique_days,:)==1); months_with_unique_days = unique(months_with_unique_days); matrix(:,months_with_unique_days) = []; months(months_with_unique_days) = [];  % Remove non-unique days non_unique_days = find(sum(matrix,2)~=1); matrix(non_unique_days,:) = []; days(non_unique_days) = [];  % Find 1 month with unique day non_unique_months = find(sum(matrix)~=1); matrix(:,non_unique_months) = []; months(non_unique_months) = [];  % Find the last day days = days(matrix == 1);  % Result output disp(days); disp(months); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u043c\u0443\u0434\u0440\u0435\u0446\u0430\u043c\u0438.<br \/>  \u041c\u0435\u0441\u044f\u0446\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 2 \u0434\u043e 99. \u042d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u0446\u0435\u043b\u044b\u0435 \u0446\u0438\u0441\u043b\u0430 \u043e\u0442 4 \u0434\u043e 198. \u0414\u043d\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 2 \u0434\u043e 99. \u0422\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c 2843. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u043d\u0430 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0430\u0440 \u0441\u0443\u043c\u043c\u0430-\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<pre><code>months = 4:198; days = unique((2:99)'*(2:99)); matrix = false(length(days),length(months)); for i1 = 2:99     for i2 = 2:99         matrix(days==(i1*i2),months==(i1+i2)) = true;     end; end; <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0442\u0432\u0435\u0442: \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u2013 52, \u0441\u0443\u043c\u043c\u0430 \u201317.<br \/>  \u042d\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0430\u0440\u0435 \u0447\u0438\u0441\u0435\u043b <b>4 \u0438 13<\/b>. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/256293\/\"> http:\/\/habrahabr.ru\/post\/256293\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e\u043c\u0435\u043b\u044c\u043a\u043d\u0443\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u043f\u0440\u043e \u0434\u0432\u0443\u0445 \u043c\u0443\u0434\u0440\u0435\u0446\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u044f \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043a \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u0439\u0442\u0438.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-255714","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255714"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255714\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}