andmej / acm

My solutions for problems from the UVa Online Judge (Valladolid).

acm / 10154 - Weights and measures / genInput.py
100644 6 lines (4 sloc) 0.13 kb
1
2
3
4
5
6
import random
 
for i in range(0, 5606):
    j = random.randint(1, 10000)
    print str(j) + " " + str(random.randint(j+1, 10001))