8 lines
179 B
Python
Executable File
8 lines
179 B
Python
Executable File
#!/usr/bin/env python3
|
|
def verifier(L, p, q):
|
|
return len(L)==p and min(L)>=0 and max(L) <= q - 1
|
|
def composer(L1, L2):
|
|
return [L2[i] for i in L1]
|
|
def permutation(L):
|
|
|