about summary refs log tree commit diff
path: root/12/QG-2017/virus_randinp.py
blob: 566e4524121f90d25207369fcc948cb87bbbe9c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python3
import random
import string

with open('VIRUS.INP', 'w') as f:
    f.write('10\n')
    for _ in range(3000):
        f.write(random.choice(string.ascii_lowercase))
    f.write('\n0\n1\n2\n3\n5\n6\n7\n8\n9\n10\n')