скинь программу),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1000= 8 в десятичной системе счисления
<span>a = int(input(</span>'input A '<span>))
b = int(input(</span><span>'input B '</span><span>))
for i in range(a,b+1):
for j in range(10):
if str(i).count(str(j)) == 3:
print(i);
Тестовое решение:
input A 1190
Input B 1500
1191
1211
1222
1311
1333
1411
1444
</span>
<span>#1
var a:array[1..4,1..3] of real;
i,j,k:integer;
begin
for i:=1 to 4 do begin
for j:=1 to 3 do begin
a[i,j]:=random(101)-50;
write(a[i,j]:3);
end;
writeln;
end;
for j:=1 to 3 do
if a[2,j] > 0 then
k:=k + 1;
writeln;
writeln(k);
end.
#2
var a:array[1..5,1..5] of real;
i,j:integer;
begin
for i:=1 to 5 do begin
for j:=1 to 5 do begin
a[i,j]:=sin(i) + cos(j);
write(a[i,j]:3:2, ' ');
end;
writeln;
end;
end.
#3
var a:array[1..3,1..3] of integer;
i,j,min:integer;
begin
for i:=1 to 3 do begin
for j:=1 to 3 do begin
a[i,j]:=random(101) - 50;
write(a[i,j]:4);
end;
writeln;
end;
min:=a[1,1];
for i:=1 to 3 do
for j:=1 to 3 do
if a[i,j] < min then
min:=a[i,j];
writeln;
writeln(min);
end.
#4
var a:array[1..4,1..4] of real;
i,j,k:integer;
begin
for i:=1 to 4 do begin
for j:=1 to 4 do begin
if i>j then
a[i,j]:=ln(j) - 1
else a[i,j]:=abs(j - 3*i);
write(a[i,j]:3:2, ' ');
end;
writeln;
end;
for i:=1 to 4 do
for j:=1 to 4 do
if a[i,j] < 0 then
k:=k + 1;
writeln;
writeln(k);
end. </span>