<span>import random as r
mas = []
for i in range( 10)<span>:
</span> b = r.randint(ord("A"), ord("Z"))
mas.append(chr(b))
print(mas)
print(sorted(mas))
</span>
//PascalABC.NET
//Версия 3.3, сборка 1627
function f(x: integer): boolean;
begin
f:=false;
var c:=0;
foreach var item in x.ToString.Select(t->t.ToDigit()).Where(r->r<>0) do
if (x mod item=0) then inc(c);
if c=x.ToString.Count then f:=true;
end;
begin
var n:=ReadInteger;
range(1,n).Where(x->f(x)).Println;
end.
257(8)=2*8^2+5*8^1+7*8^0=128+45+7=178
10 50 true
8 45 true
6 40 true
4 30 true
2 25 true
0 20 false
k:=10;
t:=50;
while k>1 do
begin
k:=k-2;
t:=t-5;
end;
write(k,n);
1.
N=int(input())
s=2
flag=False
for i in range(N):
if N=s:
flag=True
break
else:
s*=2
if flag:
print('Yes')
else:
print('No')
2.
n=int(input())
def MinDivisor(n):
nod=-1
for i in range(n-1):
if n\%i=0:
return i
break
if MinDivision(n)==-1:
print(n,' число является простым.')
else:
print(MinDivision(n))
3.
A=int(input())
x=x1=1
s=0
while x1<A+2:
b=x
x=x1
x1+=b
s+=1
if x1==A:
print(s)
else:
print(-1)
4.
a=[]
while 1:
s=int(input())
if s==0:
break
a.append(s)
a.sort()
print(a[-2])