{"id":337414,"date":"2022-08-23T15:00:04","date_gmt":"2022-08-23T15:00:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337414"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337414","title":{"rendered":"<span>\u0420\u0430\u0437\u0431\u043e\u0440 \u0442\u0435\u0441\u0442\u0430 \u043e\u0442 MixBytes<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f MixBytes <a href=\"https:\/\/t.me\/cyber_announcements\/149\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0430 \u043a\u043e\u043d\u043a\u0443\u0440\u0441<\/a>, \u043f\u0440\u043e\u0439\u0434\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043d\u0430 \u0438\u0445 \u043a\u0443\u0440\u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0430 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432<br \/>\u0417\u0434\u0435\u0441\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0441\u0432\u043e\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>1-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d7e\/2ac\/4c5\/d7e2ac4c58dc189fed44bbe10360906e.png\" width=\"1924\" height=\"1516\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d7e\/2ac\/4c5\/d7e2ac4c58dc189fed44bbe10360906e.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u042f \u043d\u0435 \u043f\u0440\u043e\u0444\u0438 \u0432 \u043f\u0438\u0442\u043e\u043d\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437 \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0443\u0442 \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0431\u0440\u043e\u0441\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430: <a href=\"https:\/\/dev-gang.ru\/article\/python-kak-ispolzovat-metod-randomseed-1n9kvinjt9\/\" rel=\"noopener noreferrer nofollow\">random.seed() \u043f\u0440\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a>.<\/p>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435\\\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0435.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<br \/>\u041f\u043e\u0447\u0438\u0442\u0430\u0432 \u043f\u0440\u043e <a href=\"https:\/\/python-scripts.com\/range\" rel=\"noopener noreferrer nofollow\">range<\/a> \u0438 <a href=\"https:\/\/python-scripts.com\/random\" rel=\"noopener noreferrer nofollow\">random \u0432 \u043f\u0438\u0442\u043e\u043d\u0435<\/a>, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u043e: \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e (1e12)-1. \u0422.\u0435 \u0432\u0441\u0435\u0433\u043e 1e12 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432<\/p>\n<p>\u041a\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 1e12 &#8212; <a href=\"https:\/\/stackoverflow.com\/questions\/40390129\/what-does-e-in-1e-5-in-python-language-mean-and-what-is-the-name-of-this-not\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0433\u0443\u0433\u043b\u0438\u0442\u0441\u044f<\/a><\/p>\n<p>\u0427\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u0430\u0432\u043d\u043e \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c\u0438 \u0442\u0435\u043e\u0440\u0438\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u043b\u043e \u043d\u0435 \u0438\u043c\u0435\u043b. \u041c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0442\u0443 \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445: \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043e \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 2-\u0436\u0434\u044b \u0432 \u0441\u0443\u0442\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0415\u0441\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u0441\u044f &#8212; \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u0442.<br \/>\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u044b \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u0440\u0430\u0441\u0447\u0451\u0442 <a href=\"http:\/\/mathhelpplanet.com\/static.php?p=zavisimye-i-nezavisimye-sluchainye-sobytiya\" rel=\"noopener noreferrer nofollow\">\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a>&#8230; \u041d\u043e, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443.<br \/>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c <em>p<\/em> \u0432\u044b\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0432\u044b\u0448\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0435 = 1\/1e12<br \/>\u0421 \u0443\u0447\u0451\u0442\u043e\u043c \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e random.seed(), \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 10 \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (\u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0435 \u0438\u043c\u0435\u043d\u043d\u043e) = 100% (\u0442.\u0435. 1)<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: <em>p = <\/em>1\/1e12 * 1 = 1\/1e12<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435\\\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0441 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c random.seed() \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c\u0438: \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0448\u0430\u0433\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0447\u0438\u0441\u043b\u043e (\u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 1\/1e12), \u0447\u0442\u043e \u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c \u0448\u0430\u0433\u0435. \u0422.\u0435. \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 1\/1e12 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f 10 \u0440\u0430\u0437 \u0438 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 (10)<\/p>\n<p>\u0422.\u0435. \u0444\u043e\u0440\u043c\u0443\u043b\u0430:  <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"p = ((1\/1e12) * 10)\/10\" alt=\"p = ((1\/1e12) * 10)\/10\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1a1\/f09\/1cf\/1a1f091cf4a133bdbbd5e3086e63e5cc.svg\" width=\"193\" height=\"22\"\/><br \/>\u0422.\u0435. \u0438\u0442\u043e\u0433: 1\/1e12<\/p>\n<p>\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/www.online-python.com\" rel=\"noopener noreferrer nofollow\">\u043e\u043d\u043b\u0430\u0439\u043d \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430<\/a> (\u0433\u0443\u0433\u043b\u044f\u0442\u0441\u044f \u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c) \u0435\u0449\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439.<br \/>\u0427\u0442\u043e\u0431 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0434\u043e\u043c, \u0447\u0443\u0442\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0432:<\/p>\n<pre><code class=\"python\">import random  def generate():     random.seed(12345)     print(\"res: \", random.choice(list(range(int(1e12)))))      generate()<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<br \/><em>** Process exited due to resource limitations **<\/em><\/p>\n<p>\u041d\u043e, \u0438\u0433\u0440\u0430\u044f \u0441\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u044f\u043c\u0438 1e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>1e1 = 6<br \/>1e2 = 53<br \/>1e3 = 426<br \/>1e4 = 6825<\/p>\n<p>\u0418 \u0442.\u0434. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434: \u0435\u0441\u043b\u0438 \u0431\u044b \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u0440\u0438 1e12 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u0431\u044b = 0.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: \u0443 \u0437\u0430\u0434\u0430\u0447\u0438 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 2 \u043e\u0442\u0432\u0435\u0442\u0430, \u0441\u043c\u043e\u0442\u0440\u044f \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e: 1\/1e12 \u0438 0<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 2-\u0445 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0441\u044f.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>2-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/92a\/171\/a29\/92a171a29ccc373acba8b3308fae9682.png\" width=\"1562\" height=\"1234\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/92a\/171\/a29\/92a171a29ccc373acba8b3308fae9682.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u041d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e: \u0447\u0442\u043e \u0442\u0443\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c&#8230; <strong>sqrt()<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u044f. <strong>^<\/strong> &#8212; \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c.<br \/>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u043a\u043e\u0434 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 &#8212; \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0421\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044f \u0442\u0443 \u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary> 3-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5f1\/6c0\/ee7\/5f16c0ee72f60581a58afc4b46b53a0b.png\" width=\"1368\" height=\"1556\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5f1\/6c0\/ee7\/5f16c0ee72f60581a58afc4b46b53a0b.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>unsigned &#8212; \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u043e\u0432\u043e\u0435. \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"a1 = 1234 \/ 123 = 10\" alt=\"a1 = 1234 \/ 123 = 10\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad6\/369\/5df\/ad63695df56528d138bebfeadac4d335.svg\" width=\"171\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"a2 = 1234 \/ 12 = 102\" alt=\"a2 = 1234 \/ 12 = 102\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fd8\/21b\/db3\/fd821bdb3b1bc25d7147e3788af68054.svg\" width=\"171\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"a1 = 10 *  123 = 1230\" alt=\"a1 = 10 *  123 = 1230\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/915\/ac0\/240\/915ac02406433760a79e295f63ba1614.svg\" width=\"180\" height=\"17\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"a2 = 102 * 12 = 1224\" alt=\"a2 = 102 * 12 = 1224\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e44\/a3a\/1d4\/e44a3a1d475d065f2a42e74d8e13abd7.svg\" width=\"180\" height=\"17\"\/><\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: 4 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>4-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/90e\/864\/1c8\/90e8641c8f65f6231cc6684398ee5aee.png\" width=\"1376\" height=\"1124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/90e\/864\/1c8\/90e8641c8f65f6231cc6684398ee5aee.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u043b. \u041d\u043e, \u0445\u043e\u0434 \u043c\u044b\u0441\u043b\u0435\u0439 \u0431\u044b\u043b \u0432\u0435\u0440\u043d\u044b\u0439.<\/p>\n<p>26 \u0431\u0443\u043a\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. \u0417\u043d\u0430\u0447\u0438\u0442, \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0438 \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 26 *2 = 52. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0446\u0438\u0444\u0440\u044b (0&#8230;9). \u0412\u0441\u0435\u0433\u043e 62<br \/>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u044d\u0442\u0438 2 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<p>12345678<br \/>yo<\/p>\n<p>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439, \u0433\u0434\u0435 yo \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445? \u0414\u0432\u0438\u0433\u0430\u044f yo \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0438\u0445 7.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u0437 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f 6 (\u0442.\u043a. yo &#8212; \u044d\u0442\u043e 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430) &#8212; \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"62^6\" alt=\"62^6\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c8f\/c0d\/615\/c8fc0d615cb615fe25bb565615ec5c21.svg\" width=\"29\" height=\"21\"\/><\/p>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e 7 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 yo \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438\u0437 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"62^6*7\" alt=\"62^6*7\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1ce\/65d\/079\/1ce65d079d03e0b94a17c3147c930850.svg\" width=\"57\" height=\"21\"\/><\/p>\n<p>\u0422.\u0435. \u044d\u0442\u043e 5 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 &#8212; \u043a\u0430\u043a \u0440\u0430\u0437 \u043c\u043d\u043e\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439. \u041d\u043e, \u0442\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0430. \u0412\u0435\u0440\u043d\u044b\u043c \u0441\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u043e\u0442\u0432\u0435\u0442 &#8212; 6 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"62^6*7-1\" alt=\"62^6*7-1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/84b\/ce4\/3f1\/84bce43f1a1716074fda2845e8bbf6c8.svg\" width=\"91\" height=\"22\"\/><\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u043b\u0438 62^6*7-1 \u0438 \u0445\u0435\u0448 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b, \u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u0435\u0449\u0451 \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u043d\u044b \u0432\u0435\u0440\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c\u0438, \u0447\u0442\u043e \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0435\u0441\u043b\u0438 \u043d\u0430 1-\u043c \u0448\u0430\u0433\u0435 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u043d\u044b \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f yo******, \u0442\u043e \u043d\u0430 3-\u043c (**yo****) \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 yoyo****, \u0442.\u043a. \u043e\u043d \u0443\u0436\u0435 \u0431\u044b\u043b \u043d\u0430 1-\u043c \u0448\u0430\u0433\u0435. \u0410\u0432\u0442\u043e\u0440\u044b \u0442\u0435\u0441\u0442\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u043e\u0441\u044c.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>5-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/40a\/58c\/ff4\/40a58cff4a7fd2dbf9a3266d8ebbd190.png\" width=\"650\" height=\"1350\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/40a\/58c\/ff4\/40a58cff4a7fd2dbf9a3266d8ebbd190.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(0) = 0\" alt=\"x(0) = 0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c46\/70c\/769\/c4670c769834e8a1792ca56e420b06a0.svg\" width=\"72\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(1) = 1\" alt=\"x(1) = 1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dcf\/c1d\/5bb\/dcfc1d5bbd01e7bc5876b41d51bf142b.svg\" width=\"72\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(2) = x(1) + x(0) + 3 = 4\" alt=\"x(2) = x(1) + x(0) + 3 = 4\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3e5\/462\/bc5\/3e5462bc549609687ffd1e3b653e95db.svg\" width=\"229\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(3) = x(2) + x(1) + 3 = 8\" alt=\"x(3) = x(2) + x(1) + 3 = 8\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5c3\/73a\/09a\/5c373a09a2cf76032afbd7ca19520e62.svg\" width=\"229\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(4) = x(3) + x(2) + 3 = 8 + 4 + 3 = 15\" alt=\"x(4) = x(3) + x(2) + 3 = 8 + 4 + 3 = 15\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/54c\/cfd\/aac\/54ccfdaacf4c2f02d272f74924fd6a9a.svg\" width=\"343\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(5) = x(4) + x(3) + 3 = 15 + 8 + 3 = 26\" alt=\"x(5) = x(4) + x(3) + 3 = 15 + 8 + 3 = 26\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ef5\/db4\/00c\/ef5db400c6eeb8a9a6079c3cccfa2492.svg\" width=\"352\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(6) = x(5) + x(4) + 3 = 26 + 15 + 3 = 44\" alt=\"x(6) = x(5) + x(4) + 3 = 26 + 15 + 3 = 44\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c20\/450\/483\/c20450483218b6603efcbf7f9a51dae0.svg\" width=\"362\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(7) = x(6) + x(5) + 3 = 44 + 26 + 3 = 73\" alt=\"x(7) = x(6) + x(5) + 3 = 44 + 26 + 3 = 73\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/812\/9ca\/ec0\/8129caec0544a5aa2fd2f0ea7471f2c9.svg\" width=\"362\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(8) = x(7) + x(6) + 3 = 73 + 44 + 3 = 120\" alt=\"x(8) = x(7) + x(6) + 3 = 73 + 44 + 3 = 120\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/233\/cbe\/3a6\/233cbe3a630357e2583bc60916708786.svg\" width=\"372\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x(9) = x(8) + x(7) + 3 = 120 + 73 + 3 = 196\" alt=\"x(9) = x(8) + x(7) + 3 = 120 + 73 + 3 = 196\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/682\/162\/7d8\/6821627d896b731c8d8b900b7e29e7f6.svg\" width=\"382\" height=\"22\"\/><\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: \u043e\u0442\u0432\u0435\u0442 &#8212; 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>6-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/47f\/70e\/c61\/47f70ec61e1020a74af2dc68cee37d4f.png\" width=\"1402\" height=\"1660\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/47f\/70e\/c61\/47f70ec61e1020a74af2dc68cee37d4f.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0430\u043c\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0432\u044b\u0437\u0432\u0430\u043b\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0410 \u0432\u043e\u0442 \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0441\u0445\u043e\u0434\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e. \u042f\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0434\u043d\u043e: \u043e\u0442\u0432\u0435\u0442\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: 5-7. \u0422.\u043a. \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0434\u0430\u0436\u0435 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c. \u0417\u043d\u0430\u0447\u0438\u0442, \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u0447\u043d\u043e \u0432\u043b\u0435\u0437\u0443\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c. \u0418 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u0442\u0440\u043e\u043a, \u0438\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0434\u0440\u044f\u0434. \u0410 \u043d\u0435 \u0432\u0441\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/p>\n<p>\u0418\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0435\u0448 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438: 12345\\n<br \/>\u041f\u0443\u0441\u0442\u044c \u0431\u043b\u043e\u043a N = 1<br \/>\u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0445\u0435\u0448 \u043e\u0442 1: h1 = h(1)<br \/>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0445\u0435\u0448: h2 = (h(1)+&#8217;2&#8242;)<br \/>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0445\u0435\u0448: h6 = (h(5)+&#8217;\\n&#8217;)<br \/>h6 \u0431\u0443\u0434\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0445\u0435\u0448\u0435\u043c \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e. \u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0430\u0441\u044c \u0425 \u0440\u0430\u0437 &#8212; \u0437\u043d\u0430\u0447\u0438\u0442, \u0425 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u0445\u0435\u0448 h6. \u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0425 &#8212; \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c (\u0442.\u0435. \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u043e\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439), \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0433\u0434\u0435 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0435\u0448 \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0441\u044f Y \u0440\u0430\u0437, \u0433\u0434\u0435 Y > \u0425 . \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u043f\u0438\u0448\u0435\u043c Y. \u0418 \u0442.\u0434. \u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 7 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/div>\n<\/details>\n<p> <\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>8-\u0435  \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fdb\/733\/752\/fdb733752b5c2d2e1d9ea0398e010097.png\" width=\"1338\" height=\"788\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fdb\/733\/752\/fdb733752b5c2d2e1d9ea0398e010097.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 APR \u0438 APY. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043d\u0430\u0439\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0448\u0451\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u043e, \u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e APY &#8212; \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u044b. \u0422.\u0435. \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 (\u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u043b\u044f \u041a\u043e\u043b\u0438 &#8212; \u043c\u0435\u0441\u044f\u0446, \u0434\u043b\u044f \u041f\u0435\u0442\u0438 &#8212; \u0434\u0435\u043d\u044c), \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0438\u043e\u0434<\/p>\n<p>\u0421 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043c\u0443\u0447\u0430\u0435\u0448\u044c\u0441\u044f. \u041d\u0430\u0431\u0440\u043e\u0441\u0430\u0432 \u043a\u043e\u0434 \u043d\u0430 Solidity \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u0435\u0433\u043e \u0432 Remix \u0434\u043b\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0438\u0441\u0435\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10000000000). \u041f\u043e\u043b\u0443\u0447\u0438\u043c 4-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<pre><code class=\"cpp\">contract dop {      function monthly(uint256 num) public pure returns (uint256) {         for (uint i = 0; i &lt; 12; i++)         {             num = num + (num*2)\/120; \/\/ 2\/120 \u044d\u0442\u043e 20% \u0438 12 \u043c\u0435\u0441\u044f\u0446\u0435\u0432         }         return num;     }      function daily(uint256 num) public pure returns (uint256) {         for (uint i = 0; i &lt; 360; i++)         {             num = num + (num*20)\/36000; \/\/ 20% \u0438 360 \u0434\u043d\u0435\u0439         }         return num;     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>9-\u0435  \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7d4\/796\/b58\/7d4796b586d0652d678d98a144c26560.png\" width=\"1396\" height=\"306\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7d4\/796\/b58\/7d4796b586d0652d678d98a144c26560.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421 \u044d\u0442\u0438\u043c \u044f \u043f\u0440\u043e\u0432\u043e\u0437\u0438\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e. \u041f\u0440\u0438\u0448\u0451\u043b 1 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442: \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0433\u043e\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0432\u0435\u0442, \u0432 \u043b\u044e\u0431\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0438\u0434\u0442\u0438 \u0434\u043e \u0432\u0430\u0433\u043e\u043d\u0430, \u0433\u0434\u0435 \u0441\u0432\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d, \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043b\u0438 \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c (\u0442.\u0435. \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0433\u043e\u043d\u043e\u0432 \u043f\u0440\u043e\u0448\u0451\u043b). \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043f\u043e\u043a\u0430 \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c \u0441\u0432\u0435\u0442 \u043d\u0435 \u043f\u043e\u0433\u0430\u0441\u043d\u0435\u0442.<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0410 \u0433\u0434\u0435 \u0436\u0435 7-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435?<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0410\u0432\u0442\u043e\u0440\u044b \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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:\/\/habr.com\/ru\/post\/684226\/\"> https:\/\/habr.com\/ru\/post\/684226\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f MixBytes <a href=\"https:\/\/t.me\/cyber_announcements\/149\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0430 \u043a\u043e\u043d\u043a\u0443\u0440\u0441<\/a>, \u043f\u0440\u043e\u0439\u0434\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043d\u0430 \u0438\u0445 \u043a\u0443\u0440\u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0430 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432<br \/>\u0417\u0434\u0435\u0441\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0441\u0432\u043e\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>1-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u042f \u043d\u0435 \u043f\u0440\u043e\u0444\u0438 \u0432 \u043f\u0438\u0442\u043e\u043d\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437 \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0443\u0442 \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0431\u0440\u043e\u0441\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430: <a href=\"https:\/\/dev-gang.ru\/article\/python-kak-ispolzovat-metod-randomseed-1n9kvinjt9\/\" rel=\"noopener noreferrer nofollow\">random.seed() \u043f\u0440\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a>.<\/p>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u0434 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435\\\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0435.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<br \/>\u041f\u043e\u0447\u0438\u0442\u0430\u0432 \u043f\u0440\u043e <a href=\"https:\/\/python-scripts.com\/range\" rel=\"noopener noreferrer nofollow\">range<\/a> \u0438 <a href=\"https:\/\/python-scripts.com\/random\" rel=\"noopener noreferrer nofollow\">random \u0432 \u043f\u0438\u0442\u043e\u043d\u0435<\/a>, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u043e: \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e (1e12)-1. \u0422.\u0435 \u0432\u0441\u0435\u0433\u043e 1e12 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432<\/p>\n<p>\u041a\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 1e12 &#8212; <a href=\"https:\/\/stackoverflow.com\/questions\/40390129\/what-does-e-in-1e-5-in-python-language-mean-and-what-is-the-name-of-this-not\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0433\u0443\u0433\u043b\u0438\u0442\u0441\u044f<\/a><\/p>\n<p>\u0427\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u0430\u0432\u043d\u043e \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c\u0438 \u0442\u0435\u043e\u0440\u0438\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u043b\u043e \u043d\u0435 \u0438\u043c\u0435\u043b. \u041c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0442\u0443 \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445: \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043e \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 2-\u0436\u0434\u044b \u0432 \u0441\u0443\u0442\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0415\u0441\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u0441\u044f &#8212; \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u0442.<br \/>\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u044b \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u0440\u0430\u0441\u0447\u0451\u0442 <a href=\"http:\/\/mathhelpplanet.com\/static.php?p=zavisimye-i-nezavisimye-sluchainye-sobytiya\" rel=\"noopener noreferrer nofollow\">\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a>&#8230; \u041d\u043e, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443.<br \/>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c <em>p<\/em> \u0432\u044b\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0432\u044b\u0448\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0435 = 1\/1e12<br \/>\u0421 \u0443\u0447\u0451\u0442\u043e\u043c \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e random.seed(), \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 10 \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (\u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0435 \u0438\u043c\u0435\u043d\u043d\u043e) = 100% (\u0442.\u0435. 1)<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: <em>p = <\/em>1\/1e12 * 1 = 1\/1e12<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435\\\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0441 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c random.seed() \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c\u0438: \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0448\u0430\u0433\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0447\u0438\u0441\u043b\u043e (\u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 1\/1e12), \u0447\u0442\u043e \u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c \u0448\u0430\u0433\u0435. \u0422.\u0435. \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 1\/1e12 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f 10 \u0440\u0430\u0437 \u0438 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 (10)<\/p>\n<p>\u0422.\u0435. \u0444\u043e\u0440\u043c\u0443\u043b\u0430:  <br \/>\u0422.\u0435. \u0438\u0442\u043e\u0433: 1\/1e12<\/p>\n<p>\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/www.online-python.com\" rel=\"noopener noreferrer nofollow\">\u043e\u043d\u043b\u0430\u0439\u043d \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430<\/a> (\u0433\u0443\u0433\u043b\u044f\u0442\u0441\u044f \u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c) \u0435\u0449\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439.<br \/>\u0427\u0442\u043e\u0431 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0434\u043e\u043c, \u0447\u0443\u0442\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0432:<\/p>\n<pre><code class=\"python\">import random  def generate():     random.seed(12345)     print(\"res: \", random.choice(list(range(int(1e12)))))      generate()<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<br \/><em>** Process exited due to resource limitations **<\/em><\/p>\n<p>\u041d\u043e, \u0438\u0433\u0440\u0430\u044f \u0441\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u044f\u043c\u0438 1e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>1e1 = 6<br \/>1e2 = 53<br \/>1e3 = 426<br \/>1e4 = 6825<\/p>\n<p>\u0418 \u0442.\u0434. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434: \u0435\u0441\u043b\u0438 \u0431\u044b \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u0440\u0438 1e12 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u0431\u044b = 0.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: \u0443 \u0437\u0430\u0434\u0430\u0447\u0438 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 2 \u043e\u0442\u0432\u0435\u0442\u0430, \u0441\u043c\u043e\u0442\u0440\u044f \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e: 1\/1e12 \u0438 0<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 2-\u0445 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0441\u044f.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>2-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u041d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e: \u0447\u0442\u043e \u0442\u0443\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c&#8230; <strong>sqrt()<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u044f. <strong>^<\/strong> &#8212; \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c.<br \/>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u043a\u043e\u0434 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u044f \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 &#8212; \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0421\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044f \u0442\u0443 \u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary> 3-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>unsigned &#8212; \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u043e\u0432\u043e\u0435. \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: 4 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>4-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u043b. \u041d\u043e, \u0445\u043e\u0434 \u043c\u044b\u0441\u043b\u0435\u0439 \u0431\u044b\u043b \u0432\u0435\u0440\u043d\u044b\u0439.<\/p>\n<p>26 \u0431\u0443\u043a\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430. \u0417\u043d\u0430\u0447\u0438\u0442, \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0438 \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 26 *2 = 52. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0446\u0438\u0444\u0440\u044b (0&#8230;9). \u0412\u0441\u0435\u0433\u043e 62<br \/>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u044d\u0442\u0438 2 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<p>12345678<br \/>yo<\/p>\n<p>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439, \u0433\u0434\u0435 yo \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445? \u0414\u0432\u0438\u0433\u0430\u044f yo \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0438\u0445 7.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u0437 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f 6 (\u0442.\u043a. yo &#8212; \u044d\u0442\u043e 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430) &#8212; \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e 7 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 yo \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438\u0437 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<p>\u0422.\u0435. \u044d\u0442\u043e 5 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 &#8212; \u043a\u0430\u043a \u0440\u0430\u0437 \u043c\u043d\u043e\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439. \u041d\u043e, \u0442\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0430. \u0412\u0435\u0440\u043d\u044b\u043c \u0441\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u043e\u0442\u0432\u0435\u0442 &#8212; 6 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u043b\u0438 62^6*7-1 \u0438 \u0445\u0435\u0448 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b, \u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u0435\u0449\u0451 \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u043d\u044b \u0432\u0435\u0440\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c\u0438, \u0447\u0442\u043e \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0435\u0441\u043b\u0438 \u043d\u0430 1-\u043c \u0448\u0430\u0433\u0435 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u043d\u044b \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f yo******, \u0442\u043e \u043d\u0430 3-\u043c (**yo****) \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 yoyo****, \u0442.\u043a. \u043e\u043d \u0443\u0436\u0435 \u0431\u044b\u043b \u043d\u0430 1-\u043c \u0448\u0430\u0433\u0435. \u0410\u0432\u0442\u043e\u0440\u044b \u0442\u0435\u0441\u0442\u0430 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u043e\u0441\u044c.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>5-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e: \u043e\u0442\u0432\u0435\u0442 &#8212; 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>6-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0430\u043c\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0432\u044b\u0437\u0432\u0430\u043b\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0410 \u0432\u043e\u0442 \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0441\u0445\u043e\u0434\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e. \u042f\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0434\u043d\u043e: \u043e\u0442\u0432\u0435\u0442\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: 5-7. \u0422.\u043a. \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0434\u0430\u0436\u0435 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c. \u0417\u043d\u0430\u0447\u0438\u0442, \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u0447\u043d\u043e \u0432\u043b\u0435\u0437\u0443\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c. \u0418 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u0442\u0440\u043e\u043a, \u0438\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0434\u0440\u044f\u0434. \u0410 \u043d\u0435 \u0432\u0441\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/p>\n<p>\u0418\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0435\u0448 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438: 12345\\n<br \/>\u041f\u0443\u0441\u0442\u044c \u0431\u043b\u043e\u043a N = 1<br \/>\u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0445\u0435\u0448 \u043e\u0442 1: h1 = h(1)<br \/>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0445\u0435\u0448: h2 = (h(1)+&#8217;2&#8242;)<br \/>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0445\u0435\u0448: h6 = (h(5)+&#8217;\\n&#8217;)<br \/>h6 \u0431\u0443\u0434\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0445\u0435\u0448\u0435\u043c \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e. \u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0430\u0441\u044c \u0425 \u0440\u0430\u0437 &#8212; \u0437\u043d\u0430\u0447\u0438\u0442, \u0425 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u0445\u0435\u0448 h6. \u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0425 &#8212; \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c (\u0442.\u0435. \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u043e\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439), \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0433\u0434\u0435 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0445\u0435\u0448 \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0441\u044f Y \u0440\u0430\u0437, \u0433\u0434\u0435 Y > \u0425 . \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u043f\u0438\u0448\u0435\u043c Y. \u0418 \u0442.\u0434. \u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 7 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/div>\n<\/details>\n<p> <\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>8-\u0435  \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 APR \u0438 APY. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043d\u0430\u0439\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0448\u0451\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u043e, \u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e APY &#8212; \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u044b. \u0422.\u0435. \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 (\u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u043b\u044f \u041a\u043e\u043b\u0438 &#8212; \u043c\u0435\u0441\u044f\u0446, \u0434\u043b\u044f \u041f\u0435\u0442\u0438 &#8212; \u0434\u0435\u043d\u044c), \u043f\u0435\u0440\u0435\u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0438\u043e\u0434<\/p>\n<p>\u0421 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043c\u0443\u0447\u0430\u0435\u0448\u044c\u0441\u044f. \u041d\u0430\u0431\u0440\u043e\u0441\u0430\u0432 \u043a\u043e\u0434 \u043d\u0430 Solidity \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u0435\u0433\u043e \u0432 Remix \u0434\u043b\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0438\u0441\u0435\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10000000000). \u041f\u043e\u043b\u0443\u0447\u0438\u043c 4-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<pre><code class=\"cpp\">contract dop {      function monthly(uint256 num) public pure returns (uint256) {         for (uint i = 0; i &lt; 12; i++)         {             num = num + (num*2)\/120; \/\/ 2\/120 \u044d\u0442\u043e 20% \u0438 12 \u043c\u0435\u0441\u044f\u0446\u0435\u0432         }         return num;     }      function daily(uint256 num) public pure returns (uint256) {         for (uint i = 0; i &lt; 360; i++)         {             num = num + (num*20)\/36000; \/\/ 20% \u0438 360 \u0434\u043d\u0435\u0439         }         return num;     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>9-\u0435  \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421 \u044d\u0442\u0438\u043c \u044f \u043f\u0440\u043e\u0432\u043e\u0437\u0438\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e. \u041f\u0440\u0438\u0448\u0451\u043b 1 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442: \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0433\u043e\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0432\u0435\u0442, \u0432 \u043b\u044e\u0431\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0438\u0434\u0442\u0438 \u0434\u043e \u0432\u0430\u0433\u043e\u043d\u0430, \u0433\u0434\u0435 \u0441\u0432\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d, \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043b\u0438 \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c (\u0442.\u0435. \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0433\u043e\u043d\u043e\u0432 \u043f\u0440\u043e\u0448\u0451\u043b). \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043f\u043e\u043a\u0430 \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c \u0441\u0432\u0435\u0442 \u043d\u0435 \u043f\u043e\u0433\u0430\u0441\u043d\u0435\u0442.<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0410 \u0433\u0434\u0435 \u0436\u0435 7-\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435?<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0410\u0432\u0442\u043e\u0440\u044b \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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:\/\/habr.com\/ru\/post\/684226\/\"> https:\/\/habr.com\/ru\/post\/684226\/<\/a><br \/><\/br><\/br><\/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-337414","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337414","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=337414"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337414\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}