1.
a, b = map(int, input("Sides:").split())
s = (a * b) / 2
print(s)
2.
a_price, b_price = map(int, input("Price:").split()) # Цена товаров
a_number_begin, b_number_begin = map(int, input("Number at the beginning").split())
# Количество в начале рабочего дня
sold = a_sold, b_sold = map(int, input("Sold goods").split()) #Проданный товар
print("Cost at the begin 1:", a_price * a_number_begin,"2:", b_price * b_number_begin)
print("Cost of unsold goods 1:", (a_number_begin - a_sold) * a_price,"2:", (b_number_begin - b_sold) * b_price)
3.
count = int(input())
start_min = 490 # Во сколько начинаются уроки в минутах
work_time = 55 # Время урока и перемены, можно сложить
result = count * work_time + start_min
print("Hours:", result // 60, "Min:", result % 60) # // - это целочисленное деление, % - остаток от деления
1.
a, b = map(int, input("Sides:").split())
s = (a * b) / 2
print(s)
2.
a_price, b_price = map(int, input("Price:").split()) # Цена товаров
a_number_begin, b_number_begin = map(int, input("Number at the beginning").split())
# Количество в начале рабочего дня
sold = a_sold, b_sold = map(int, input("Sold goods").split()) #Проданный товар
print("Cost at the begin 1:", a_price * a_number_begin,"2:", b_price * b_number_begin)
print("Cost of unsold goods 1:", (a_number_begin - a_sold) * a_price,"2:", (b_number_begin - b_sold) * b_price)
3.
count = int(input())
start_min = 490 # Во сколько начинаются уроки в минутах
work_time = 55 # Время урока и перемены, можно сложить
result = count * work_time + start_min
print("Hours:", result // 60, "Min:", result % 60) # // - это целочисленное деление, % - остаток от деления
Pascal ABC
var
s,news:string;
k:longint;
begin
k:=0;
read(s);
s:=s+' ';
while s <> '' do
begin
if copy(s,1,pos(' ',s)) = ' ' then
begin
delete(s,1,pos(' ',s));
news:=news+' ';
end
else
begin
inc(k);
news:=news+inttostr(k)+'.'+copy(s,1,pos(' ',s));
delete(s,1,pos(' ',s));
end;
end;
writeln(news);
end.