From 91b5248c8b951d82f3c9a2deb6ac928cce553497 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Tue, 27 Jun 2017 12:10:09 +0700 Subject: Add hsg/12/QG-2017/virus.c --- 12/QG-2017/virus_randinp.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 12/QG-2017/virus_randinp.py (limited to '12/QG-2017/virus_randinp.py') diff --git a/12/QG-2017/virus_randinp.py b/12/QG-2017/virus_randinp.py new file mode 100755 index 0000000..566e452 --- /dev/null +++ b/12/QG-2017/virus_randinp.py @@ -0,0 +1,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') -- cgit 1.4.1