@jjallan/

ConventionalAlarmingPtarmigan

Python 2.7

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.735852002987385","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZnJvbSBpdGVydG9vbHMgaW1wb3J0KgpkZWYgZihuKTpyPXJhbmdlKG4rMSk7bD1saXN0KHBlcm11dGF0aW9ucyhyKSk7cHJpbnQgbC5pbmRleCh0dXBsZShsW25dLmluZGV4KHYpZm9yIHYgaW4gcikpCgpmb3IgaSBpbiAoMCwxLDIsMyw0LDUsNiw3LDgsOSwxMCwxMSk6CglwcmludCBpLCAiOiIKCWYoaSkKCXByaW50ICcn"},"asBuffer":null},"loaded":true}}
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 ''