{"id":220016,"date":"2023-01-27T13:25:00","date_gmt":"2023-01-27T10:25:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=220016"},"modified":"2023-01-29T11:41:50","modified_gmt":"2023-01-29T08:41:50","slug":"kak-reshit-matematicheskuju-golovolomku-s-pomoshhju-skripta-powershell-s-algoritmom-bruteforce","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/ru\/kak-reshit-matematicheskuju-golovolomku-s-pomoshhju-skripta-powershell-s-algoritmom-bruteforce\/","title":{"rendered":"\u041a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 PowerShell \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c Bruteforce?"},"content":{"rendered":"<p>\u042d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0430:<\/p>\n<p><a href=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-155967-61e571f21a75e.png\" data-rel=\"lightbox\"><img decoding=\"async\" class=\"SDStudio-light-box-enable SDStudio-editor-tools-md-imp\" src=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-155967-61e571f21a75e.png\" alt=\"\u041a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 PowerShell \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c Bruteforce?\"><\/a><\/p>\n<p>X, Y \u0438 Z \u2014 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 0 \u0434\u043e 9. \u0422\u0430\u043a \u0447\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435? \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 <a href=\"https:\/\/helloacm.com\/learning-powershell-recursive-fibonacci-computation\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">PowerShell<\/a> \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442 1 \u0434\u043e 9 \u0434\u043b\u044f X, Y \u0438 Z \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<pre><code>for ($X = 1; $X -le 9; $X += 1) {\/\/ X can't be zero\n    for ($Y = 1; $Y -le 9; $Y += 1) { \/\/ Y can't be zero either.\n        for ($Z = 0; $Z -le 9; $Z += 1) {\n            $XY = $X * 10 + $Y;\n            $YZZ = $Y * 100 + $Z * 10 + $Z\n            if ($XY + $XY -eq $YZZ) { \/\/ XY + XY = YZZ\n                Write-Host $XY + $XY = $YZZ\n            }\n        }\n    }\n}<\/code><\/pre>\n<p>\u042d\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442: X = 6, Y = 1 \u0438 Z = 2. \u0412\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c <a href=\"https:\/\/wordpress.mediadoma.com\/ru\/kak-zashhitit-svoj-login-wordpress-ot-atak-gruboj-sily-prostoj-podhod\/\" title=\"\u0433\u0440\u0443\u0431\u043e\u0439 \u0441\u0438\u043b\u044b\">\u0433\u0440\u0443\u0431\u043e\u0439 \u0441\u0438\u043b\u044b<\/a> \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u044d\u0442\u0438\u0445 3 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438:<\/p>\n<ul>\n<li>X \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d 5, \u0438\u043d\u0430\u0447\u0435 \u0441\u0443\u043c\u043c\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0435\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0439.<\/li>\n<li>Y \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e 1, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0432\u0435 \u0446\u0438\u0444\u0440\u044b 99 + 99 = 198.<\/li>\n<li>Y = 1, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 Z = 2<\/li>\n<li>\u0438 \u0425 = 6<\/li>\n<\/ul>\n<p>\u0412\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f: <a href=\"https:\/\/justyy.com\/archives\/2047\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0435\u043b\u044b\u0439 + \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0435\u043b\u044b\u0439 = \u0431\u0435\u043b\u044b\u0439 \u0436\u0438\u0440<\/a><\/p>\n<p><a href=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-155967-61e571f314655.jpg\" data-rel=\"lightbox\"><img decoding=\"async\" class=\"SDStudio-light-box-enable SDStudio-editor-tools-md-imp\" src=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-155967-61e571f314655.jpg\" alt=\"\u041a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 PowerShell \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c Bruteforce?\"><\/a><\/p>\n<p>powershell-\u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0437\u0430\u043f\u0438\u0441\u0438:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/helloacm.com\" class=\"external external_icon\">helloacm.com<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 PowerShell \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c Bruteforce?<\/p>\n","protected":false},"author":1,"featured_media":224625,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[900,1061,921,726,850],"tags":[1171],"class_list":["post-220016","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kod-2","category-kompjuter","category-drugoj","category-rozrobnyk-ru","category-uchebniki-ru","tag-affiai-ru"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/posts\/220016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/comments?post=220016"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/posts\/220016\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/media\/224625"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/media?parent=220016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/categories?post=220016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/ru\/wp-json\/wp\/v2\/tags?post=220016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}