Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 278 Bytes
import string
f=open("rosalind_rear.txt","rU")
while True:
l=f.readline()
p=l.split()
l=f.readline()
if len(l)==0:
break
q=l.split()
c=prod_perm(p,inv_perm(q))
print c
rdistance([c])
l=f.readline()
if len(l)==0:
break
You can’t perform that action at this time.