{"id":205,"date":"2014-10-22T15:01:18","date_gmt":"2014-10-22T12:01:18","guid":{"rendered":"http:\/\/blog.leodev.ru\/?p=205"},"modified":"2019-06-14T12:27:32","modified_gmt":"2019-06-14T09:27:32","slug":"fail-%d0%b6%d0%b8%d0%b7%d0%bd%d0%b8-%d0%b8%d0%bb%d0%b8-%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b1%d0%b5%d0%b7-%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-%d0%b2-java","status":"publish","type":"post","link":"https:\/\/leodev.ru\/blog\/news\/fail-%d0%b6%d0%b8%d0%b7%d0%bd%d0%b8-%d0%b8%d0%bb%d0%b8-%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b1%d0%b5%d0%b7-%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-%d0%b2-java\/","title":{"rendered":"Fail \u0436\u0438\u0437\u043d\u0438 \u0438\u043b\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432 java"},"content":{"rendered":"<p>\u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0441\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043f\u043e &#171;\u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c&#187; \u0430 \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0434\u0430\u043b\u0435\u043a&#8230;<br \/>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442\u043a\u0430\u0437 &gt;&lt;<br \/><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<\/strong> \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<br \/><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<p>\u00a0<\/p>\n\n\n<pre class=\"wp-block-code\"><code>    static int divide(int a, int b) {\n        if (a == b) return 1;\n        if (a &lt; b) return 0;\n        int d = 1;\n        int c = a - b;\n        while (c > 0) {\n            c -= b;\n            d++;\n        }\n        return d;\n    }<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0435\u0439 \u043e\u0442 alx\nstatic int div(int a, int b) {\n    if (a - b > 0) {\n        return 1 + div(a - b, b);\n    } else if (a == b) {\n        return 1;\n    } else {\n        return 0;\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0441\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043f\u043e &#171;\u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c&#187; \u0430 \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0434\u0430\u043b\u0435\u043a&#8230;\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442\u043a\u0430\u0437 &gt;&lt;\u0417\u0430\u0434\u0430\u0447\u0430: \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u00a0<\/p>\n","protected":false},"author":1,"featured_media":216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[51,53,52],"class_list":["post-205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-divide","tag-53","tag-52"],"_links":{"self":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":5,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions\/986"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/media\/216"}],"wp:attachment":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}