#include <stdio.h>
int main() {
// Объявление переменных
double x, y, z, S1, numerator, denominator;
// Ввод значений для x, y, z
printf("Введите значения для x, y, z: "); scanf("%lf %lf %lf", &x
, &y
, &z
);
// Проверка, чтобы избежать деления на ноль
if (x == 0 || y == 0 || (2 * z - y) == 0) {
printf("Ошибка: деление на ноль!\n"); return 1;
}
// Вычисление числителя и знаменателя
numerator = (32 * x - 68 * x * y * z + (12 * y / x));
denominator = (2.5 * y * (2 * z - y));
// Вычисление S1
S1 = (x * y * z) - (numerator / denominator);
// Вывод результата
printf("Значение S1: %.2lf\n", S1
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIC8vINCe0LHRitGP0LLQu9C10L3QuNC1INC/0LXRgNC10LzQtdC90L3Ri9GFCiAgICBkb3VibGUgeCwgeSwgeiwgUzEsIG51bWVyYXRvciwgZGVub21pbmF0b3I7CiAgICAKICAgIC8vINCS0LLQvtC0INC30L3QsNGH0LXQvdC40Lkg0LTQu9GPIHgsIHksIHoKICAgIHByaW50Zigi0JLQstC10LTQuNGC0LUg0LfQvdCw0YfQtdC90LjRjyDQtNC70Y8geCwgeSwgejogIik7CiAgICBzY2FuZigiJWxmICVsZiAlbGYiLCAmeCwgJnksICZ6KTsKICAgIAogICAgLy8g0J/RgNC+0LLQtdGA0LrQsCwg0YfRgtC+0LHRiyDQuNC30LHQtdC20LDRgtGMINC00LXQu9C10L3QuNGPINC90LAg0L3QvtC70YwKICAgIGlmICh4ID09IDAgfHwgeSA9PSAwIHx8ICgyICogeiAtIHkpID09IDApIHsKICAgICAgICBwcmludGYoItCe0YjQuNCx0LrQsDog0LTQtdC70LXQvdC40LUg0L3QsCDQvdC+0LvRjCFcbiIpOwogICAgICAgIHJldHVybiAxOwogICAgfQogICAgCiAgICAvLyDQktGL0YfQuNGB0LvQtdC90LjQtSDRh9C40YHQu9C40YLQtdC70Y8g0Lgg0LfQvdCw0LzQtdC90LDRgtC10LvRjwogICAgbnVtZXJhdG9yID0gKDMyICogeCAtIDY4ICogeCAqIHkgKiB6ICsgKDEyICogeSAvIHgpKTsgCiAgICBkZW5vbWluYXRvciA9ICgyLjUgKiB5ICogKDIgKiB6IC0geSkpOwoKICAgIC8vINCS0YvRh9C40YHQu9C10L3QuNC1IFMxCiAgICBTMSA9ICh4ICogeSAqIHopIC0gKG51bWVyYXRvciAvIGRlbm9taW5hdG9yKTsKICAgIAogICAgLy8g0JLRi9Cy0L7QtCDRgNC10LfRg9C70YzRgtCw0YLQsAogICAgcHJpbnRmKCLQl9C90LDRh9C10L3QuNC1IFMxOiAlLjJsZlxuIiwgUzEpOwogICAgCiAgICByZXR1cm4gMDsKfQ==