Exemple #1
0
def s1301(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a>1 and b>c ) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a>1 and b==c )
Exemple #2
0
def s2001(n):
    return sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b > 1 ) + \
           sum( mn(a,b,c)/2 for a,b,c in op(n-1,3) if a == b > 1 )
Exemple #3
0
def s0211(n):
    return sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b and c > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b and c > 1 )
Exemple #4
0
def s1300(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a>1 and b>c ) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a>1 and b==c )
Exemple #5
0
def s2300(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a>b ) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a==b )
Exemple #6
0
def s2101(n):
    return sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b > 1 )
Exemple #7
0
def s1211(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if c == 1) + \
           sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if c>1 and a > b) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a==b and c>1 )
Exemple #8
0
def s2200(n):
    return sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b > 1 ) + \
           sum( 2*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a == b == 1 and c > d) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b == 1 and c == d)
Exemple #9
0
def s2111(n):
    return sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b ) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b)
Exemple #10
0
def s1201(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if min(b,c) >= 2)
Exemple #11
0
def s1210(n):
    return sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a==b and c>1) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1, 4) if c == 1) + \
           sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1, 4) if c>1 and a>b )
Exemple #12
0
def s1200(n):
    return sum( mn(a,b,c) for a,b,c in op(n-1,3) if min(a,c) > 1 )
Exemple #13
0
def s1111(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a>1 )
Exemple #14
0
def s2011(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b ) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b )
Exemple #15
0
def s0300(n):
    return sum( mn(a,b,c)/6 for a,b,c in op(n-1,3) if min(a,b,c) > 1 )
Exemple #16
0
def s2100(n):
    return sum( 2*mn(a,b,c) for a,b,c in op(n-1,3) if a > b > 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b == 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a == b > 1 )
Exemple #17
0
def s0301(n):
    return sum( mn(a,b,c,d)/6 for a,b,c,d in op(n-1,4) if min(a,b,c) > 1 )
Exemple #18
0
def s2201(n):
    return sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b > 1 ) + \
           sum( 2*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b > 1 ) + \
           sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a == b == 1 and c > d) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b == 1 and c == d)
Exemple #19
0
def s0210(n):
    return sum( mn(a,b,c)/2 for a,b,c in op(n-1,3) if a == b and c > 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b and c > 1 )
Exemple #20
0
def s2301(n):
    return sum( mn(a,b,c,d,e,f) for a,b,c,d,e,f in op(n-1,6) if a>b ) + \
           sum( mn(a,b,c,d,e,f)/2 for a,b,c,d,e,f in op(n-1,6) if a==b )
Exemple #21
0
def s2110(n):
    return sum( 2*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a == b )