diff options
author | mathiasmagnusson <mathiasmagnussons@gmail.com> | 2022-02-26 17:20:49 +0100 |
---|---|---|
committer | mathiasmagnusson <mathiasmagnussons@gmail.com> | 2022-02-26 17:20:49 +0100 |
commit | 517381626f0d59b91519436b388ac505ced792f2 (patch) | |
tree | 77ff5e2e3857c971b6ebec618f163422b1ba9dcf /kattis-open-almostunionfind/geninput.py | |
download | programming-problem-solving-517381626f0d59b91519436b388ac505ced792f2.tar.gz |
Initial commit
Diffstat (limited to 'kattis-open-almostunionfind/geninput.py')
-rwxr-xr-x | kattis-open-almostunionfind/geninput.py | 15 |
1 files changed, 15 insertions, 0 deletions
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) |