1) ВЫДЕЛИТЬ
2) ЗАЖАТЬ КОНТРЛ С
3) ПОТОМ КУДА ТЕБЕ НАДО НАЖАТЬ КОНТРЛ М(V)
Ответ:
1) 3, 12
Объяснение:
a :=6*12+3=75
b :=(a div 10)+5=75div10+5=7+5=12
a :=(b mod 10)+1=12mod10+1=2+1=3
16 = 2
8 = 64
1 = 1000
4 = 500
Пользовалась таблицей
3. (Если сами прямоугольники не квадраты, то 1)
#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;
}