Ide Python Online
#1
https://www.onlinegdb.com/online_python_compiler
#2
https://repl.it/languages/python3
iTry
#1
https://www.onlinegdb.com/online_python_compiler
#2
https://repl.it/languages/python3
Use this site
https://repl.it/languages/python3
Use Repl.it "Believe me It's Best"
linK: https://repl.it/languages/python3
def Find_It(N, X, K, S):
S=list(s)
chunks = [S[i:i + X] for i in chunks]
numbers = [sorted(set(i)) for i in chunks]
occur = [len(x) for x in numbers]
for i in range(len(occur) - 2, -1, -1):
occur[i] = occur[i] * occur[i + 1]
if k > occur[0]:
return -1
occur.append(1)
res = []
K = K -1
for i in range (1, len(occur)):
div = k // occur[i]
res.append(numbers[i - 1][div])
K = K % occur[i]
print(''.join(res))
x = input();
y = input();
z=[]
a=[]
z = x. split ('');
for i in z:
a.append(int(i))
Find_It(a[0], a[1], a[2],y)
n=int(input())
x=int(input())
list_a=[]
for i in range(n):
list_a.append(int(input()))
c=list_a.count(x)
print(round(c/n,2))
a=1
b=5
a=a+b
print(a)