#include <iostream> // header input/output streams
#include <fstream> // header для работы с файлами
using std::ifstream; // для работы с файлом input.txt
using std::ofstream; // для работы с файлом output.txt
using std::cin; // для работы cin
using std::cout; // для работы cout
using std::endl; // для работы перевода на новую строку endl
int main(){
ifstream in_file;
ofstream out_file;
try{
in_file.open("input.txt");
out_file.open("output.txt");
}
catch(std::exception& e){
cout << e.what() << endl;
}
unsigned int a,b;
in_file >> a >> b;
unsigned int sum = a+b -1;
cout << sum;
out_file << sum - a << ' ' << sum-b << endl;
}
Подобранные пары похожих понятий:
- Веселье - грусть (эмоции)
- Весна - осень (времена года)
- Монитор - клавиатура (компьютерные устройства)
- Стол - диван (предметы мебели)
- Береза - осина (деревья)
- Автомобиль - самолет (средства передвижения)
- Арбуз - гуляш (съедобное)
123 ответ. Виды алгоритмов: линейный, разветвленный.
9+9 = 18
18-5 = 13 (5 - вторая цифра числа 154)
91(13)+93(13) = 154(13)
Ответ: основание системы счисления = 13
Const
n=5;
var
a:array[1..n,1..n]of integer;
i,j,k:integer;
begin
for i:=1 to n do
begin
for j:=1 to n do
begin
a[i,j]:=random(10);
write(a[i,j]:3);
end;
writeln;
end;
j:=n;
for i:=1 to n do
begin
if a[i,j]<5 then k:=k+1;
j:=j-1;
end;
writeln('Ответ: ',k);
<span>end. </span>