From a1eb38bebe6ce1668c3f96489506c3b05b9fe5cb Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Fri, 9 Dec 2022 18:00:41 +0100 Subject: Move stuff around --- kattis-open/almostunionfind/geninput.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 kattis-open/almostunionfind/geninput.py (limited to 'kattis-open/almostunionfind/geninput.py') diff --git a/kattis-open/almostunionfind/geninput.py b/kattis-open/almostunionfind/geninput.py new file mode 100755 index 0000000..5eef1f3 --- /dev/null +++ b/kattis-open/almostunionfind/geninput.py @@ -0,0 +1,15 @@ +#!/usr/bin/python + +from random import randint as rand + +n, m = rand(10, 1000), rand(10, 1000) +print(n, m) + +for _ in range(m): + t = rand(1, 3) + if t < 3: + p, q = rand(1, n), rand(1, n) + print(t, p, q) + else: + p = rand(1, n) + print(t, p) -- cgit v1.2.3