A masala
from math import ceil
a,b = map(int,input().split())
if 4*b >= a:
print('Yes')
else:
print(ceil((a-4*b)/4))
B masala
n = int(input())
x = 1000
while x <= 9999:
s1 = x//10
s2 = x//100*10 + x%10
if s1 + s2 + x == n:
print(s1,s2,x)
break
x += 1
else:
print(None)
C masala
from itertools import *
n=int(input())
*a,=map(int,input().split())
b=[]
for i in range(n+1):
b.extend(list(combinations(a,i)))
mx=0
for i in b:
i=list(i)
c=i.copy()
c.sort()
if(c==i and len(i)>mx):mx=len(i)
print(mx)
D masala
n = int(input())
if n == 1:
print(2)
elif n % 2:
mxpow = (n + 1) // 2
a = []
for i in range(mxpow - 1):
a.append(2**(mxpow - i))
a += [2] + a[::-1]
matrix = [a]
for i in range(mxpow - 2):
c = matrix[-1]
b = c.copy()
mx = max(b)
mx2 = min(b)
for i in b:
if mx2 < i < mx:
mx2 = i
for i in range(len(b)):
if b[i] == mx:
b[i] = mx2
matrix.append(b)
matrix += [[2]*n] + matrix[::-1]
for i in matrix:
print(*i)
else:
print('Qila olmayman')
E masala
n = int(input())
operators = ['+','-','*','/']
for i in operators:
for j in operators:
for k in operators:
for l in operators:
ans = f'(5 {i} 5) {j} 5 {k} 5 {l} 5'
res = eval(ans)
if res == n:
exit(print(ans))
print("You can't")
These codes by Zamaxshariy Team