This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.SRCINFO b/.SRCINFO | |
| index 38634e2..672ac4e 100644 | |
| --- a/.SRCINFO | |
| +++ b/.SRCINFO | |
| @@ -45,9 +45,11 @@ pkgbase = gdm-prime | |
| source = git+https://gitlab.gnome.org/GNOME/gdm.git#tag=48.0 | |
| source = 0001-Xsession-Don-t-start-ssh-agent-by-default.patch | |
| source = 0002-nvidia-prime.patch | |
| + source = 0003-gnu23-bool-fix.patch | |
| b2sums = d08d2137f630999b2f36bd8b798805e145fd7350fc4a092056cfdddd2170ae57b3b17a3a8f44f4c08a7e527a165fdce0dfa7a934188bc487d2a6d5bd848497b0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bisect import bisect_left | |
| import string | |
| from functools import lru_cache | |
| import operator | |
| k, b = map(int, input().split()) | |
| *m, = map(int, input().split()) | |
| allowed_chars = set(string.digits[:b] + string.ascii_uppercase[:max(b-10, 0)]) | |
| def shortest(s): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bitmasks: | |
| """ | |
| do bitmasks operations in linear time | |
| """ | |
| def __init__(self): | |
| pass | |
| def reverse_bit(self, mask): | |
| """ | |
| expecting mask with exactly one '1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mingaleg@mingaleg-frisk mtrxpwopt]$ time pypy3 demo.py | |
| 0 1 1 2 3 5 8 13 21 34 | |
| 5287196443542378998060740244672168367364575359115033295972978448967050178785040599428183628520111586 | |
| 7629846911901955237835547914352150756611647238498792164735681201984675052326896966741707588619622054 | |
| 4674914530530148484741993251571247503778364125310702151010449750778963757842042966635177948649694278 | |
| real 0m0,528s | |
| user 0m0,485s | |
| sys 0m0,024s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + Рюкзак 90 ~10.000 | |
| + Рюкзак 20-30 | |
| + Коврик | |
| + Спальник (температура комфорта -5 или ниже) | |
| + Палки трекинговые | |
| + Грелки | |
| + Сидушка | |
| + Носки | |
| + Штормавая куртка | |
| + Штормовые брюки |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/bin/gunicorn_start | |
| /etc/nginx/sites-available/assist-proj | |
| /etc/supervisor/conf.d/assist-proj.conf | |
| 1. Создать пользователя | |
| 2. Создать вирт окружение, сделать его хомяком пользователя | |
| 3. Запулить репу | |
| 4. Собрать файлик для автодеплоя: | |
| а. пулл | |
| б. миграте |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| === dh === | |
| Alice -> Bob: m = 10, p = 17 | |
| Bob: b = 16 | |
| Alice -> Bob: (m^a)%p = 7 | |
| Bob -> Alice: (m^b)%p = ________ | |
| Bob: (m^(a*b))%p = ________ | |
| Alice -> Bob: m = 1, p = 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Дорогие друзья, | |
| Во всех группах в каждом задании кроме последнего все вычисления | |
| должны быть выполнены вручную в _отдельной_ тетради (12 листов). | |
| Последние задания в каждой группе являются дополнительными и оцениваются отдельно, | |
| для их решения вы должны написать и представить к защите в распечатанном | |
| виде программы на языке Python. | |
| Задания принимаются 5 мая на уроке, сдача после этого срока уменьшает оценку. | |
| Если 5 мая вы будуте отсутствовать, вы можете отправить _сканы_ ваших решений на |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image, ImageDraw | |
| im = Image.new("RGB", (128, 128)) | |
| draw = ImageDraw.Draw(im) | |
| draw.line((0, 0) + im.size, fill=128) | |
| draw.line((0, im.size[1], im.size[0], 0), fill=128) | |
| del draw | |
| im.show() |
NewerOlder