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
| import sys | |
| N = 808017424794512875886459904961710757005754368000000000 | |
| def fac(n): | |
| for div in range(2, 1000): | |
| if not n % div: | |
| count = 1 | |
| n //= div | |
| while n > 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
| import sys | |
| if 1: | |
| import psutil | |
| from collections import deque | |
| import gc | |
| def fint(i): | |
| return format(i, '_') |
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_right | |
| from collections.abc import Sequence | |
| from itertools import chain, islice, pairwise, repeat | |
| import operator | |
| import random | |
| import secrets | |
| seed = secrets.token_bytes(16) | |
| #seed = b'N\x1b\xac(\xdf\x0e\xbbj\xfe\xccM\xaf\xb7{e\x91' | |
| print("seed", seed) |