{"id":2808,"date":"2026-10-07T13:58:54","date_gmt":"2026-10-07T10:58:54","guid":{"rendered":"http:\/\/test.school89.net\/?p=2808"},"modified":"2026-10-07T13:58:55","modified_gmt":"2026-10-07T10:58:55","slug":"21244","status":"publish","type":"post","link":"http:\/\/test.school89.net\/?p=2808","title":{"rendered":"21244"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\"><em># \u2116 21244 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c: \u0421\u0440\u0435\u0434\u043d\u0438\u0439)<br><\/em><em>#<br><\/em><em># (\u041e. \u041b\u044b\u0441\u0435\u043d\u043a\u043e\u0432) \u041d\u0430 \u0432\u0445\u043e\u0434 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u043e\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e N. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u0442\u0440\u043e\u0438\u0442 \u043f\u043e \u043d\u0435\u043c\u0443 \u043d\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e R \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c<br><\/em><em># \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<br><\/em><em># 1. \u0421\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0447\u0435\u0442\u0432\u0435\u0440\u0438\u0447\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0447\u0438\u0441\u043b\u0430 N.<br><\/em><em># 2. \u0414\u0430\u043b\u0435\u0435 \u044d\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0443:<br><\/em><em># \u0430) \u0435\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0447\u0435\u0442\u0432\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u0440\u0430\u0442\u043d\u0430 4, \u0442\u043e  \u0432\u0441\u0435 \u043d\u0443\u043b\u0438 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 3, \u0430 \u0432\u0441\u0435 3 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043d\u0443\u043b\u0438,<br><\/em><em># \u043f\u043e\u0441\u043b\u0435 \u043a \u0447\u0438\u0441\u043b\u0443 \u043f\u0440\u0438\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f 21 \u0441\u043f\u0440\u0430\u0432\u0430;<br><\/em><em># \u0431) \u0435\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0447\u0435\u0442\u0432\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435 \u043a\u0440\u0430\u0442\u043d\u0430 4, \u0442\u043e \u043a \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043f\u0440\u0438\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f 22 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0440\u0430\u0437\u0440\u044f\u0434\u0430,<br><\/em><em># \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430   11 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0440\u0430\u0437\u0440\u044f\u0434\u044b \u043d\u0443\u043c\u0435\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 1.<br><\/em><em># \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0442\u0432\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0438\u0441\u043a\u043e\u043c\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 R.<br><\/em><em># \u0423\u043a\u0430\u0436\u0438\u0442\u0435  \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e N, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e R, \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u044e\u0449\u0435\u0435<br><\/em><em># 200.<br><\/em><em># \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0437\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f.<br><\/em><em><br><\/em>mas =[]<br><br>for n in range (10000):<br>    nach=n<br>    four_zap=\"\"<br>    while n&gt;0:<br>        ostatok=n%4<br>        n=n\/\/4<br>        four_zap+=str(ostatok)<br>    four_zap=four_zap[::-1]<br><br>    mass=[]<br>    for index in range (0, len(four_zap)):<br>        mass.append(int(four_zap[index]))<br><br>    sum_of_numbers=sum(mass)<br><br>    if sum_of_numbers %4 == 0:<br>        zero_for_x = four_zap.replace('0','x')<br>        three_for_zero = zero_for_x.replace('3','0')<br>        x_for_3 = three_for_zero.replace(\"x\",'3')<br>        four_zap = x_for_3+'21'<br><br>    else:<br>        four_zap= '11'+four_zap[2:]+'22'<br><br>    r=int(four_zap,4)<br><br>    if r &gt; 200:<br>        mas.append(r)<br>    if r == 201:<br>        print(nach)<br><br>print(min(mas))<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p># \u2116 21244 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c: \u0421\u0440\u0435\u0434\u043d\u0438\u0439)## (\u041e. \u041b\u044b\u0441\u0435\u043d\u043a\u043e\u0432) \u041d\u0430 \u0432\u0445\u043e\u0434 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u043e\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e N. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u0442\u0440\u043e\u0438\u0442 \u043f\u043e \u043d\u0435\u043c\u0443 \u043d\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e R \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c# \u043e\u0431\u0440\u0430\u0437\u043e\u043c.# 1. \u0421\u0442\u0440\u043e\u0438\u0442\u0441\u044f &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-2808","post","type-post","status-publish","format-standard","hentry","category-10a"],"_links":{"self":[{"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/posts\/2808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/test.school89.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2808"}],"version-history":[{"count":1,"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/posts\/2808\/revisions"}],"predecessor-version":[{"id":2809,"href":"http:\/\/test.school89.net\/index.php?rest_route=\/wp\/v2\/posts\/2808\/revisions\/2809"}],"wp:attachment":[{"href":"http:\/\/test.school89.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/test.school89.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2808"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/test.school89.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}