blob: 0efeed4012c3d1bfb249cfe49d468ff598c1b41b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
size = int(sys.argv[1])
for i in xrange(size):
expr = "max(0"
for j in xrange(size):
if j == i:
continue
expr += ','
expr += "x"+str(j)+" + "+str(j)+''
expr += ")"
print 'x'+str(i)+' = '+expr
|