#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(void) { double x,y; cin >> x; if(x<0) y=-x; else if(x<2) y=sqrt(x+1); else if(x<4) y=(x+2)*(x+2)*(x+2)*(x+2)*(x+2); else y=2*x+5; printf("%.2lf",y); return 0; }
0.0分
0 人评分