CompetitiveProgramming/src/bin/test.py

25 lines
702 B
Python
Raw Normal View History

2024-07-02 12:19:33 +01:00
from math import lcm, ceil, log2
2024-12-07 18:12:55 +00:00
from string import ascii_lowercase
2024-11-29 08:34:23 +00:00
from random import choice, randint, shuffle, random
2024-05-28 02:28:12 +01:00
from os import system
2024-06-12 18:41:40 +01:00
from collections import defaultdict
2024-05-28 02:28:12 +01:00
import io
2024-06-12 18:41:40 +01:00
PRIME = 998_244_353
2024-05-28 02:28:12 +01:00
if __name__ == '__main__':
2024-12-07 18:12:55 +00:00
N = 10 ** 5
print(''.join((choice(ascii_lowercase) for _ in range(N))))
# print(''.join(('a' for _ in range(N))))
2024-11-29 08:34:23 +00:00
print(N)
2024-12-07 18:12:55 +00:00
rem = N
for i in range(N):
# m = randint(1, rem - (N - 1 - i))
# m = 316
m = 1
rem -= m
if rem < 0:
break
print(f'{randint(1, N)} {"".join((choice(ascii_lowercase) for _ in range(m)))}')
# print(f'{randint(1, N)} {"".join(("a" for _ in range(m)))}')