>>> import sys
>>> print(sys.stdin.readline())
>>> def progression():
print('Введите первое число прогрессии:')
a = float(sys.stdin.readline())
print('Введите разность прогрессии:')
b = float(sys.stdin.readline())
print('Введите число членов прогрессии:')
c = float(sys.stdin.readline())
k = ((2 * a + b * (c - 1)) / 2) * c
print(k)
Надо запускать введя progression()
>>> progression()
>>> import sys
>>> print(sys.stdin.readline())
>>> def progression():
print('Введите первое число прогрессии:')
a = float(sys.stdin.readline())
print('Введите разность прогрессии:')
b = float(sys.stdin.readline())
print('Введите число членов прогрессии:')
c = float(sys.stdin.readline())
k = ((2 * a + b * (c - 1)) / 2) * c
print(k)
Надо запускать введя progression()
>>> progression()
y:array[1..10000,1..10000] of longint;
o:array[1..10000] of longint;
begin
read(n,m);
for i:=1 to n do
for j:=1 to m do
read(y[i,j]);
for i:=1 to n do
for j:=1 to n do
if j<>i then
begin for k:=1 to m do
if y[i,k]=y[j,k] then inc(s);
if s=m then
begin
if o[i]=0 then
begin
writeln(i);
o[i]:=1;
end;
if o[j]=0 then
begin
writeln(j);
o[j]:=1;
end;
inc(s1);
end;
s:=0;
end;
writeln(s1);
end.