@jjallan/

BlackLongtermTurtledove

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from itertools import*
def p(a):c=complex;r=range(len(a));return sum(reduce(c.__mul__,[a[j][p[j]]for j in r],c(1))for p in permutations(r))

print p([[complex(0.36697048,0.02459455), complex(0.81148991,0.75269667), complex(0.62568185,0.95950937)],[complex(0.67985923,0.11419187),complex(0.50131790,0.13067928),complex(0.10330161,0.83532727)],[complex(0.71085747,0.86199765),complex(0.68902048,0.50886302),complex(0.52729463,0.5974208)]])

print p([[complex(0.83702504,0.05801749),complex(0.03912260,0.25027115),complex(0.95507961,0.59109069)],[complex(0.07330546,0.8569899),complex(0.47845015,0.45077079),complex(0.80317410,0.5820795)],[complex(0.38306447,0.76444045),complex(0.54067092,0.90206306),complex(0.40001631,0.43832931)]])

print p([[complex(0.61164611,0.42958732),complex(0.69306292,0.94856925),
complex(0.43860930,0.04104116),complex(0.92232338,0.32857505),
complex(0.40964318,0.59225476),complex(0.69109847,0.32620144)],
[complex(0.57851263,0.69458731),complex(0.21746623,0.38778693),
complex(0.83334638,0.25805241),complex(0.64855830,0.36137045),
complex(0.65890840,0.06557287),complex(0.25411493,0.37812483)],
[complex(0.11114704,0.44631335),complex(0.32068031,0.52023283),
complex(0.43360984,0.87037973),complex(0.42752697,0.75343656),
complex(0.23848512,0.96334466),complex(0.28165516,0.13257001)],
[complex(0.66386467,0.21002292),complex(0.11781236,0.00967473),
complex(0.75491373,0.44880959),complex(0.66749636,0.90076845),
complex(0.00939420,0.06484633),complex(0.21316223,0.4538433)],
[complex(0.40175631,0.89340763),complex(0.26849809,0.82500173),
complex(0.84124107,0.23030393),complex(0.62689175,0.61870543),
complex(0.92430209,0.11914288),complex(0.90655023,0.63096257)],
[complex(0.85830178,0.16441943),complex(0.91144755,0.49943801),
complex(0.51010550,0.60590678),complex(0.51439995,0.37354955),
complex(0.79986742,0.87723514),complex(0.43231194,0.54571625)]])