repl.it
@jjallan/

ConventionalAlarmingPtarmigan

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
from itertools import*
def f(n):r=range(n+1);l=list(permutations(r));print l.index(tuple(l[n].index(v)for v in r))

for i in (0,1,2,3,4,5,6,7,8,9,10,11):
	print i, ":"
	f(i)
	print ''