{"id":279061,"date":"2016-04-26T11:10:04","date_gmt":"2016-04-26T07:10:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279061"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279061","title":{"rendered":"Two languages, one Cup. \u0420\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0445 RCC 2016"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/48d\/ad8\/57e\/48dad857e62f4bea90438d3849b62798.png\"\/>  <\/p>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0425\u0430\u0431\u0440! \u0412\u043e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043e\u0441\u0442 \u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u043c <strong>Russian Code Cup 2016<\/strong>, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435, \u043c\u043e\u0438 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044f \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u0440\u0430\u0437\u043e\u0433\u0440\u0435\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0443\u043d\u0434\u0430.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0430\u0443\u043d\u0434\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b <a href=\"http:\/\/www.russiancodecup.ru\/ru\/rules\/#anc103\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0438\u0445 \u0432\u0441\u0435 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u044c, \u0432\u044b\u0434\u0435\u043b\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 (Java, Python, C\/C++\/C++11, C#, Perl, PHP, Ruby, D)<\/li>\n<li>\u0412\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043c\u0435\u044e\u0442 \u043b\u0438\u043c\u0438\u0442 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0420\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u0437\u0430\u0434\u0430\u0447\u0435<strong> &quot;A&quot; \u0421\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"http:\/\/www.russiancodecup.ru\/ru\/championship\/round\/52\/problem\/A\/\">(\u043f\u0440\u044f\u043c\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430)<\/a>:<\/strong><\/p>\n<p>  <\/p>\n<p><strong>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 <\/strong> 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b<br \/>  <strong>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 <\/strong> 256 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442<\/p>\n<p>  <\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u041c\u0430\u0440\u0442\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0438 \u0445\u043e\u0447\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e\u043c\u043e\u0439 \u0432 1985 \u0433\u043e\u0434. \u041e\u043d \u0443\u0436\u0435 \u0432\u043b\u044e\u0431\u0438\u043b \u0441\u0432\u043e\u0438\u0445 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 \u0438 \u043d\u0430\u0448\u0451\u043b \u043f\u043b\u0443\u0442\u043e\u043d\u0438\u0439. \u0412\u0441\u0451, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u2014 \u044d\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0443\u0442\u044c. \u0417\u0434\u0435\u0441\u044c \u041c\u0430\u0440\u0442\u0438 \u0436\u0434\u0451\u0442 \u0435\u0449\u0451 \u043e\u0434\u043d\u043e \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0443\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434. \u0421\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0437\u043d\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0414\u043e\u043a. \u041c\u0430\u0440\u0442\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043a\u043e\u0434, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u043d \u0437\u043d\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u041f\u043e\u043a\u0430 \u041c\u0430\u0440\u0442\u0438 \u0436\u0434\u0451\u0442 \u043f\u0440\u0438\u0435\u0437\u0434\u0430 \u0414\u043e\u043a\u0430, \u043e\u043d \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0433\u0430\u0434\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0432\u0432\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u0412\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u041c\u0430\u0440\u0442\u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0435\u0440\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u044f\u0442 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0445, \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435, \u043d\u043e \u0441\u0442\u043e\u044f\u0442 \u043d\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0445.<\/p>\n<p>  <\/p>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 s \u2014 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434. \u041a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0445 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0431\u0443\u043a\u0432 \u0438 \u0446\u0438\u0444\u0440, \u0432\u0441\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u043a\u043e\u0434\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e n (1\u2009\u2264\u2009n\u2009\u2264\u200910<sup>5<\/sup>) \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u041c\u0430\u0440\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 n \u0441\u0442\u0440\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u0432\u043e\u0434\u0438\u0442 \u041c\u0430\u0440\u0442\u0438. \u041a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0445 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0431\u0443\u043a\u0432 \u0438 \u0446\u0438\u0444\u0440. \u0421\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b. \u0414\u043b\u0438\u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0434\u043b\u0438\u043d\u043e\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u041c\u0430\u0440\u0442\u0438 \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 a \u0438 b, \u0433\u0434\u0435 a \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0435\u0440\u043d\u044b\u0445, b \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435, \u043d\u043e \u0441\u0442\u043e\u044f\u0442 \u043d\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0445.<\/p>\n<p>  <\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440<\/h3>\n<p>  <\/p>\n<p><strong>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/strong><br \/>  BACKTO1985<br \/>  3<br \/>  BACKTO1958<br \/>  BACKON1985<br \/>  TOYEAR1985<br \/>  <strong>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/strong><br \/>  8 2<br \/>  8 1<br \/>  4 3<\/p>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u043a\u0430 \u043d\u0435 \u0438\u0437 \u0441\u043b\u043e\u0436\u043d\u044b\u0445. \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u043e. \u041e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043f\u0430\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043e\u0432\u043f\u0430\u043b\u0430 \u2014 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c <strong>a<\/strong>, \u0438\u043d\u0430\u0447\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043a\u043e\u0434\u0435 (\u0438\u0449\u0435\u043c \u0437\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u0432 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438-\u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438). \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c <strong>b<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 Ruby, (\u043a\u043e\u0434 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442, \u0447\u0442\u043e \u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0443\u043d\u0434\u0430):<\/p>\n<p>  <\/p>\n<pre><code class=\"ruby\">input = STDIN.read.split(&quot;\\n&quot;)  code = input[0] tries_count = (input[1]).to_i tries = input[2,tries_count]  #puts code #puts tries_count #puts tries  code_a = code.split(\/\/) code_h = Hash[code_a.map {|x| [x, 1]}] #puts code_h tries.each do |t|   total_right = 0   missed_right = 0   t.each_char.with_index do |c, i|     if c == code[i]       total_right += 1     else       missed_right += 1 if code_h.has_key?(c)     end   end   puts &quot;#{total_right} #{missed_right}&quot; end<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a\u043e\u0432\u043e \u0436\u0435 \u0431\u044b\u043b\u043e \u043c\u043e\u0451 \u043d\u0435\u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432 \u043e\u0442\u0432\u0435\u0442 <strong>Time Limit Exceeded<\/strong>. \u041f\u0440\u0438\u0442\u043e\u043c, \u0441\u0430\u043c\u043e\u0435 \u0437\u0430\u0431\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u0442\u043e\u043c, \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u0440\u0430\u0443\u043d\u0434\u0430, \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043a\u043e\u0434. \u0418 \u043e\u043d \u043f\u0440\u043e\u0448\u0451\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443! \u0422\u043e \u0435\u0441\u0442\u044c, \u0441\u043a\u043e\u0440\u0435\u0439 \u0432\u0441\u0435\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u043d\u0438 \u043b\u0438\u043c\u0438\u0442\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u042f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0435 (\u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e) \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 C++:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">#include &lt;iostream&gt; #include &lt;map&gt;  int main() {    std::string code;   std::getline(std::cin, code);    std::string s_tries_count;   std::getline(std::cin, s_tries_count);   int tries_count = std::stoi(s_tries_count);   std::string tries[tries_count];   for(int i = 0; i &lt; tries_count; i++) {     std::getline(std::cin, tries[i]);   };    std::map&lt;std::string, int&gt; code_h;   for (char&amp; c : code) {     std::string s(c, 1);     code_h.insert(std::make_pair(s, 1));   }    for (std::string t : tries) {     int total_right = 0;     int missed_right = 0;     for (int i = 0; i &lt; t.length(); i++) {       if (t[i] == code[i]) {         total_right++;       } else {         std::string s(t[i], 1);         if (code_h.count(s)) {           missed_right++;         }       }      }     std::cout &lt;&lt; total_right &lt;&lt; &quot; &quot; &lt;&lt; missed_right &lt;&lt; std::endl;   }    return 0; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430, \u043a\u043e\u0434 \u0441\u043a\u0432\u0435\u0440\u0435\u043d, \u043d\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u0437-\u0437\u0430 \u044d\u0442\u0438\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u0438\u0437 <code>char<\/code> \u0432 <code>string<\/code>, \u043d\u043e \u044f \u0441\u0442\u0430\u0432\u0438\u043b \u0446\u0435\u043b\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 Ruby.<br \/>  &lt;\u041a\u0430\u043f\u0438\u0442\u0430\u043d\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c&gt;<br \/>  \u0422\u0430\u043a \u0432\u043e\u0442, \u043a\u043e\u0434 \u043d\u0430 C++ \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u043d\u0430 Ruby!<br \/>  &lt;\/\u041a\u0430\u043f\u0438\u0442\u0430\u043d\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c&gt;<\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u043a\u043e\u0440\u0435 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0440\u0430\u0443\u043d\u0434\u0430 \u0441\u0442\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0430\u0431\u043e\u0440\u044b \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u044f \u0441\u043a\u0430\u0447\u0430\u043b \u0442\u0435\u0441\u0442 \u211617, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 <strong>Time Limit Exceeded<\/strong>, \u0432 \u043d\u0451\u043c \u0431\u044b\u043b\u043e \u043a\u043e\u0434\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e OPYB4R7JNHVGEKC3I6285TU90ASMFXLZW1D \u0438 94432 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<h3>\u0417\u0430\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>  <\/p>\n<p>C++ \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u043d\u0430 g++ 4.8.4<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">g++ -x c++ -std=c++0x -O2 -o .\/solution1.a solutions\/solution1.cpp &amp;&amp; echo &quot;solution1.cpp (with diff):&quot; &amp;&amp; time diff &lt;( cat data\/output.txt ) &lt;( .\/solution1.a &lt; data\/input.txt ) &amp;&amp; echo &quot;solution1.cpp (&gt; dev\/null):&quot; &amp;&amp; time .\/solution1.a &lt; data\/input.txt &gt; \/dev\/null<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code>solution1.cpp (with diff):  real  0m0.411s user  0m0.341s sys 0m0.171s solution1.cpp (&gt; dev\/null):  real  0m0.347s user  0m0.319s sys 0m0.028s<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f Ruby 1.9.3<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">echo &quot;Ruby base solution (with diff):&quot; &amp;&amp; time diff &lt;( cat data\/output.txt ) &lt;( ruby solutions\/solution1.rb &lt; data\/input.txt ) &amp;&amp; &gt; \/dev\/null echo &quot;Ruby base solution (&gt; dev\/null):&quot; &amp;&amp; time ruby solutions\/solution1.rb &lt; data\/input.txt &gt; \/dev\/null<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code>Ruby base solution (with diff):  real  0m1.422s user  0m1.416s sys 0m0.009s Ruby base solution (&gt; dev\/null):  real  0m1.413s user  0m1.404s sys 0m0.008s<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0442\u0440\u0451\u0445\u043a\u0440\u0430\u0442\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u0440\u0438, \u0432 \u0446\u0435\u043b\u043e\u043c, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435.<br \/>  \u0412\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 (\u0432\u0445\u043e\u0434\u043d\u044b\u0435\/\u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0442\u0435\u0441\u0442\u0443 \u211617, \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 cpp \u0438 rb, \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u0437\u0430\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u0442\u043e\u043b\u044c\u043a\u043e *nix)) \u0437\u0430\u043f\u0438\u043b\u0438\u043b <a href=\"https:\/\/github.com\/augur\/2016-RCC-Warmup-Task1\">\u0441\u044e\u0434\u0430 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u044f \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u043b \u0442\u0435\u0433 <em>\u041a\u0430\u043f\u0438\u0442\u0430\u043d\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c<\/em>, \u043d\u043e \u0432\u043e\u0442 \u0432\u044b\u0432\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0432\u044b\u043d\u043e\u0448\u0443 \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u0430\u044f \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0438\u0440\u0430, \u0433\u0434\u0435 <em>\u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u044f\u0437\u044b\u043a\u0443 \u2014 \u0441\u0432\u043e\u0438 \u0437\u0430\u0434\u0430\u0447\u0438<\/em><\/li>\n<li><em>\u041e\u0434\u043d\u0430\u043a\u043e<\/em>, \u0432 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u044d\u0442\u0443 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e\u0439<\/li>\n<li>\u0412 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u0435, \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u0441\u043b\u043e\u0432\u043d\u043e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0430 \u0432\u044b\u0431\u043e\u0440, \u043c\u043e\u043b, \u0431\u0435\u0440\u0438 \u043b\u044e\u0431\u043e\u0439, \u0434\u0435\u043b\u043e \u0432\u043a\u0443\u0441\u0430; \u043d\u0430 \u0434\u0435\u043b\u0435, \u043e\u0434\u043d\u0438 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u0434\u0440\u0443\u0433\u0438\u0445<\/li>\n<li>\u0414\u0430, \u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e, \u0443 Ruby \u0435\u0441\u0442\u044c \u0432\u044b\u0438\u0433\u0440\u044b\u0448 \u0432 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0443\u0436\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e<\/li>\n<li><em>\u041d\u043e<\/em>, \u0431\u044c\u044e\u0441\u044c \u043e\u0431 \u0437\u0430\u043a\u043b\u0430\u0434, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0442\u043d\u044b\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043f\u043e Ruby \u0438 C++, \u043f\u0435\u0440\u0432\u044b\u0439, \u0435\u0441\u043b\u0438 \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u043a\u043e\u0434 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044f \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u0440\u0430\u043c\u043a\u0438 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b, \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u0435\u043b\u0430\u044e\u0442 \u043e\u0434\u043d\u0438 \u044f\u0437\u044b\u043a\u0438 &quot;\u0440\u0430\u0432\u043d\u0435\u0435&quot; \u0434\u0440\u0443\u0433\u0438\u0445, \u0445\u043e\u0442\u044f, \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0446\u0435\u043b\u0438 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b <em>\u043d\u0435\u043c\u043d\u043e\u0433\u043e<\/em> \u0434\u0440\u0443\u0433\u0438\u0435 <\/li>\n<li>\u0427\u0442\u043e \u0431\u044b \u044f \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043a\u043e\u043b\u043e\u043a\u043e\u043b\u044c\u043d\u0438? \u041e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0439 (<strong>Big O<\/strong>)! \u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 <strong>n<\/strong>. \u0418, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0442\u0435\u0442 \u043e\u0449\u0443\u0442\u0438\u043c\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043b\u0438\u043d\u0435\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e <nobr><strong>O(n log(n))<\/strong><\/nobr>, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0442\u0431\u0440\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0442\u044c<\/li>\n<li>\u0418 \u0434\u0430, \u043d\u0443\u0436\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0445\u0438\u0442\u0440\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u0439 \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0435 <strong>O(100500)<\/strong><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u043c\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0442\u0435\u043c\u0435.<\/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=\"https:\/\/habrahabr.ru\/post\/282431\/\"> https:\/\/habrahabr.ru\/post\/282431\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/48d\/ad8\/57e\/48dad857e62f4bea90438d3849b62798.png\"\/>  <\/p>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0425\u0430\u0431\u0440! \u0412\u043e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043e\u0441\u0442 \u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u043c <strong>Russian Code Cup 2016<\/strong>, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435, \u043c\u043e\u0438 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u043d\u044f \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u0440\u0430\u0437\u043e\u0433\u0440\u0435\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0443\u043d\u0434\u0430.<\/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-279061","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279061","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=279061"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279061\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}