fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. float a, b, k, x, e, N;
  9. cin >> a >> b >> x >> k >>e;
  10.  
  11. if (a!=0)
  12. {
  13. (0.8*x/sqrt(fabs(x)));
  14. }
  15. else {
  16. cout << "error";
  17. }
  18. if (k+b!=0)
  19. (pow(sin(x), 2)*a/k+b);
  20. else {
  21. cout << "error";
  22. }
  23. N=0.8*x/sqrt(fabs(x))+((pow(sin(x), 2)*a/k+b+0.87)*sin(x)+pow(e, x));
  24. cout << N;
  25. return 0;
  26. }
Success #stdin #stdout 0.01s 5448KB
stdin
1 2 2 1 2
stdout
8.49288