about summary refs log tree commit diff
path: root/NTU/sagain_geninp.py
blob: 7764953a88f90872062f751a74d31cc291c3d9d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

from random import choice, randint
from string import ascii_lowercase


with open('sagain.txt', 'w') as f:
    length = randint(1, 2000000)
    k = str(randint(1, min(length, 1000))) + '\n'
    f.write(k)
    for _ in range(length):
        f.write(choice(ascii_lowercase))
    f.write('\n')