Всмысле полное, моделируешь дорогу, если тебе по таблице не удобно, там все видно будет. Самый короткий 4
AE-EC-CD
<span>2 записывается как 1,4 — как 2, 16 - как 4, 32 - как 5, 48 - как 45 (или 54), 50 - как 145 (или 415 и т.д.).
2=2^1
16=2^4
...
50=2^5+2^4+2^1
26 это 2^6+2^2=68
ответ: Г</span>
#include <iostream>
double Area_circle(double R)
{
static double PI = std::atan(1) * 4;
return PI * (R*R);
}
int main()
{
double r_out, r_in_1, r_in_2, r_in_3;
std::cout << "Enter the radius of the outgoing circles" << std::endl;
std::cin >> r_out;
std::cout << "Enter a radius of 1 inner circle" << std::endl;
std::cin >> r_in_1;
std::cout << "Enter a radius of 2 inner circle" << std::endl;
std::cin >> r_in_2;
std::cout << "Enter a radius of 3 inner circle" << std::endl;
std::cin >> r_in_3;
double S = Area_circle(r_out) - Area_circle(r_in_1) - Area_circle(r_in_2) - Area_circle(r_in_3);
if (S > 0)
{
std::cout << "S == " << S << std::endl;
}
else
{
std::cout << "The inner area of the circles should not be greater than the outer!" << std::endl;
}
system("pause");
return 0;
}
Язык С++.
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if(a + b > c && a + c > b && b + c > a){
if (a == b && a == c && b == c) {
cout << "Равносторонний." << endl;
}
else if (a == b || a == c || b == c) {
cout << "Равнобедренный." << endl;
}
else {
cout << "Разносторонний." << endl;
}
}
else
cout << "Треугольник не существует." << endl;
}