fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main() {
  4. double x;
  5. if(scanf("%lf", &x) ==1) {
  6. double y=7e-3*pow(x,4)+((22.8*pow(x,1/3)-1e3)*x+3)/(x*x/2)-x*pow((10+x),(2/x))-1.01;
  7. printf("%.1f\n", y);
  8. }
  9. else
  10. {
  11. printf("n/a\n");
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5284KB
stdin
1
stdout
-2070.4