fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. double x, y, z;
  8. cin >> x >> y >> z;
  9. double result = sqrt(12.*pow(x, 4) - 3.*pow(x, 3) + 4.*pow(x, 2) - 5.*x + 6.) - pow(log10(z), 2);
  10. cout << result;
  11. return 0;
  12. }
Success #stdin #stdout 0s 15240KB
stdin
1 1 1
stdout
3.74166