C++
#include <iostream>
int main() {
double a, b, x, t, k;
std::cin >> a >> b >> x;
t = (2*x*x-5*a)*(2*x*x-5*a)-3*x;
k = -34.5*a+74*b*b;
std::cout << "t = " << t;
std::cout << " k = " << k;
return 0;
}
Пример:
2 7 4
t = 472 k = 3557
C++
#include <iostream>
int main() {
double a, b, x, t, k;
std::cin >> a >> b >> x;
t = (2*x*x-5*a)*(2*x*x-5*a)-3*x;
k = -34.5*a+74*b*b;
std::cout << "t = " << t;
std::cout << " k = " << k;
return 0;
}
Пример:
2 7 4
t = 472 k = 3557