aboutsummaryrefslogtreecommitdiff
path: root/Practical1/tester/cases.py
blob: 9fa7792b35602546e8f5789186d9455cd08d2a8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# These are the highest numbers of bins that are still possible
rows, cols, bins = 3, 3, 4
rows, cols, bins = 4, 4, 6
rows, cols, bins = 5, 5, 9
rows, cols, bins = 6, 6, 12
rows, cols, bins = 7, 7, 17
rows, cols, bins = 8, 8, 22
rows, cols, bins = 9, 9, 27

print 3 * (rows - 1) * (cols - 1) + (rows - 1) + (cols - 1), rows * cols, bins
for r in range(rows - 1):
    for c in range(r * cols + 1, (r+1) * cols):
        print c, c + 1
        print c, c + cols
        print c, c + cols + 1
    print (r+1) * cols, (r+2) * cols
for c in range(rows * cols - cols + 1, rows * cols):
    print c, c + 1